調用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. | 介面調用出錯。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。