Modifies the session persistence settings of a port forwarding rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyNetworkRuleAttribute |
The operation that you want to perform. Set the value to ModifyNetworkRuleAttribute. |
Config | String | Yes | {"PersistenceTimeout":900} |
The session persistence settings of the port forwarding rule. This parameter is a JSON string. The field in the value is described as follows:
|
ForwardProtocol | String | Yes | tcp |
The forwarding protocol. Valid values:
|
FrontendPort | Integer | Yes | 8080 |
The forwarding port. |
InstanceId | String | Yes | ddoscoo-cn-mp91j1ao**** |
The ID of the instance. Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyNetworkRuleAttribute
&Config={"PersistenceTimeout":900}
&ForwardProtocol=tcp
&FrontendPort=8080
&InstanceId=ddoscoo-cn-mp91j1ao****
&<Common request parameters>
Sample success responses
XML
format
<ModifyNetworkRuleAttributeResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ModifyNetworkRuleAttributeResponse>
JSON
format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
For a list of error codes, visit the API Error Center.