首页 云效2020 API手册(新版) API目录 代码管理 成员 ListRepositoryMemberWithInherited - 查询代码库成员列表

ListRepositoryMemberWithInherited - 查询代码库成员列表

查询代码库成员列表,无分页。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /repository/{repositoryId}/members/list

请求参数

名称类型必填描述示例值
accessTokenstring

个人访问令牌。 使用阿里云AK+SK或使用STS临时授权方式不需要传该字段。

f0b1e61db5961df5975a93f9129d2513
repositoryIdlong

代码库ID

2464454
organizationIdstring

企业标识,也称企业id,字符串形式,可在云效访问链接中获取,如https://devops.aliyun.com/organization/【OrganizationId】

60de7a6852743a5162b5f957

返回参数

名称类型描述示例值
object
errorMessagestring

错误信息

""
requestIdstring

请求ID

AB270BBA-EFB1-5773-B3DC-07CD036F7352
errorCodestring

错误码

SYSTEM_UNKNOWN_ERROR
successboolean

调用是否成功

true
resultobject []

返回参数

externUserIdstring

云效用户Id

5f969843cd2214ba0e24327d
emailstring

邮箱

yunxiao-codeup@aliyun.com
avatarUrlstring

头像地址

https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100
statestring

状态 可选值:active / blocked

active
accessLevelinteger

权限类型 20-浏览者 30-开发者 40-管理员

30
namestring

名称

codeup
idlong

Codeup用户ID

19285
usernamestring

用户昵称

yunxiao
inheritedobject

所属代码组信息

typestring

类型 可选值:Group / OrgNamespace

Group
nameWithNamespacestring

代码库完整名称(含完整组名称)

test / codeup(斜杠两边有空格)
pathWithNamespacestring

代码库完整路径(含完整组路径)

test/codeup
visibilityLevelstring

可见性 0-私有 10-企业内公开

0
pathstring

路径

codeup
namestring

名称

codeup
idlong

id

2022

示例

正常返回示例

JSON格式

{
  "errorMessage": "\"\"",
  "requestId": "AB270BBA-EFB1-5773-B3DC-07CD036F7352",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "success": true,
  "result": [
    {
      "externUserId": "5f969843cd2214ba0e24327d",
      "email": "yunxiao-codeup@aliyun.com",
      "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
      "state": "active",
      "accessLevel": 30,
      "name": "codeup",
      "id": 19285,
      "username": "yunxiao",
      "inherited": {
        "type": "Group",
        "nameWithNamespace": "test / codeup(斜杠两边有空格)",
        "pathWithNamespace": "test/codeup \n",
        "visibilityLevel": "0",
        "path": "codeup",
        "name": "codeup",
        "id": 2022
      }
    }
  ]
}

错误码

HTTP status code错误码错误信息
500SystemError.UnKnownErrorAn error occurred while processing your request.

访问错误中心查看更多错误码。

阿里云首页 云效 相关技术圈