根据代码组ID查询其组下的代码库列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /repository/groups/{groupId}/projects
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| organizationId | string | 是 | 企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 | 60ee8a814690c27532d412f8 | 
| accessToken | string | 否 | 个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段 | f0b1e61db5961df5975a93f9129d2513 | 
| groupId | string | 是 | 代码组主键 ID | 35117 | 
| page | long | 否 | 页码,默认值为 1,从第 1 页开始 | 1 | 
| pageSize | long | 否 | 每页大小,默认值为 20,取值范围【1,100】 | 10 | 
| search | string | 否 | 搜索关键字(匹配代码组名称) | Demo | 
返回参数
示例
正常返回示例
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
    }
  ]
}错误码
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|
暂无变更历史
