Domain name for API request: alb.intl.tencentcloudapi.com.
Modify a health check template
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyHealthCheckTemplate. |
| Version | Yes | String | Common Params. The value used for this API: 2025-10-30. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| HealthCheckTemplateId | Yes | String | Health check template ID. The format is |
| DryRun | No | Boolean | Whether to preview this request.
|
| HealthCheckCodes.N | No | Array of String | Health check status code. Value:
|
| HealthCheckHealthyThreshold | No | Integer | Threshold for determining backend service health. After the health check succeeds consecutively for this number of times, the backend service status changes from unhealthy to healthy. |
| HealthCheckHost | No | String | Health check domain name.
|
| HealthCheckHttpVersion | No | String | HTTP version for health check. Valid values:
|
| HealthCheckInterval | No | Integer | The interval of health check. Unit: second. Value range: 2-300. Default value: 5. |
| HealthCheckMethod | No | String | Health check method. Value: - GET - HEAD (default value)
|
| HealthCheckPath | No | String | Forwarding rule path for health check. The length is 1-80 characters. Only letters, digits, characters
|
| HealthCheckPort | No | Integer | Health check access to the backend server port. Value range: 0-65535. Default value: 0, which means the backend server port. |
| HealthCheckProtocol | No | String | Health check protocol. Valid values:
|
| HealthCheckTemplateName | No | String | Health check template name. It is 1-255 characters long and can contain digits, upper- and lower-case letters, Chinese characters, half-width periods (.), underscores (_), and dashes (-). |
| HealthCheckTimeout | No | Integer | Health check response timeout, in seconds. |
| HealthCheckUnhealthyThreshold | No | Integer | Threshold for determining an unhealthy backend service. After how many consecutive health check failures, the backend service status changes from healthy to unhealthy. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: alb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyHealthCheckTemplate
<Common request parameters>
{
"HealthCheckTemplateId": "hct-fb7tuf7o",
"HealthCheckTemplateName": "Modify name"
}
{
"Response": {
"RequestId": "e109ac6e-a12b-4fb2-885e-e63d63c4d883"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| DryRunOperation | DryRun operation means the request will be successful, but the DryRun parameter is passed. |
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
| RegionError | Region error |
| RequestLimitExceeded | Number of requests exceeds the frequency limit. |
| ResourceInUse | The resource is occupied. |
| ResourceNotFound | The resource does not exist. |
| ResourceUnavailable | Resources are unavailable. |
| UnauthorizedOperation | Unauthorized operation. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan