InterfaceAdd【路由器添加子网】¶
路由器添加子网端口:可使用路由器ID,子网ID和端口IP来创建路由器端口。 如果不指定任何添加条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
obj_id | String | 路由器 ID | Yes |
subnet_id | String | 子网 ID | Yes |
ip_address | String | 端口 IP(默认值:空) | No |
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": "InterfaceAdd",
"obj_id": "a394dba0-09da-4fa6-a7bf-ca8b3e3f05ae",
"subnet_id": "e6858c9c-ba6c-40ee-bc04-06db0d127fa0",
"ip_address": ""
}
Example Response:
{
"message": "成功",
"code": 200
}