Domain name for API request: antiddos.intl.tencentcloudapi.com.
This API is used to query the DDoS Defender protection instances that the current account has permission to access by filter conditions, with pagination supported.
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: DescribeProtections. |
| 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. |
| Filters.N | No | Array of ProtectionFilter | Filter conditions. The maximum number of elements in the Supported filter fields:
Filter field names supported for fuzzy query include |
| Offset | No | Integer | Pagination query offset. Default value: 0. |
| Limit | No | Integer | Maximum number of results per page for pagination query. Default value: 20. Maximum value: 100. |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Number of protection instances that meet the conditions. |
| Protections | Array of ProtectionInfo | Detailed information list of protection instances. |
| 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 query the detailed information of prot-0004c045b8 by filtering with the protection instance ID.
POST / HTTP/1.1
Host: antiddos.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeProtections
<Common request parameters>
{
"Filters": [
{
"Name": "ProtectionId",
"Values": [
"prot-0004c045b8"
]
}
]
}
{
"Response": {
"TotalCount": 1,
"Protections": [
{
"ProtectionId": "prot-0004c045b8",
"Name": "protection_name",
"ProtectionLevel": "advanced",
"Status": "protecting",
"Tags": [
{
"TagKey": "business",
"TagValue": "protection"
}
]
}
],
"RequestId": "641a08e3-2ef7-407c-9c2f-2a9928741df5"
}
}
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. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| UnauthorizedOperation | Unauthorized operation. |
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