接口说明
面向政企版租户开放绑定用户接口 业务逻辑:支持未绑定用户的硬件绑定用户 限流:根据租户实现用户级别的限流,限制为100次每秒
URL
POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/device/deviceBindUser
请求参数
Body
|
参数名称
|
类型
|
必填
|
描述
|
|
deviceBindUserReqDto
|
DeviceBindUserReqDto
|
是
|
绑定用户请求入参 |
|
bindType
|
string
|
否
|
操作类型: 0解绑;1绑定 |
|
bindUsers
|
<string> array
|
是
|
用户账号 |
|
deviceId
|
string
|
否
|
设备信息device_info表主键id |
|
deviceModel
|
string
|
否
|
设备型号 |
|
deviceUid
|
string
|
否
|
设备Uid |
|
mopUserId
|
string
|
否
|
mop用户ID |
|
sourceType
|
integer(int32)
|
否
|
策略来源 1 云管 2 BOP 3 CHBN 4企业门户 5省二级门户 6 openapi |
请求示例
POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/device/deviceBindUser
{
"bindUsers":[
"aaabb",
"test"
],
"deviceId":"1826101895883374593",
"deviceModel":"W503D-L22",
"deviceUid":"SN18928970"
}
返回参数
返回码:200
OK
|
参数名称
|
类型
|
描述
|
|
body
|
string
|
请求成功时返回的数据 |
|
errorCode
|
string
|
统一错误码 |
|
errorMessage
|
string
|
错误码提示信息 |
|
requestId
|
string
|
每个请求的序列号 |
|
state
|
enum(OK,ERROR,EXCEPTION,FORBIDDEN,REMAINING,TIMEOUT)
|
返回状态码;返回正常:OK,返回错误:ERROR,返回异常:EXCEPTION,需要告警实现的:ALARM,禁止访问:FORBIDDEN |
返回示例
返回码:200
OK
{
"state":"OK",
"body":null,
"errorCode":"200",
"errorMessage":"",
"requestId":"02c5e86fb8854923abee9c1daa6fd94c"
}