## Get routing rule `email_routing.rules.get(strrule_identifier, RuleGetParams**kwargs) -> EmailRoutingRule` **get** `/zones/{zone_id}/email/routing/rules/{rule_identifier}` Get information for a specific routing rule already created. ### Parameters - `zone_id: str` Identifier. - `rule_identifier: str` Routing rule identifier. ### Returns - `class EmailRoutingRule: …` - `id: Optional[str]` Routing rule identifier. - `actions: Optional[List[Action]]` List actions patterns. - `type: Literal["drop", "forward", "worker"]` Type of supported action. - `"drop"` - `"forward"` - `"worker"` - `value: Optional[List[str]]` - `enabled: Optional[Literal[true, false]]` Routing rule status. - `true` - `false` - `matchers: Optional[List[Matcher]]` Matching patterns to forward to your actions. - `type: Literal["all", "literal"]` Type of matcher. - `"all"` - `"literal"` - `field: Optional[Literal["to"]]` Field for type matcher. - `"to"` - `value: Optional[str]` Value for matcher. - `name: Optional[str]` Routing rule name. - `priority: Optional[float]` Priority of the routing rule. - `tag: Optional[str]` Routing rule tag. (Deprecated, replaced by routing rule identifier) ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted ) email_routing_rule = client.email_routing.rules.get( rule_identifier="a7e6fb77503c41d8a7f3113c6918f10c", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(email_routing_rule.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "id": "a7e6fb77503c41d8a7f3113c6918f10c", "actions": [ { "type": "forward", "value": [ "destinationaddress@example.net" ] } ], "enabled": true, "matchers": [ { "type": "literal", "field": "to", "value": "test@example.com" } ], "name": "Send to user@example.net rule.", "priority": 0, "tag": "a7e6fb77503c41d8a7f3113c6918f10c" } } ```