获取成员列表
更新时间:2021-09-06
接口描述
本接口用于查询 AIPAGE 站点管理成员列表。
注意事项
- authorization header 签名时必须签名 host 头部,同时推荐签名所有 x-bce 开头 header。
请求结构
GET /v{version}/user/list?siteId={siteId}&clientToken={clientToken} HTTP/1.1
Host: aipage.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
siteId | String | 是 | URL参数 | 站点 ID |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
result | Object | 返回查询的站点成员列表 |
success | Boolean | 是否操作成功 |
请求示例
GET https://aipage.baidubce.com/v1/user/list?siteId=3A8d84403d-a94b-40ce-9d6a-f6225dd26676
Host: aipage.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
Content-Type: application/json;charset=UTF-8
响应示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2015 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS
{
"success": true,
"result": [
{
"isBanned": false,
"isAgent": false,
"phone": "",
"oauthData": {},
"id": "babd875e-6fae-49b7-80c5-292e8a09c30b",
"type": 0,
"showName": "zt0807****",
"realName": "zt0807****",
"qq": "",
"status": 0,
"oauthType": 0,
"portrait": "",
"createdAt": "2017-12-22T03:18:03.000Z",
"updatedAt": "2020-12-02T03:18:17.000Z",
"deletedAt": "1970-01-01T00:00:00.000Z",
"ap_user_site": {
"createdAt": "2020-05-25T04:31:04.000Z",
"updatedAt": "2020-05-25T04:31:04.000Z",
"siteId": "99f4f0ed-79f8-4416-9b43-650fdc364af4",
"userId": "babd875e-6fae-49bb-80c5-292e8109c30b"
},
"roles": [
{
"aclNames": "站点创建者,所有权限",
"name": "系统管理员",
"id": "23f5a31c-5d56-4bbb-a35e-46c91d73c5ed",
"acl": "admin",
"createdAt": "2020-05-25T04:31:04.000Z",
"updatedAt": "2020-05-25T04:31:04.000Z",
"deletedAt": "1970-01-01T00:00:00.000Z",
"siteId": "99f4f0ed-79f8-4426-9b43-650fdc364af4",
"ap_user_role": {
"aclNames": "",
"createdAt": "2020-05-25T04:31:04.000Z",
"updatedAt": "2020-05-25T04:31:04.000Z",
"roleId": "23f5a31c-5d56-4bbb-a35e-46c91d73c5ed",
"userId": "babd875e-6fae-49b7-80c5-292e8109c30b"
},
"label": "系统管理员",
"value": "23f5a31c-5d56-4bbb-a35e-46c91d73c5ed"
}
],
"aclName": "系统管理员",
"isAdmin": true
}
]
}