-
响应示例 返回状态码为200:认证模板解绑设备、接口返回体。 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" : "",
"siteId" : "11111111-1111-1111-1111-111111111111",
"authtemplateId" : "11111111-1111-1111-1111-111111111112",
"authTempType" : "Wired",
"deviceList" : [
{
"deviceId" : "11111111-1111-1111-1111-111111111113",
"interfaceName" : ["GigabitEthernet0/0/1"],
"vlanifName" : ["Vlanif121"],
"deviceName" : "device1",
"deviceEsn" : "0002353AJS0000000000",
"deviceMode" : "S5732-H24S6Q"
}
]
} 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request
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
返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error
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
-
请求示例 HTTP的示例 POST /controller/campus/api/v1/lswauth/unbind 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
{
"siteId" : "11111111-1111-1111-1111-111111111111",
"authtemplateId" : "11111111-1111-1111-1111-111111111112",
"authTempType" : "Wired",
"deviceList" : [
{
"deviceId" : "11111111-1111-1111-1111-111111111113",
"interfaceName" : ["GigabitEthernet0/0/1"],
"vlanifName" : ["Vlanif121"],
"deviceName" : "device1",
"deviceEsn" : "0002353AJS0000000000",
"deviceMode" : "S5732-H24S6Q"
}
]
}
-
响应示例 返回状态码为200:认证模板绑定设备、接口返回体。 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" : "",
"siteId" : "11111111-1111-1111-1111-111111111111",
"authtemplateId" : "11111111-1111-1111-1111-111111111112",
"authTempType" : "Wired",
"deviceList" : [
{
"deviceId" : "11111111-1111-1111-1111-111111111113",
"interfaceName" : ["GigabitEthernet0/0/1"],
"vlanifName" : ["Vlanif121"],
"deviceName" : "device1",
"deviceEsn" : "0002353AJS0000000000",
"deviceMode" : "S5732-H24S6Q"
}
]
} 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request
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
返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error
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
-
请求示例 HTTP的示例 POST /controller/campus/api/v1/lswauth/bind 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
{
"siteId" : "11111111-1111-1111-1111-111111111111",
"authtemplateId" : "11111111-1111-1111-1111-111111111112",
"authTempType" : "Wired",
"deviceList" : [
{
"deviceId" : "11111111-1111-1111-1111-111111111113",
"interfaceName" : ["GigabitEthernet0/0/1"],
"vlanifName" : ["Vlanif121"],
"deviceName" : "device1",
"deviceEsn" : "0002353AJS0000000000",
"deviceMode" : "S5732-H24S6Q"
}
]
}
-
请求示例 HTTP的示例 POST /controller/campus/api/v1/lswauth/getBindInfo 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
{
"authTempId" : "11111111-1111-1111-1111-111111111112",
"siteId" : "11111111-1111-1111-1111-111111111111",
"pageIndex" : 1,
"pageSize" : 10,
"keyword" : "device"
}
-
响应示例 返回状态码为200:查询认证模板绑定设备、接口结果。 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" : "",
"pageIndex" : 1,
"pageSize" : 10,
"totalSize" : 100,
"deviceList" : [
{
"deviceId" : "11111111-1111-1111-1111-111111111113",
"interfaceName" : ["GigabitEthernet0/0/1"],
"vlanifName" : ["Vlanif121"],
"deviceName" : "device1",
"deviceEsn" : "0002353AJS0000000000",
"deviceMode" : "S5732-H24S6Q"
}
]
} 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request
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
返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error
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
-
响应参数 返回状态码为200:查询认证模板绑定设备、接口结果。 表3 BindInfoGetOutputDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~4096个字符。 - 错误信息。 "" pageIndex int32 [1-100000] - 当前页码。 1 pageSize int32 [5-200] - 分页大小。 10 totalSize int32 [1-1000000] - 当前认证模板绑定设备和接口总数目。 100 deviceList ARRAY_REFERENCE 0-200个列表项,详细请参见表5。 绑定设备列表 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
-
请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 bindInfoGetInputDto 是 REFERENCE 详细请参见表2。 查询请求入参。 - 表2 BindInfoGetInputDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 authTempId 是 string 32~36个字符。 - 认证模板ID "11111111-1111-1111-1111-111111111112" siteId 是 string 36个字符。 - 站点ID "11111111-1111-1111-1111-111111111111" pageIndex 否 int32 [1-100000] - 当前页码。 1 pageSize 否 int32 [5-200] - 分页大小。 10 keyword 否 string 0~512个字符。 - 搜索关键字。 "device"