Change the target VServer group of a forwarding rule.

Request parameters

Name  Type Required Description
Action  String   Yes The action to perform. Valid value:

SetRule

RegionId String   Yes The ID of the region where the SLB instance is located.

You can obtain the region ID by calling the DescribeRegions API.

RuleId String   Yes The ID of the forwarding rule.
VServerGroupId String   Yes The ID of the target VServer group of the forwarding rule.

Response parameters

Name Type Description
RequestId String The ID of the request.

Examples

Request example

https://slb.aliyuncs.com/?Action=SetRule
&RegionId=cn-hangzhou
&RuleId=[rule-3ejhktkaeu &VServerGroupId=rsp-cige6j5e7p]
&CommonParameters

Response example

  • XML format
    <? xml version="1.0" encoding="utf-8"? >
    <SetRuleResponse>
    	<RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId>
    </SetRuleResponse>
  • JSON format
    {
      "RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C"
    }