Domain name for API request: privatedns.intl.tencentcloudapi.com.
This API is used to query the regions where the endpoint is enabled.
A maximum of 10 requests can be initiated per second for this API.
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: DescribeEndPointRegion. |
Version | Yes | String | Common Params. The value used for this API: 2020-10-28. |
Region | No | String | Common Params. This parameter is not required for this API. |
Parameter Name | Type | Description |
---|---|---|
RegionSet | Array of RegionInfo | Region array. |
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. |
This example shows you how to query the available regions for the endpoint
POST / HTTP/1.1
Host: privatedns.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeEndPointRegion
<Common request parameters>
{}
{
"Response": {
"RegionSet": [
{
"CnName": "Beijing",
"EnName": "bj",
"RegionCode": "ap-beijing",
"RegionId": 8
},
{
"CnName": "Guangzhou",
"EnName": "gz",
"RegionCode": "ap-guangzhou",
"RegionId": 1
},
{
"CnName": "Nanjing",
"EnName": "nj",
"RegionCode": "ap-nanjing",
"RegionId": 33
},
{
"CnName": "Shanghai",
"EnName": "sh",
"RegionCode": "ap-shanghai",
"RegionId": 4
}
],
"RequestId": "036e44eb-02af-44cf-b46e-924a0e04ea4a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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 | Operation failed. |
InternalError | Internal error. |
InternalError.UndefiendError | Undefined error. |
InvalidParameter | Incorrect parameter. |
InvalidParameterValue | Incorrect parameter value. |
MissingParameter | Missing parameter. |
ResourceNotFound.ServiceNotSubscribed | The Private DNS service is not activated. |
UnsupportedOperation.FrequencyLimit | The API call frequency exceeds the limit. |
Was this page helpful?