Memanggil DescribeEnsNetDistrict untuk mengkueri wilayah tempat sumber daya Edge Service (ENS) dapat dibuat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeEnsNetDistrict |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NetLevelCode |
string |
Yes |
Tingkat wilayah.
|
Big |
| NetDistrictCode |
string |
No |
Kode wilayah. Jika parameter ini dibiarkan kosong, hanya node di bawah NetLevelCode yang ditentukan yang dikueri. Jika parameter ini ditentukan, hanya node anak di bawah NetDistrictCode yang ditentukan yang dikueri. |
100106 |
| NetDistrictCodeNode |
boolean |
No |
Kode wilayah. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode bisnis. Nilai 0 dikembalikan jika panggilan berhasil. |
0 |
| EnsNetDistricts |
object |
||
| EnsNetDistrict |
array<object> |
Informasi wilayah. |
|
|
object |
Informasi wilayah. |
||
| EnsRegionIdCount |
string |
The number of nodes in the region. |
2 |
| NetDistrictCode |
string |
The code of the region. |
100106 |
| NetDistrictEnName |
string |
The name of the region. |
southWest |
| NetDistrictFatherCode |
string |
The parent code of the region. |
100000 |
| NetDistrictLevel |
string |
The level of the region.
|
Big |
| NetDistrictName |
string |
The name of the region. |
西南 |
| RequestId |
string |
ID permintaan. |
F3B261DD-3858-4D3C-877D-303ADF374600 |
Contoh
Respons sukses
JSONformat
{
"Code": 0,
"EnsNetDistricts": {
"EnsNetDistrict": [
{
"EnsRegionIdCount": "2",
"NetDistrictCode": "100106",
"NetDistrictEnName": "southWest",
"NetDistrictFatherCode": "100000",
"NetDistrictLevel": "Big",
"NetDistrictName": "西南"
}
]
},
"RequestId": "F3B261DD-3858-4D3C-877D-303ADF374600"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter domainName that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.