添加sdn区域
POST
/sdn/addZone
最后修改时间:2025-06-29 01:36:30
责任人:mryunqi
请求参数
Body 参数application/json
nodeId
integer
节点id
type
string
必需
zone
string
sdn区域标识符
ipam
string | null
可选
示例
{
"nodeId": 1,
"type": "simple",
"zone": "test"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/sdn/addZone' \
--header 'Content-Type: application/json' \
--data-raw '{
"nodeId": 1,
"type": "simple",
"zone": "test"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
string
必需
示例
{
"code": 20000,
"message": "请求成功",
"data": "Success"
}
修改于 2025-06-29 01:36:30