tencent cloud

Feedback

DescribeNode

Last updated: 2023-08-18 15:47:45

1. API Description

Domain name for API request: ecm.tencentcloudapi.com.

This API is used to get the list of nodes.

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: DescribeNode.
Version Yes String Common Params. The value used for this API: 2019-07-19.
Region No String Common Params. This parameter is not required for this API.
Filters.N No Array of Filter Filter. InstanceFamily: instance family.

3. Output Parameters

Parameter Name Type Description
NodeSet Array of Node List of node details
Note: this field may return null, indicating that no valid values can be obtained.
TotalCount Integer Total number of nodes.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Viewing region list

This example shows you how to view the list of regions.

Input Example

https://ecm.tencentcloudapi.com/?Action=DescribeNode
&Filters.0.Name=InstanceFamily
&Filters.0.Values.0=SN3ne
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "187c16d5-1f53-4e88-b684-077f0c7123b2",
        "NodeSet": [
            {
                "ZoneInfo": {
                    "ZoneId": 10110001,
                    "ZoneName": "Hangzhou Zone 1",
                    "Zone": "ap-hangzhou-ecm-1"
                },
                "Country": {
                    "CountryId": "china",
                    "CountryName": "China"
                },
                "Area": {
                    "AreaId": "china-east",
                    "AreaName": "East China"
                },
                "Province": {
                    "ProvinceId": "china-east-zhejiang",
                    "ProvinceName": "Zhejiang"
                },
                "City": {
                    "CityId": "china-east-zhejiang-hangzhou",
                    "CityName": "Hangzhou"
                },
                "RegionInfo": {
                    "RegionId": 1011,
                    "Region": "ap-hangzhou-ecm",
                    "RegionName": "Hangzhou"
                },
                "ISPSet": [
                    {
                        "ISPId": "CMCC",
                        "ISPName": "China Mobile"
                    },
                    {
                        "ISPId": "CUCC",
                        "ISPName": "China Unicom"
                    },
                    {
                        "ISPId": "CTCC",
                        "ISPName": "China Telecom"
                    },
                    {
                        "ISPId": "CTCC;CUCC;CMCC",
                        "ISPName": "Non-BGP"
                    }
                ],
                "ISPNum": 3
            },
            {
                "ZoneInfo": {
                    "ZoneId": 10510001,
                    "ZoneName": "Shenzhen Zone 5 (China Telecom)",
                    "Zone": "ap-shenzhen-ecm-ct2"
                },
                "Country": {
                    "CountryId": "china",
                    "CountryName": "China"
                },
                "Area": {
                    "AreaId": "china-south",
                    "AreaName": "South China"
                },
                "Province": {
                    "ProvinceId": "china-south-guangdong",
                    "ProvinceName": "Guangdong"
                },
                "City": {
                    "CityId": "china-south-guangdong-shenzhen",
                    "CityName": "Shenzhen"
                },
                "RegionInfo": {
                    "RegionId": 1051,
                    "Region": "ap-shenzhen-ecm-ct2",
                    "RegionName": "Shenzhen"
                },
                "ISPSet": [
                    {
                        "ISPId": "CTCC",
                        "ISPName": "China Telecom"
                    }
                ],
                "ISPNum": 1
            }
        ],
        "TotalCount": 2
    }
}

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
FailedOperation.InternalOperationFailure Internal error.
InvalidParameter.InvalidDataFormat The data format is incorrect.
MissingParameter.MissingNodeParameter The node operation parameters are incomplete.
UnauthorizedOperation.ForbiddenOperation You don't have the permission to perform this operation.