InterfaceRemove【删除路由器端口】¶
删除路由器端口:可使用路由器ID和路由器端口ID来删除路由器端口。 如果不指定任何删除条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
port_id | Array | 路由器端口 ID | Yes |
router_id | String | 路由器 ID | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "InterfaceRemove",
"port_id": [
"d7b51543-f8d7-41ec-b642-167b82c63f7a"
],
"router_id": "a394dba0-09da-4fa6-a7bf-ca8b3e3f05ae"
}
Example Response:
{
"message": "成功",
"code": 200
}