调用DescribeEnsNetDistrict查询可创建边缘服务资源地域。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
NetLevelCode | string | 是 | 地域层级。
| Big |
NetDistrictCode | string | 否 | 地域代码。 如果该参数为空,则只查询 NetLevelCode 下的节点。 如果该参数不为空,则只查询 NetDistrictCode 下的子节点。 | 100106 |
返回参数
示例
正常返回示例
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. | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-12-26 | OpenAPI 描述信息更新、OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 查看变更详情 |