调用DescribeEpnInstanceAttribute查询边边通信组网信息。
接口说明
内网模式下 instaces 为空,公网模式下 vswitch 为空。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeEpnInstanceAttribute |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| EPNInstanceId |
string |
是 |
边边网络实例 ID。 |
epn-xxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| ConfVersions |
array<object> |
边边网络配置信息。 |
|
|
object |
|||
| ConfVersion |
string |
版本号。 |
2017-10-11 |
| EnsRegionId |
string |
节点 ID。 |
cn-chengdu-telecom |
| EPNInstanceId |
string |
边边网络实例 ID。 |
epn-xxxx |
| EPNInstanceName |
string |
边边网络实例名称。 |
epn-test |
| Instances |
array<object> |
实例信息。 |
|
|
object |
|||
| EnsRegionId |
string |
节点 ID。 |
cn-chengdu-telecom-4 |
| InstanceId |
string |
实例 ID。 |
epn-xxx |
| InstanceName |
string |
实例名称。 |
epn-test |
| Isp |
string |
运营商取值:
|
cmcc |
| PrivateIpAddress |
string |
私网 IP。 |
192.168.1.12 |
| PublicIpAddress |
string |
公网 IP。 |
20.3.XX.XX |
| Status |
string |
实例状态如下所示:
|
Running |
| NetworkingModel |
string |
组网模式,取值:
|
SpeedUp |
| RequestId |
string |
请求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| VSwitches |
array<object> |
交换机信息。 |
|
|
object |
|||
| CidrBlock |
string |
Cidr 地址段。 |
10.0.0.1/24 |
| EnsRegionId |
string |
节点 ID。 |
cn-chengdu-telecom-4 |
| VSwitchId |
string |
交换机 ID。 |
vs-xxxx |
| VSwitchName |
string |
交换机名称。 |
vs-test |
示例
正常返回示例
JSON格式
{
"ConfVersions": [
{
"ConfVersion": "2017-10-11",
"EnsRegionId": "cn-chengdu-telecom"
}
],
"EPNInstanceId": "epn-xxxx",
"EPNInstanceName": "epn-test",
"Instances": [
{
"EnsRegionId": "cn-chengdu-telecom-4",
"InstanceId": "epn-xxx",
"InstanceName": "epn-test",
"Isp": "cmcc",
"PrivateIpAddress": "192.168.1.12",
"PublicIpAddress": "20.3.XX.XX",
"Status": "Running"
}
],
"NetworkingModel": "SpeedUp",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"VSwitches": [
{
"CidrBlock": "10.0.0.1/24",
"EnsRegionId": "\t cn-chengdu-telecom-4",
"VSwitchId": "vs-xxxx",
"VSwitchName": "vs-test"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. | 接口调用出错。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。