Modifies the Layer 4 or Layer 7 health check configuration of a port forwarding rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyHealthCheckConfig |
The operation that you want to perform. Set the value to ModifyHealthCheckConfig. |
ForwardProtocol | String | Yes | tcp |
The forwarding protocol of the port forwarding rule. Valid values:
|
FrontendPort | Integer | Yes | 8080 |
The forwarding port of the port forwarding rule. |
HealthCheck | String | Yes | {"Type":"tcp","Timeout":10,"Port":8080,"Interval":10,"Up":10,"Down":40} |
Details about the health check configuration. This parameter is a JSON string. The fields in the value are described as follows:
|
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=ModifyHealthCheckConfig
&ForwardProtocol=tcp
&FrontendPort=8080
&HealthCheck={"Type":"tcp","Timeout":10,"Port":8080,"Interval":10,"Up":10,"Down":40}
&InstanceId=ddoscoo-cn-mp91j1ao****
&<Common request parameters>
Sample success responses
XML
format
<ModifyHealthCheckConfigResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ModifyHealthCheckConfigResponse>
JSON
format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
For a list of error codes, visit the API Error Center.