GetRouters【获取租户路由器信息】¶
获取租户路由器信息
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Array | JSON 格式的路由器信息列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
status | String | 状态 |
ip | Integer | 路由器 IP |
bandwidth | String | 带宽大小 |
download | String | 下行带宽限制(默认限制为30Mbits/s) |
port_id | String | 交换机端口 ID |
id | String | 路由器 ID |
network | String | 路由器公网名称 |
name | String | 路由器名称 |
network_id | String | 路由器公网 ID |
physical_network | String | 物理网络名称 |
billing_type | String | 计费类型 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/x-www-form-urlencoded
Form Data:
action: GetRouters
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"status": "ACTIVE",
"ip": "58.67.219.210",
"bandwidth": "1",
"download": 30,
"port_id": "c85245cc-45b6-49f1-9411-d1e239368dad",
"id": "8a956142-bed5-4e78-99cd-a18d416c8a74",
"network": "BGP-1",
"name": "router",
"network_id": "4303951f-a281-44b9-81b6-0fe257e1a2f8",
"physical_network": "physnet1",
"billing_type": "hour"
}
]
}