You can call this operation to delete a health check instance.

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 No DeleteHealthCheck

The operation that you want to perform.

Set the value to DeleteHealthCheck.

HcInstanceId String Yes hc-vfgyz7dv07lthr****

The ID of the health check instance.

RegionId String Yes cn-shanghai

The ID of the region where the health check instance is deployed.

Response parameters

Parameter Type Example Description
RequestId String 7F0B079C-2D0E-4ABF-A970-C079F785A09C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteHealthCheck
&HcInstanceId=hc-vfgyz7dv07lthr****
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<DeleteHealthCheckResponse>
  <RequestId>7F0B079C-2D0E-4ABF-A970-C079F785A09C</RequestId>
</DeleteHealthCheckResponse>

JSON format

{
	"RequestId": "7F0B079C-2D0E-4ABF-A970-C079F785A09C"
}

Error codes

HttpCode Error code Error message Description
400 HC.InstanceNoFound The specified network health check instance does not exist. The error message returned because the specified health check instance does not exist.
400 HC.RelatedRoute The specified health check instance has associated routes and cannot be deleted. The error message returned because the specified health check instance is already associated with a route and cannot be deleted.

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