文档

ListGroupRepositories - 查询代码组下的库列表

根据代码组ID查询其组下的代码库列表。

调试

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

授权信息

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

请求语法

GET /repository/groups/{groupId}/projects

请求参数

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

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

60ee8a814690c27532d412f8
accessTokenstring

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

f0b1e61db5961df5975a93f9129d2513
groupIdstring

代码组主键 ID

35117
pagelong

页码,默认值为 1,从第 1 页开始

1
pageSizelong

每页大小,默认值为 20,取值范围【1,100】

10
searchstring

搜索关键字(匹配代码组名称)

Demo

返回参数

名称类型描述示例值
object

Schema of Response

requestIdstring

请求 ID

9293CBDA-B5BC-5AD6-A8F4-C7873AC7A3DF
errorMessagestring

错误信息

""
errorCodestring

错误码

SYSTEM_UNKNOWN_ERROR
successboolean

调用是否成功

true
totallong

总记录数

2
resultobject []

返回结果列表

idlong

代码库 ID

89616
namestring

代码库名称

test-group-repo
pathstring

代码库路径

test-group-repo
nameWithNamespacestring

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

codeup-test-org / test-group-repo(斜杠两侧有空格)
pathWithNamespacestring

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

codeup-test-org/test-group-repo
lastActivityAtstring

最后活跃时间

2022-03-18 14:24:54
createdAtstring

创建时间

2022-03-18 14:24:54
updatedAtstring

更新时间

2022-03-18 14:24:54
visibilityLevelinteger

可见性 0:私有,仅代码库成员可见 10:企业内公开,企业成员可见

0
starCountinteger

被收藏的数量

0
webUrlstring

代码库的页面访问地址

""
sshUrlstring

代码库的 SSH 克隆地址

git@xxx:xxx/test/test.git
httpUrlstring

代码库的 HTTP 克隆地址

https://xxx/test/test
descriptionstring

代码库描述

描述详情内容
privateFlagboolean

私有库标识

  • true:私有
  • false:企业内公开
true
creatorIdlong

创建者 ID

19238
issuesEnabledboolean

是否开启 issues 可选值:true / false

true
mergeRequestsEnabledboolean

是否开启合并请求 可选值:true / false

true
wikiEnabledboolean

是否开启 wiki 可选值:true / false

true
namespaceIdboolean

库所属组或者企业空间 ID

100003
snippetsEnabledboolean

是否开启 snippets 可选值:true / false

false
importUrlstring

待导入代码库地址(HTTP 协议),例如 GitHub 平台上的代码库地址

http://xxx/x
archivedboolean

归档标识

false
commitCountlong

代码库的提交数量

10
isStaredboolean

是否被标星收藏

true

示例

正常返回示例

JSON格式

{
  "requestId": "9293CBDA-B5BC-5AD6-A8F4-C7873AC7A3DF",
  "errorMessage": "\"\"",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "success": true,
  "total": 2,
  "result": [
    {
      "id": 89616,
      "name": "test-group-repo",
      "path": "test-group-repo",
      "nameWithNamespace": "codeup-test-org / test-group-repo(斜杠两侧有空格)",
      "pathWithNamespace": "codeup-test-org/test-group-repo",
      "lastActivityAt": "2022-03-18 14:24:54",
      "createdAt": "2022-03-18 14:24:54",
      "updatedAt": "2022-03-18 14:24:54",
      "visibilityLevel": 0,
      "starCount": 0,
      "webUrl": "\"\"",
      "sshUrl": "git@xxx:xxx/test/test.git",
      "httpUrl": "https://xxx/test/test",
      "description": "描述详情内容",
      "privateFlag": true,
      "creatorId": 19238,
      "issuesEnabled": true,
      "mergeRequestsEnabled": true,
      "wikiEnabled": true,
      "namespaceId": true,
      "snippetsEnabled": false,
      "importUrl": "http://xxx/x",
      "archived": false,
      "commitCount": 10,
      "isStared": true
    }
  ]
}

错误码

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

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈