-
响应示例 返回状态码为200:删除成功,响应体参考TagRes。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : ""
}
-
请求示例 HTTP的示例 POST /controller/campus/baseservice/api/v1/devicemgr/tags/action/unbind-devices HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC
CES S-TOKEN: x-yyyyyy
{
"tagNames" : ["tag1","tag2"],
"deviceIds" : ["d25de9be-1d9a-4d06-a519-09ff92fee050","d25de9be-1d9a-4d06-a519-09ff92fee050"]
}
-
响应参数 返回状态码为200:查询成功,响应体参考TagList。 表2 TagList对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 1~64个字符。 - 错误码 "0" errmsg string 1~64个字符。 - 错误信息 "" data ARRAY_REFERENCE 0-1000个列表项,详细请参见表3。 tag列表 - 表3 TagDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 1~64个字符。 - 标签ID "d25de9be-1d9a-4d06-a519-09ff92fee050" name string 1~64个字符。 - 标签名称 "tag123" deviceGroupId string 1~64个字符。 - 设备组ID "d25de9be-1d9a-4d06-a519-09ff92fee050" tenantId string 1~64个字符。 - 租户ID "125de9be-1d9a-4d06-a519-09ff92fee050" tagShortId string 1~64个字符。 - 标签短ID "123"
-
响应示例 返回状态码为200:查询成功,响应体参考TagList。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"id" : "d25de9be-1d9a-4d06-a519-09ff92fee050",
"name" : "tag123",
"deviceGroupId" : "d25de9be-1d9a-4d06-a519-09ff92fee050",
"tenantId" : "125de9be-1d9a-4d06-a519-09ff92fee050",
"tagShortId" : "123"
}
]
}
-
URI /controller/campus/baseservice/api/v1/devicemgr/tags 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 string 1~64个字符。 - 站点id "d25de9be-1d9a-4d06-a519-09ff92fee050" deviceId 否 string 1~64个字符。 - 设备id "d25de9be-1d9a-4d06-a519-09ff92fee050"
-
请求示例 HTTP的示例 GET /controller/campus/baseservice/api/v1/devicemgr/tags?siteId=d25de9be-1d9a-4d06-a519-09ff92fee050&deviceId=d25de9be-1d9a-4d06-a519-09ff92fee050 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
-
响应示例 返回状态码为200:添加成功,响应体参考TagRes。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : ""
}
-
请求示例 HTTP的示例 POST /controller/campus/baseservice/api/v1/devicemgr/tags/action/bind-devices HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"tagNames" : ["tag1","tag2"],
"deviceIds" : ["d25de9be-1d9a-4d06-a519-09ff92fee050","d25de9be-1d9a-4d06-a519-09ff92fee050"]
}