tencent cloud

APIs

DescribeZones

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-25 16:57:54

1. API Description

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

This API is used to query site information you have permission to access. You can filter sites based on different query conditions.

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: DescribeZones.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
Offset No Integer The offset of paginated query. Default value: 0.
Limit No Integer Paginated query limit. Default value: 20, maximum value: 100.
Filters.N No Array of AdvancedFilter Filter criteria. The maximum number of Filters.Values is 20. If this parameter is left empty, all site information authorized under the current appid will be returned. The detailed filter criteria are as follows:
  • zone-name: Filter by site name.
  • zone-type: Filter by site type. Options:
    full: NS access type
    partial: CNAME access type
    partialComposite: domainless access
    dnsPodAccess: DNSPod managed access
    pages: Pages access type
    ai: edge reasoning access type.
  • zone-id: Filter by site ID in the format like zone-2noz78a8ev6k.
  • status: Filter by site status. Options:
    active: NS switched
    pending: NS to be switched
    deleted: deleted.
  • tag-key: Filter by tag key.
  • tag-value: Filter by tag value.
  • alias-zone-name: Filter by identical site identifier.
  • Fuzzy query supports filtering fields named zone-name or alias-zone-name.
    Order No String Sort returned results based on this field. Valid values:
  • type: access type;
  • area: acceleration region;
  • create-time: creation time;
  • zone-name: site name;
  • use-time: last used time;
  • active-status: effective status.
  • If left empty, the returned results are sorted by create-time by default.
    Direction No String Sorting order. If the field value is a number, sort by number size. If the field value is text, sort by ASCII code size. Valid values:
  • asc: sort in ascending order;
  • desc: in descending order.
  • Use default value desc if not specified.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Number of eligible sites.
    Zones Array of Zone Site list details.
    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 List of User Site Information

    Query the site information of the site named "example.com" with exact match.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeZones
    <Common request parameters>
    
    {
        "Filters": [
            {
                "Name": "zone-name",
                "Values": [
                    "example.com"
                ],
                "Fuzzy": false
            }
        ]
    }

    Output Example

    {
        "Response": {
            "TotalCount": 1,
            "Zones": [
                {
                    "ZoneId": "zone-2noz3g48ev6k",
                    "ZoneName": "example.com",
                    "ActiveStatus": "inactive",
                    "AliasZoneName": "",
                    "Area": "global",
                    "CnameSpeedUp": "enabled",
                    "CnameStatus": "pending",
                    "CreatedOn": "2023-09-18T07:41:05Z",
                    "IsFake": 0,
                    "LockStatus": "enable",
                    "NSDetail": {
                        "CnameSpeedUp": "enabled",
                        "IsFake": 0,
                        "NameServers": [
                            "ns1.teodns.com.",
                            "ns2.teodns.com."
                        ],
                        "OriginalNameServers": [
                            "ns1.example.com.",
                            "ns2.example.com."
                        ],
                        "VanityNameServers": {
                            "Switch": "on",
                            "Servers": [
                                "ns1.teodns.com.",
                                "ns2.teodns.com."
                            ]
                        },
                        "VanityNameServersIps": []
                    },
                    "CNAMEDetail": {
                        "IsFake": 0
                    },
                    "DNSPodDetail": null,
                    "ModifiedOn": "2023-09-18T07:41:50Z",
                    "NameServers": [
                        "ns1.teodns.com.",
                        "ns2.teodns.com."
                    ],
                    "OriginalNameServers": [
                        "ns1.example.com.",
                        "ns2.example.com."
                    ],
                    "Paused": false,
                    "Resources": [
                        {
                            "Area": "global",
                            "AutoRenewFlag": 0,
                            "CreateTime": "2023-09-18T07:41:18Z",
                            "EnableTime": "2023-09-18T07:41:18Z",
                            "ExpireTime": "2099-12-31T15:59:59Z",
                            "Group": "plan",
                            "Id": "edgeone-2noz3qqkvqth",
                            "PayMode": 0,
                            "PlanId": "edgeone-2noz3qqkvqth",
                            "Status": "normal",
                            "Sv": [
                                {
                                    "Key": "sv_edgeone_plan_sec_ent_flatfee_cm",
                                    "Value": "1",
                                    "InstanceId": "",
                                    "Pack": "",
                                    "ProtectionSpecs": ""
                                }
                            ]
                        },
                        {
                            "Area": "global",
                            "AutoRenewFlag": 0,
                            "CreateTime": "2023-09-18T07:41:18Z",
                            "EnableTime": "2023-09-18T07:41:18Z",
                            "ExpireTime": "2099-12-31T15:59:59Z",
                            "Group": "pay-as-you-go",
                            "Id": "edgeone-2noz3t4be7xw",
                            "PayMode": 0,
                            "PlanId": "edgeone-2noz3qqkvqth",
                            "Status": "normal",
                            "Sv": [
                                {
                                    "Key": "sv_edgeone_sec_request_queries_month",
                                    "Value": "1",
                                    "InstanceId": "",
                                    "Pack": "",
                                    "ProtectionSpecs": ""
                                },
                                {
                                    "Key": "sv_edgeone_va_unit_month",
                                    "Value": "1",
                                    "InstanceId": "",
                                    "Pack": "",
                                    "ProtectionSpecs": ""
                                }
                            ]
                        }
                    ],
                    "Status": "pending",
                    "Tags": [],
                    "Type": "full",
                    "VanityNameServers": null,
                    "VanityNameServersIps": [],
                    "WorkModeInfos": [
                        {
                            "ConfigGroupType": "l7_acceleration",
                            "WorkMode": "version_control"
                        },
                        {
                            "ConfigGroupType": "edge_functions",
                            "WorkMode": "version_control"
                        },
                        {
                            "ConfigGroupType": "web_security",
                            "WorkMode": "immediate_effect"
                        }
                    ]
                }
            ],
            "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
    InternalError.ProxyServer Unknown error occurs on the real server.
    OperationDenied Operation denied.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.
    UnauthorizedOperation.NoPermission The sub-account does not have operation permissions. Add the required permissions and try again.
    UnauthorizedOperation.Unknown Unknown error occurs on the real server.

    ヘルプとサポート

    この記事はお役に立ちましたか?

    フィードバック