Domain name for API request: antiddos.intl.tencentcloudapi.com.
This API is used to modify a protection instance. You can modify the name of the protection instance.
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: ModifyProtection. |
| Version | Yes | String | Common Params. The value used for this API: 2025-09-03. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| ProtectionId | Yes | String | ID of the protection instance. |
| Name | No | String | Name of the protection instance. Input limit: The name can contain up to 60 characters and must be unique under the same root account. |
| 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. |
This example shows you how to rename the protection instance prot-0004c045b8 to new_protection_name.
POST / HTTP/1.1
Host: antiddos.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyProtection
<Common request parameters>
{
"ProtectionId": "prot-0004c045b8",
"Name": "new_protection_name"
}
{
"Response": {
"RequestId": "9kl50bew-89ga-44f4-91ce-78125d53vd2a"
}
}
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 |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| LimitExceeded | The quota limit is exceeded. |
| ResourceNotFound | Resources do not exist. |
| UnsupportedOperation | The operation is not supported. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários