删除端口转发规则
POST
/nat/delete
最后修改时间:2024-12-31 09:17:50
责任人:mryunqi
请求参数
Header 参数
Authorization
string
可选
示例值:
83gec12d3ee99ssbb4328c53de7ca432a
Body 参数application/json
source_port
integer | null
宿主端口
destination_ip
string | null
客户端ip
destination_port
integer | null
客户端端口
protocol
enum<string>
tcp或udp
枚举值:
tcpudp
vm
string
虚拟机识别id
示例
{
"source_port": 63663,
"destination_ip": "192.168.7.12",
"destination_port": 7779,
"protocol": "udp",
"vm": "10"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/nat/delete' \
--header 'Authorization: 83gec12d3ee99ssbb4328c53de7ca432a' \
--header 'Content-Type: application/json' \
--data-raw '{
"source_port": 63663,
"destination_ip": "192.168.7.12",
"destination_port": 7779,
"protocol": "udp",
"vm": "10"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}