Modifies a health check.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the Smart Access Gateway (SAG) instance. | cn-shanghai |
HcInstanceId | string | Yes | The ID of the health check. | hc-k9id4loo3lup57**** |
SmartAGId | string | Yes | The ID of the SAG instance. | sag-i0e85k06v1mzpo**** |
Name | string | Yes | The name of the health check. The name must be 2 to 100 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. | sss333 |
Description | string | Yes | The description of the health check. The description must be 2 to 256 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. | description |
Type | string | Yes | The type of packet used in the health check. Only ICMP_ECHO is supported. | ICMP_ECHO |
DstIpAddr | string | Yes | The destination IP address of the health check. | 192.XX.XX.1 |
DstPort | integer | Yes | The destination port of the health check. Note
This parameter is not supported.
| 2233 |
SrcIpAddr | string | Yes | The source IP address of the health check. | 192.XX.XX.1 |
SrcPort | integer | Yes | The source port of the health check. Note
This parameter is not supported.
| 3333 |
ProbeInterval | integer | Yes | The time interval at which probes are performed. The next probe does not start before the current one is complete. Valid values: 1000 to 60000. Default value: 2000. Unit: milliseconds. | 2000 |
ProbeCount | integer | Yes | The number of probes that are performed per health check. Valid values: 1 to 20. Default value: 1. | 1 |
ProbeTimeout | integer | Yes | The timeout period of the probe. Valid values: 10 to 30000. Default value: 3000. Unit: milliseconds. | 3000 |
RttThreshold | integer | Yes | The maximum round-trip time (RTT). Valid values: -1 and 1 to 5000. Default value: -1. This value indicates that the RTT threshold is not specified. Unit: milliseconds. | 3 |
RttFailThreshold | integer | Yes | The number of times that the maximum RTT is exceeded before an alert is triggered. Valid values: 1 to 15. Default value: 3. | 3 |
FailCountThreshold | integer | Yes | The number of failed probes before a health check is declared failed. Valid values: 1 to 15. Default value: 3. | 3 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F0290F85-8087-4FB7-81F8-84226A4DAAB2"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | HC.InstanceNoFound | The specified network health check instance does not exist. | The specified network health check instance does not exist. |
400 | HC.InvalidDescription | The specified description is invalid. | The specified description is invalid. |
400 | HC.InvalidDstIpAddr | The specified destination IP address is invalid. | The specified destination IP address is invalid. |
400 | HC.InvalidDstPort | The specified destination port is invalid. | The specified destination port is invalid. |
400 | HC.InvalidFailCountThreshold | The maximum number of successive failed probes is exceeded. | The maximum number of successive failed probes is exceeded. |
400 | HC.InvalidName | The specified name is invalid. | The specified name is invalid. |
400 | HC.InvalidProbeCount | The specified number of probes is invalid. | The specified number of probes is invalid. |
400 | HC.InvalidProbeInterval | The specified probe interval is invalid. | The specified probe interval is invalid. |
400 | HC.InvalidProbeTimeout | The specified probe timeout period is invalid. | The specified probe timeout period is invalid. |
400 | HC.InvalidRttFailThreshold | The RTT threshold has been triggered too many times. | The RTT threshold has been triggered too many times. |
400 | HC.InvalidRttThreshold | The specified RTT is invalid. | The specified RTT is invalid. |
400 | HC.InvalidSrcIpAddr | The specified source IP address is invalid. | The specified source IP address is invalid. |
400 | HC.InvalidSrcPort | The specified source port is invalid. | The specified source port is invalid. |
400 | HC.InvalidType | The specified type is invalid. | The specified type is invalid. |
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | You must specify the SAG instance ID. |
400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | The specified SAG instance does not exist. |
400 | SAG.SoftwareNotSupportFeature | The specified SAG Software instance does not support this feature. | The specified SAG Software instance does not support this feature. |
400 | SAG.NoActive | The specified SAG instance has not been activated. | The specified SAG instance has not been activated. |
400 | SAG.Arrearage | The specified SAG instance has overdue payments. Renew the instance first. | The specified SAG instance has overdue payments. Renew the instance first. |
400 | HC.AutoGenerated | The health check instance is automatically generated and cannot be modified. | The health check instance is automatically generated and cannot be modified. |
400 | HC.RelatedRoute | The specified health check instance has associated routes and cannot be deleted. | The specified health check instance has associated routes and cannot be deleted. |
For a list of error codes, visit the Service error codes.