新增服务区
POST
/eims/api/v1/admin/zones
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
服务区新增表单
name
string | null
服务区名称
<= 30 字符
description
string
服务区描述
<= 200 字符
zoneIPRanges
array[object (IPRange) {2}] | null
服务区IP段
默认值:
new ArrayList<>()
startIP
string | null
起始IP
endIP
string | null
结束IP
zoneCodes
array[string] | null
服务区号码
默认值:
new ArrayList<>()
示例
{
"name": "string",
"description": "string",
"zoneIPRanges": "new ArrayList<>()",
"zoneCodes": "new ArrayList<>()"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/eims/api/v1/admin/zones' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"description": "string",
"zoneIPRanges": "new ArrayList<>()",
"zoneCodes": "new ArrayList<>()"
}'
返回响应
🟢200成功
application/json
Body
服务区详情
id
string
服务区id
name
string
服务区名称
description
string
服务区描述
zoneIPRanges
array[object (IPRange) {2}]
服务区IP段
startIP
string | null
起始IP
endIP
string | null
结束IP
zoneCodes
array[string]
服务区号码
isDefault
boolean
是否默认服务区
示例
{
"id": "",
"name": "",
"description": "",
"zoneIPRanges": [
{
"startIP": "",
"endIP": ""
}
],
"zoneCodes": [
""
],
"isDefault": false
}