listAiDetectRepositoryByPage(分页查询检测目标库)
listAiDetectRepositoryByPage:分页查询检测目标库
要点:https://openapi.lechange.cn/openapi/listAiDetectRepositoryByPage · 见 错误码
分页查询已创建的检测目标库信息
请求参数
| 参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
|---|---|---|---|---|---|
| token | String | 是 | 管理员 accessToken | ||
| page | Integer | 是 | ≥1 | 查询第几页,从 1 开始 | |
| pageSize | Integer | 是 | 每页查询数量,最大20 | ||
| repositoryName | String | 否 | 检测库名称,支持模糊查询 |
请求示例
{
"system": {
"ver": "1.0",
"appId": "lcdxxxxxxxxx",
"sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
"time": 1599013514,
"nonce": "fbf19fc6-17a1-4f73-a967-75eadbc805a2"
},
"id": "98a7a257-c4e4-4db3-a2d3-d97a3836b87c",
"params": {
"token": "xxxxxxxxxxxxxxxxxxxxxx",
"page": 1,
"pageSize": 20,
"repositoryName": "门店人脸库"
}
}
响应字段
| 字段名 | 字段类型 | 字段说明 | |
|---|---|---|---|
| total | Integer | 目标库总数 | |
| repositoryList | repositoryId | String | 检测目标库ID |
| repositoryName | String | 检测目标库名称 | |
| repositoryType | String | 目标库存储数据类型。face:代表人脸库;human:代表人形工装库 | |
响应示例
{
"result": {
"msg": "操作成功。",
"code": "0",
"data": {
"total": 16,
"repositoryList": [
{
"repositoryId": "xxxxxxxxxxxxxx",
"repositoryName": "目标库1",
"repositoryType": "face"
},
{
"repositoryId": "xxxxxxxxxxxxxx",
"repositoryName": "目标库2",
"repositoryType": "human"
}
]
}
},
"id": "WQNuHrTCXORxxxxxxxxxxxxxxx"
}
错误码
本接口可能返回下列码;完整分组见 错误码。
网关与鉴权(SN / TK / OP)
| 错误码 | 错误码说明 | 下一步 |
|---|---|---|
SN1001 | 签名异常 | 按 签名 核对 sign |
TK1002 | token 无效或过期 | 重新获取 token |
OP1002 | 缺少必填参数 | 补必填字段 |
OP1003 | 参数不合法 | 按本页参数表核对 |
OP1039 | 分钟级限流 | 等到下一分钟再试 |
OP1040 | 调用超限 | 降低频率 |
DV1007 | 设备离线或超时 | 等设备上线 |
子账号(SUB)
| 错误码 | 错误码说明 | 下一步 |
|---|---|---|
SUB1001 | 子账号无指定权限 | 在 子账号策略 中补权限 |
SUB1002 | 子账号无任何设备权限 | 授权设备或调整策略 |
SUB1005 | 子账号 token 过期 | 重新 获取子账号 token |
SUB1006 | 子账号与设备无授权关系 | 核对 Resource 与设备序列号 |
SUB1008 | 子账号未绑定当前应用 | 先创建并绑定子账号 |
SUB1007 | 创建子账号失败 | 核对参数后重试 |
SUB1009 | 子账号创建失败,账号格式错误 | account 须为手机号或邮箱 |
SUB1010 | 子账号创建失败,账号已存在 | 勿重复绑定同一子账号到应用 |
更多见 错误码 · SUB。
说明
仅支持管理员 accessToken;子账号不可调用本接口。