tencent cloud

APIs

DescribeProtectionResources

Download
Focus Mode
Font Size
Last updated: 2026-11-27 16:30:00

1. API Description

Domain name for API request: antiddos.intl.tencentcloudapi.com.

This API is used to query the protected resources bound to a protection instance by the protection instance ID. Pagination and filtering by resource type are 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: DescribeProtectionResources.
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.

Offset No Integer

Pagination query offset. Default value: 0.

Limit No Integer

Maximum number of results returned by pagination query. Default value: 20. Maximum value: 100.

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 protected resources under the protection instance are returned.

Supported filter fields:

  • ResourceType: Filters by protected resource type. Valid values:
    • cvm: CVM instance.
    • lighthouse: Lighthouse instance.
    • clb: CLB instance.
    • eip: EIP.
    • waf: WAF instance.
    • teo_l7_domain: EdgeOne domain.
    • teo_l4_proxy: EdgeOne L4 proxy.

3. Output Parameters

Parameter Name Type Description
TotalCount Integer

Total number of protected resources that meet the conditions.

ResourceInfos Array of ResourceInfo

List of detailed protected resource information.

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 Protected Resource List of a Protection Instance

This example shows you how to query the protected resources bound to the protection instance prot-3x7powyzy7kx, returning page 1 with 20 entries per page.

Input Example

POST / HTTP/1.1
Host: antiddos.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeProtectionResources
<Common request parameters>

{
    "ProtectionId": "prot-3x7powyzy7kx",
    "Offset": 0,
    "Limit": 20
}

Output Example

{
    "Response": {
        "TotalCount": 1,
        "ResourceInfos": [
            {
                "Resource": "qcs::clb:ap-guangzhou:uin/7000****8005:clb/lb-jm****74",
                "ResourceType": "clb",
                "Status": "protecting",
                "Region": "ap-guangzhou",
                "PublicAddresses": [
                    "lb-jmn***74-u8ovwq****xdj02f.clb.gz-ten****clb.com"
                ]
            }
        ],
        "RequestId": "2a146867-7e3f-4854-8e0d-f37cb1c6dd51"
    }
}

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
InternalError Internal error.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
ResourceNotFound Resources do not exist.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback