edit-icon download-icon

SetRule

Last Updated: Apr 12, 2018

Description

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 region ID of the Server Load Balancer instance.
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

  1. https://slb.aliyuncs.com/?<Common parameters>
  2. &Action=SetRule
  3. &RegionId=cn-east-hangzhou-01
  4. &RuleId=rule-3ejhktkaeu
  5. &VServerGroupId=rsp-cige6j5e7p

Response Example

  • XML format

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <SetRule>
    3. <RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId>
    4. </SetRule>
  • JSON format

    1. {
    2. "RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C"
    3. }
Thank you! We've received your feedback.