Modifies a forwarding rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateResolverRule

The operation that you want to perform. Set the value to UpdateResolverRule.

Lang String Yes en

The language.

RuleId String Yes hra0**

The ID of the forwarding rule.

Name String Yes Forwarding rule-test

The name of the forwarding rule.

ForwardIp.N.Ip String No 172.16.xx.xx

The IP address of the destination external server.

ForwardIp.N.Port Integer No 8080

The port number of the destination external server.

Response parameters

Parameter Type Example Description
RequestId String 0C9959BE-3A6A-4803-8DCE-973B42ACD599

The ID of the request.

Examples

Sample request

http(s)://pvtz.aliyuncs.com/?Action=UpdateResolverRule
&Lang=en
&RuleId=hra0**
&Name=Forwarding rule-test
&ForwardIp=[{"Ip":"172.16.xx.xx","Port":8080}]
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RequestId>0C9959BE-3A6A-4803-8DCE-973B42ACD599</RequestId>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "0C9959BE-3A6A-4803-8DCE-973B42ACD599"
}

Error codes

For a list of error codes, visit the API Error Center.