Queries information about regions.
Operation description
QPS limit
The queries per second (QPS) limit for this API is 10 for each user. If you exceed the limit, API calls are throttled, which can affect your business. Call this API at a reasonable rate.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
59.82.59.XX |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| SourceCode |
string |
Yes |
The source tracking code. |
yundun |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries. |
8 |
| RequestId |
string |
The ID of the request. |
25E655B0-CAED-53D4-8054-F983126**** |
| DataList |
array<object> |
The list of data. |
|
|
object |
The data object. |
||
| RegionName |
string |
The name of the region. |
上海 |
| RegionId |
string |
The ID of the region. |
cn-shanghai |
Examples
Success response
JSON format
{
"TotalCount": 8,
"RequestId": "25E655B0-CAED-53D4-8054-F983126****",
"DataList": [
{
"RegionName": "上海",
"RegionId": "cn-shanghai"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorQueryEcsByUid | An error occurred while querying ECS. | An error occurred while querying ECS. |
| 400 | ErrorSourceCodeError | The source code is invalid. | The source code is invalid. |
| 400 | ErrorUnMarshalJSON | internal error. | Internal Error |
| 400 | ErrorMarshalJSON | internal error. | Internal error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.