Obtaining the List of Repositories that Can be Set to Public under a Project
Function
This API is used to obtain the list of repositories that can be set to public under a project.
URI
GET /v2/projects/{project_uuid}/repositories/template-status
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_uuid |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
page_no |
No |
Integer |
Page number. |
page_size |
No |
Integer |
Number of data records on each page. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Response error. |
result |
TemplateListInfo object |
Response result. |
status |
String |
Response status. |
Parameter |
Type |
Description |
---|---|---|
repos |
Array of DevstarRepoInfo objects |
Repository list. |
total_count |
Integer |
Total number of repositories. |
Example Requests
GET https://{endpoint}/v2/projects/{project_uuid}/repositories/template-status
Example Responses
Status code: 200
OK
{ "result" : { "repos" : [ { "uuid" : "36f532939c4b4e2191c10f5353ccf34c", "repo_id" : 487773, "repo_name" : "DDDDDDDD", "ssh_url" : "git@repo.alpha.devcloud.inhuawei.com:CHEN_TEST00001/DDDDDDDD.git", "code_url" : "https://repo.alpha.devcloud.inhuawei.com/CHEN_TEST00001/DDDDDDDD.git", "detail_url" : "https://alpha.devcloud.inhuawei.com/repo/487773/home" } ], "total_count" : 100 }, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot