代码托管 CODEARTS REPO-查询项目下的所有仓库:响应参数

时间:2024-01-17 09:08:08

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

error

Error object

响应错误

result

RepoListInfoV2 object

响应结果

status

String

响应状态

表5 Error

参数

参数类型

描述

code

String

错误码

message

String

错误信息

表6 RepoListInfoV2

参数

参数类型

描述

repositories

Array of RepoInfoV2 objects

仓库列表

total

Integer

仓库总数

表7 RepoInfoV2

参数

参数类型

描述

created_at

String

创建时间

creator_name

String

创建者的用户名,在用户是租户的情况下,用户名和租户名相等

domain_name

String

创建者的租户名

group_name

String

仓库组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git 组名:Demo00228 )

https_url

String

使用 https 克隆仓库时所使用的 url

iam_user_uuid

String

用户的 iam user uuid

is_owner

Integer

当前用户是否是仓库的创建者,1:是,0:不是

lfs_size

String

仓库 LFS 容量,单位为M,大于 1024M 则单位为 G

project_is_deleted

String

项目是否被删除

project_uuid

String

项目ID,获取方式请参见获取项目ID

repository_id

Integer

仓库主键id

repository_name

String

仓库名

repository_size

String

仓库总容量 = 仓库 LFS 容量 + git 库容量,单位为M,大于 1024M 则单位为 G

repository_uuid

String

仓库uuid(由CreateRepository接口返回)

ssh_url

String

使用 ssh 方式克隆仓库时所使用的 url

star

Boolean

当前用户是否收藏该仓库

status

Integer

仓库状态, 0:仓库正常创建成功 1:仓库创建中 2:创建失败 3:仓库冻结 4:仓库已经关闭

updated_at

String

更新时间

userRole

Integer

用户在仓库中的权限:20:只读成员 30:普通成员 40:管理员

visibility_level

Integer

是否可见:0私有仓库,20公有仓库

web_url

String

web url 路径,访问它将跳转至仓库详情页

support.huaweicloud.com/api-codeartsrepo/ShowAllRepositoryByTwoProjectId.html