tencent cloud

边缘安全加速平台 EO

DescribeZones

PDF
聚焦模式
字号
最后更新时间: 2026-04-13 14:45:13

1. API Description

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

This API is used to query the information of sites that you have access to. You can filter sites based on different query criteria.

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 page offset. Default value: 0
Limit No Integer Limit on paginated queries. 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, it returns all authorized site information under the current appid. the detailed filter criteria are as follows:
  • zone-name: filter by site name.
  • zone-type: filter by website type. options:
    ??full: NS access type;
    ??partial: CNAME-based;
    ??partialComposite: no domain 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 switchover completed;
    ??pending: NS to be switched;
    ??deleted: has been deleted.
  • tag-key: filter according to the 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 the returned results according to this field. Values include:
  • type: Connection mode
  • area: Acceleration region
  • create-time: Creation time
  • zone-name: Site name
  • use-time: Last used time
  • active-status Effective status
  • Default value: create-time
    Direction No String Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include:
  • asc: From the smallest to largest
  • desc: From the largest to smallest.
  • Default value: desc

    3. Output Parameters

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

    Query site information with the exact site name "example.com".

    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 An unknown error occurred in the backend server.
    OperationDenied Operation denied.
    UnauthorizedOperation.CamUnauthorized CAM is not authorized.
    UnauthorizedOperation.NoPermission The sub-account is not authorized for the operation. Please get permissions first.
    UnauthorizedOperation.Unknown An unknown error occurred in the backend server.

    帮助和支持

    本页内容是否解决了您的问题?

    填写满意度调查问卷,共创更好文档体验。

    文档反馈