查询项目下的某个仓库(废弃)-九游平台
功能介绍
不建议再使用,建议使用/{repository_uuid}/status
调试
您可以在中调试该接口,支持自动认证鉴权。api explorer可以自动生成sdk代码示例,并提供sdk代码示例调试功能。
uri
get /v1/repositories/{repository_uuid}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
repository_uuid |
是 |
string |
仓库的uuid,用来指定需要查看的仓库 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
x-auth-token |
是 |
string |
用户token。 通过调用iam服务获取用户token接口获取(响应消息头中x-subject-token的值)。 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
code |
string |
错误码 |
message |
string |
错误信息 |
参数 |
参数类型 |
描述 |
---|---|---|
createat |
string |
创建时间 |
groupname |
string |
仓库组名(克隆地址中域名后面项目名前的一段 示例:git@codehub.alpha.devcloud.intest.com:demo00228/testword.git 组名:demo00228) |
httpurl |
string |
https url |
id |
string |
仓库uuid(由createrepository接口返回) 最小长度:32 最大长度:32 |
name |
string |
仓库名 最小长度:2 最大长度:128 |
projectid |
string |
项目的uuid 最小长度:32 最大长度:32 |
projectisdelete |
string |
项目是否被删除 |
repoid |
string |
仓库主键id 最小长度:1 最大长度:40 |
sshurl |
string |
ssh url |
visibilitylevel |
integer |
是否可见:0私有仓库,20公有仓库 |
weburl |
string |
web url 访问路径 |
请求示例
get https://{endpoint}/v1/repositories/{repository_uuid}
响应示例
状态码: 200
ok
{ "result" : { "id" : "dadb20863d7d4ef8bc0b4740db7358be", "repoid" : "472210", "name" : "testword", "sshurl" : "git@codehub.alpha.devcloud.intest.com:demo00228/testword.git", "httpurl" : "https://codehub.alpha.devcloud.intest.com/demo00228/testword.git", "groupname" : "demo00228", "weburl" : "https://alpha.devcloud.intest.com/codehub/472210/home", "visibilitylevel" : 0, "createat" : "2019-10-21 17:49:33", "projectid" : "4838955a48e2492bbe44b31bc4c272f6", "projectisdelete" : "false" }, "status" : "success" }
状态码
状态码 |
描述 |
---|---|
200 |
ok |
错误码
请参见错误码。
相关文档
意见反馈
文档内容是否对您有帮助?
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨