查询代码组列表,支持分页、按创建时间和更新时间排序以及关键字搜索。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /repository/groups/get/all
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| organizationId | string | 是 | 企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 | 60de7a6852743a5162b5f957 | 
| accessToken | string | 否 | 个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段 | f0b1e61db5961df5975a93f9129d2513 | 
| parentId | long | 是 | 父路径的 namespaceId 
 | 26842 | 
| page | long | 否 | 页码 默认值为 1,从第 1 页开始 | 1 | 
| pageSize | long | 否 | 每页大小 默认值为 20,取值范围【1,100】 | 10 | 
| search | string | 否 | 搜索关键字 | Demo | 
| orderBy | string | 否 | 排序字段,仅有更新时间和创建时间的排序,默认为按照更新时间排序 
 | updated_at | 
| sort | string | 否 | 排序方式,默认为 desc 
 | desc | 
| includePersonal | boolean | 否 | 是否包含个人的私有组 | false | 
返回参数
示例
正常返回示例
JSON格式
{
  "requestId": "F7B85D1B-D1C2-140F-A039-341859F130B9",
  "errorMessage": "”“",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "total": 100,
  "result": [
    {
      "id": 19285,
      "path": "test-codeup",
      "name": "test-codeup",
      "nameWithNamespace": "60de7a6852743a5162b5f957 / test-codeup(斜杠两侧有空格)",
      "pathWithNamespace": "60de7a6852743a5162b5f957/test-codeup",
      "visibilityLevel": 0,
      "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
      "webUrl": "\"\"",
      "type": "Group",
      "description": "描述信息的具体内容",
      "parentId": 26842,
      "ownerId": 19230,
      "accessLevel": 40,
      "projectCount": 10,
      "groupCount": 10,
      "createdAt": "2022-03-18 14:24:54",
      "updatedAt": "2022-03-18 14:24:54"
    }
  ]
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 403 | Forbidden.AccessDenied | The user is not authorized to perform the operation. | 用户无权限执行相关操作 | 
| 403 | Forbidden.UserNotInCurrentOrganization | The user is not in the organization and is not authorized to perform the operation. | 当前用户不在该企业中,无权进行操作。 | 
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|
暂无变更历史
