tencent cloud

APIs

DescribeProtections

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-27 14:38:04

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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 Filters array is 20. If this parameter is not specified, all protection instances that the current account has permission to access are returned.

Supported filter fields:

  • Name: Filter by protection instance name.
  • ProtectionId: Filter by protection instance ID.
  • ProtectionLevel: Filter by protection instance level. Valid values:
    • advanced: Advanced protection.
    • ultimate: Ultimate protection.
  • Status: Filter by protection instance status. Valid values:
    • protecting: Protecting.
    • processing: Changing.
    • disabling: Isolating or deleting.
    • disabled: Isolated.
  • TagKey: Filter by tag key.
  • TagValue: Filter by tag value.

Filter field names supported for fuzzy query include Name, ProtectionId, ProtectionLevel, Status, TagKey, and TagValue.

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.

3. Output Parameters

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.

4. Example

Example1 Querying the Details of a Specified Protection Instance

This example shows you how to query the detailed information of prot-0004c045b8 by filtering with the protection instance ID.

Input Example

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"
            ]
        }
    ]
}

Output Example

{
    "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"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백