查询成员列表

最近更新时间:2026-03-19 18:16:28

天翼云智能视图服务API

1.查询成员列表

接口功能介绍

本接口用于人脸库查询成员列表。

接口约束

URI

GET /ai/faceGroups/{FaceGroupId}/persons

路径参数

参数是否必填参数类型说明示例下级对象
FaceGroupIdInteger人脸库ID。73

Query参数

参数是否必填参数类型说明示例下级对象
NameString根据成员姓名查询。小明
SortByString选择按一个字段排序,默认为CreatedTime。取值:CreatedTime:人脸库创建时间;UpdatedTime:人脸库更新时间。CreatedTime
SortDirectionString排序方式,默认为Asc。取值:Asc:升序;Desc:降序。Asc
PageNumInteger第几个分页,默认为1。1
PageSizeInteger分页大小,默认为20。取值范围为1~1000。20

请求参数

请求头header参数

参数是否必填参数类型说明示例下级对象
AuthorizationString认证信息。CT-HMAC-SHA256 Credential=FQ01GA2RR9IJFM1PWIPR/2023-07-18/vss, SignedHeaders=content-type;host;timestamp, Signature=c6e72dffcfb2d25d276e119781e1deb6656d966702191b2bd862d1691e39394f
Content-TypeString互联网媒体类型。application/json;charset=utf-8
HostString主机。vssapi.ctyun.cn
VersionString版本。2021-11-25
TimestampString时间戳。1689643309

请求体body参数

响应参数

参数参数类型说明示例下级对象
statusCodeInteger响应状态码。200
errorString错误码,执行成功时,不返回该字段。VSS_0001
messageString响应信息。请求成功
requestIdString请求ID。362d4e78556b47129182d0881fade86b
returnObjObject响应数据,执行失败时,不返回该字段。returnObj

表 returnObj

参数参数类型说明示例下级对象
PersonsArray of Objects成员列表。Person
PageNumInteger第几个分页。1
PageSizeInteger分页大小。10
TotalPageInteger分页总数。1
TotalNumInteger成员总数。10
RequestIdString请求ID。ba41650f6da84a20bc386c87285cebe6

表 Person

参数参数类型说明示例下级对象
PersonIdInteger成员ID。10174
NameString姓名。小明
NumberString编号。1
DescriptionString描述。员工
PicUrlString原图像下载链接。http://example.ctyun.cn/example
FaceCropUrlString头像截图下载链接。http://example.ctyun.cn/example
CreatedTimeString成员创建时间。2024-12-18 10:37:51
UpdatedTimeString成员更新时间。2024-12-18 10:37:51

请求示例

请求url

GET '/ai/faceGroups/73/persons?PageNum=1&PageSize=1'

请求头header

{
    "Authorization": "CT-HMAC-SHA256 Credential=AVVG8XLD7V1IRZNLGXWM/2023-04-03/vss, SignedHeaders=content-type;host;timestamp, Signature=4674301fa14990d864988f941cd42851806d63f7585b00c48cde22c9ad0be2de",
    "Content-Type": "application/json;charset=utf-8",
    "Host": "vssapi.ctyun.cn",
    "Version": "2021-11-25",
    "Timestamp": "1680515523"
}

请求体body

响应示例

{
  "statusCode": 200,
  "message": "请求成功",
  "requestId": "ba41650f6da84a20bc386c87285cebe6",
  "returnObj": {
    "PageNum": 1,
    "PageSize": 1,
    "TotalPage": 1,
    "TotalNum": 1,
    "Persons": [
      {
        "PersonId": 10174,
        "Name": "小明",
        "Number": "1",
        "Description": "员工",
        "PicUrl": "http://example.ctyun.cn/example",
        "FaceCropUrl": "http://example.ctyun.cn/example",
        "CreatedTime": "2024-12-18 10:37:51",
        "UpdatedTime": "2024-12-18 10:37:51"
      }
    ],
    "RequestId": "ba41650f6da84a20bc386c87285cebe6"
  }
}

状态码

请参考状态码说明。

错误码

请参考错误码说明。