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

Instance

ListenerDescription

The description of the listener.

true

ListenerDescription

ListenerRuleDescription

The description of the listener rule.

true

ListenerRuleDescription

Responses
HTTP Code 200
HTTP Code Description Schema

200

CreateListenerRuleResponse

Response 200

Response 200

Name Description Required Schema Default Example

ListenerRule

The description of the listener rule.

false

ListenerRule

ResponseMetadata

Information about the response.

false

ResponseMetadata