DescribeLocationInfo
Queries geolocation information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeLocationInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
180.169.141.XXX |
| Lang |
string |
No |
The language type. Valid values:
|
zh |
| SourceCode |
string |
Yes |
The source code. |
yundun |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CD3BE433-FAB0-55D8-918A-69B306**** |
| CnCount |
integer |
The number of regions in the Chinese mainland. |
340 |
| OverseasCount |
integer |
The number of regions outside China. |
238 |
| OverseasList |
array<object> |
The list of regions outside China. |
|
|
object |
The list of regions outside China. |
||
| LocId |
string |
The region ID. |
US |
| LocName |
string |
The region name. |
United States |
| CnList |
array<object> |
The list of regions in the Chinese mainland. |
|
|
object |
The list of regions in the Chinese mainland. |
||
| LocId |
string |
The region ID. |
3301 |
| LocName |
string |
The region name. |
Hangzhou City |
| CnProvinceList |
array<object> |
The province and city information in the Chinese mainland. |
|
|
array<object> |
The province and city information in the Chinese mainland. |
||
| ProvinceName |
string |
The province name. |
Zhejiang |
| Cities |
array<object> |
The list of city codes. |
|
|
object |
The list of city codes. |
||
| LocId |
string |
The region ID. |
123 |
| LocName |
string |
The region name. |
Hangzhou |
Examples
Success response
JSON format
{
"RequestId": "CD3BE433-FAB0-55D8-918A-69B306****",
"CnCount": 340,
"OverseasCount": 238,
"OverseasList": [
{
"LocId": "US",
"LocName": "United States"
}
],
"CnList": [
{
"LocId": "3301",
"LocName": "Hangzhou City"
}
],
"CnProvinceList": [
{
"ProvinceName": "Zhejiang",
"Cities": [
{
"LocId": "123",
"LocName": "Hangzhou"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorMarshalJSON | internal error. | Internal error. |
| 400 | ErrorSourceCodeError | The source code is invalid. | The source code is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.