CreateListenerRule
GET /?Action=CreateListenerRule
Description
Creates a rule for traffic redirection for the specified listener.
Each rule must have either the HostPattern
or PathPattern
parameter specified. Rules are treated in priority order, from the lowest value to the highest value.
Once the rule is created, you need to register backend instances with it. For more information, see the RegisterInstancesWithListenerRule method.
Body parameter
Required: false
Name: CreateListenerRuleRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
Instances |
The list of backend instances to attach to this rule. |
true |
|||
ListenerDescription |
The description of the listener. |
true |
|||
ListenerRuleDescription |
The description of the listener rule. |
true |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
CreateListenerRuleResponse |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
ListenerRule |
The description of the listener rule. |
false |
|||
ResponseMetadata |
Information about the response. |
false |