PortForwardingDel【删除路由器端口转发】¶
删除路由器端口转发:可使用路由器ID,协议,内网IP,内部端口和外部端口来删除路由器端口转发。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
nets | Array | JSON 格式的路由器端口转发信息列表,每项参数可见下面 Nets Item | Yes |
Nets Item
Key name | Type | Description | Required |
---|---|---|---|
router_id | String | 路由器 ID | Yes |
protocol | String | 协议 | Yes |
in_addr | String | 内网 IP | Yes |
in_port | Integer | 内部端口 | Yes |
out_port | Integer | 外部端口 | 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": "PortForwardingDel",
"nets": [
{
"router_id": "a394dba0-09da-4fa6-a7bf-ca8b3e3f05ae",
"protocol": "tcp",
"in_addr": "192.168.24.8",
"in_port": 22,
"out_port": 6699
}
]
}
Example Response:
{
"message": "成功",
"code": 200
}