文档

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 []

返回参数

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 / test-group(斜杠两边有空格)
pathWithNamespacestring

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

test/test-group
visibilityLevelstring

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

0
pathstring

代码组路径

test-group
namestring

代码组名称

test-group
idlong

代码组 ID

2022

示例

正常返回示例

JSON格式

{
  "errorMessage": "\"\"",
  "requestId": "AB270BBA-EFB1-5773-B3DC-07CD036F7352",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "success": true,
  "result": [
    {
      "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 / test-group(斜杠两边有空格)",
        "pathWithNamespace": "test/test-group \n",
        "visibilityLevel": "0",
        "path": "test-group",
        "name": "test-group",
        "id": 2022
      }
    }
  ]
}

错误码

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

变更历史

变更时间变更内容概要操作
2023-07-24OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:500
出参OpenAPI 返回结构发生变更
  • 本页导读 (0)
文档反馈