ListRepositories - 查询代码库列表

更新时间: 2023-09-25 19:14:30

查询代码库列表,支持分页、排序功能,支持关键字搜索,支持归档条件过滤。

调试

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

调试

授权信息

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

请求语法

GET /repository/list

请求参数

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

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

60de7a6852743a5162b5f957
accessTokenstring

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

f0b1e61db5961df5975a93f9129d2513
pagelong

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

2
perPagelong

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

20
orderBystring

排序字段 可选值:created_at,id,name,path,updated_at,last_activity_at”

created_at
sortstring

排序方式 默认值为desc desc - 降序 asc - 升序

desc
searchstring

搜索关键字

Demo
archivedboolean

是否列出归档项目 可选值:true / false

false

返回参数

名称类型描述示例值
object
requestIdstring

请求ID

4D6AF7CC-B43B-5454-86AB-023D25E44868
errorMessagestring

错误信息

""
totallong

总数量

149
successboolean

调用是否成功

true
errorCodeinteger

错误码

SYSTEM_UNKNOWN_ERROR
resultobject []

返回结果

lastActivityAtstring

最后活跃时间

2022-01-14T21:08:26+08:00
namespaceIdlong

上级路径的id

745
avatarUrlstring

头像地址

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

被收藏的数量

0
archiveboolean

代码库是否归档

false
createdAtstring

创建时间

2022-01-14T21:08:26+08:00
starboolean

是否被收藏

false
importStatusstring

代码库导入状态 可选值:started / finished / failed / stopping / none

started
webUrlstring

页面访问时的URL

""
descriptionstring

代码库描述

测试Codeup托管
nameWithNamespacestring

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

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

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

codeup-test-org/test-codeup
pathstring

代码库路径

test-codeup
visibilityLevelstring

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

0
accessLevelinteger

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

40
updatedAtstring

更新时间

2022-01-14T21:08:26+08:00
namestring

代码库名称

codeupTest
Idlong

代码库Id

1

示例

正常返回示例

JSON格式

{
  "requestId": "4D6AF7CC-B43B-5454-86AB-023D25E44868",
  "errorMessage": "\"\"",
  "total": 149,
  "success": true,
  "errorCode": 0,
  "result": [
    {
      "lastActivityAt": "2022-01-14T21:08:26+08:00",
      "namespaceId": 745,
      "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
      "starCount": 0,
      "archive": false,
      "createdAt": "2022-01-14T21:08:26+08:00",
      "star": false,
      "importStatus": "started",
      "webUrl": "\"\"",
      "description": "测试Codeup托管",
      "nameWithNamespace": "codeup-test-org / test-codeup(斜杠两侧有空格)",
      "pathWithNamespace": "codeup-test-org/test-codeup",
      "path": "test-codeup",
      "visibilityLevel": "0",
      "accessLevel": 40,
      "updatedAt": "2022-01-14T21:08:26+08:00",
      "name": "codeupTest",
      "Id": 1
    }
  ]
}

错误码

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

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

变更历史

变更时间变更内容概要操作
暂无变更历史
阿里云首页 云效2020 相关技术圈