校验设备账号或IP是否匹配服务区的区号或IP段规则
POST
/eims/api/v2/admin/assets/devices/check-device-account
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
zoneId
string <int64> | null
服务区id
ip
string
设备ip
account
string
设备账号
示例
{
"zoneId": "string",
"ip": "string",
"account": "string"
}
示例代码
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/v2/admin/assets/devices/check-device-account' \
--header 'Content-Type: application/json' \
--data-raw '{
"zoneId": "string",
"ip": "string",
"account": "string"
}'
返回响应
🟢200成功
application/json
Body
设备账号或IP的检查结果
valid
boolean
可选
zoneId
string <int64>
服务区id
zoneCodes
array[string]
可选
zoneIPRanges
array[string]
可选
示例
{
"valid": false,
"zoneId": "",
"zoneCodes": [
""
],
"zoneIPRanges": [
""
]
}