調用DescribeEnsNetDistrict查詢可建立邊緣服務資源地區。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:DescribeEnsNetDistrict |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| NetLevelCode |
string |
是 |
地區層級。
|
Big |
| NetDistrictCode |
string |
否 |
地區代碼。 如果該參數為空白,則只查詢 NetLevelCode 下的節點。 如果該參數不為空白,則只查詢 NetDistrictCode 下的子節點。 |
100106 |
| NetDistrictCodeNode |
boolean |
否 |
地區代碼 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
integer |
業務碼,成功返回 0。 |
0 |
| EnsNetDistricts |
object |
||
| EnsNetDistrict |
array<object> |
地區資訊。 |
|
|
object |
地區資訊。 |
||
| EnsRegionIdCount |
string |
地區下的節點數量。 |
2 |
| NetDistrictCode |
string |
地區代碼。 |
100106 |
| NetDistrictEnName |
string |
地區英文名稱。 |
southWest |
| NetDistrictFatherCode |
string |
地區上級代碼。 |
100000 |
| NetDistrictLevel |
string |
地區層級。
|
Big |
| NetDistrictName |
string |
地區中文名稱。 |
西南 |
| RequestId |
string |
請求 ID。 |
F3B261DD-3858-4D3C-877D-303ADF374600 |
樣本
正常返回樣本
JSON格式
{
"Code": 0,
"EnsNetDistricts": {
"EnsNetDistrict": [
{
"EnsRegionIdCount": "2",
"NetDistrictCode": "100106",
"NetDistrictEnName": "southWest",
"NetDistrictFatherCode": "100000",
"NetDistrictLevel": "Big",
"NetDistrictName": "西南"
}
]
},
"RequestId": "F3B261DD-3858-4D3C-877D-303ADF374600"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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. | 指定的執行個體ID不存在。 |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | 介面調用出錯。 |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。