edit-icon download-icon

DescribeRules

Last Updated: Apr 12, 2018

Description

Query the detailed configurations of forwarding rules associated with the specified listener.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

DescribeRules

RegionId String Yes The region ID of the Server Load Balancer instance.
LoadBalancerId String Yes The ID of the Server Load Balancer instance.
ListenerPort String Yes

The front-end listening port used by the Server Load Balancer instance.

Valid value: 1-65535

Response parameters

Name Type Description
RequestId String The ID of the request.
RuleList String The list of rules.
RuleList objects
RuleId String The ID of the forwarding rule.
RuleName String The name of the forwarding rule.
Domain String The domain name.
Url String The URL.
VServerGroupId String The ID of the target VServer group of the forwarding rule.

Examples

Request Example

  1. https://slb.aliyuncs.com/?<Common parameters>
  2. &Action=DescribeRules
  3. &RegionId=cn-east-hangzhou-01
  4. &LoadBalancerId=152a602e315-cn-beijing-btc-a01
  5. &ListenerPort=80

Response Example

  • XML format

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <DescribeRules>
    3. <RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId>
    4. <RuleList>
    5. <Rule>
    6. <RuleId>rule-3ejhktkaeu</RuleId>
    7. <RuleName>Rule1</RuleName>
    8. <Domain>abc.com</Domain>
    9. <Url>/image</Url>
    10. <VServerGroupId>rsp-cige6j5e7p</VServerGroupId>
    11. </Rule>
    12. <Rule>
    13. <RuleId>rule-tybqi6qkp8</RuleId>
    14. <RuleName>Rule2</RuleName>
    15. <Domain>abc.com</Domain>
    16. <Url>/cache</Url>
    17. <VServerGroupId>rsp-6cejjzlld7</VServerGroupId>
    18. </Rule>
    19. </RuleList>
    20. </DescribeRules>
  • JSON format

    1. {
    2. "RequestId": "9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C",
    3. "RuleList": {
    4. "Rule": [
    5. {
    6. "RuleId": "rule-3ejhktkaeu",
    7. "RuleName": "Rule1",
    8. "Domain": "abc.com",
    9. "Url": "/image",
    10. "VServerGroupId": "rsp-cige6j5e7p"
    11. },
    12. {
    13. "RuleId": "rule-tybqi6qkp8",
    14. "RuleName": "Rule2",
    15. "Domain": "abc.com",
    16. "Url": "/cache",
    17. "VServerGroupId": "rsp-6cejjzlld7"
    18. }
    19. ]
    20. }
    21. }
Thank you! We've received your feedback.