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 |
Explanation Project ID. For details, see Obtaining a Project ID. Constraints None. Range 32 digits and letters. Default value None. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
page_no |
No |
Integer |
Explanation Page number. Constraints None. Range None. Default value 1 |
|
page_size |
No |
Integer |
Explanation Number of data records on each page. Constraints None. Range 1–100 Default value 20 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Explanation User token. It can be obtained by calling the corresponding IAM API. The value of X-Subject-Token in the response header is the user token. Constraints None. Range The length range of the character string is [1,100000]. Default value None. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
Error object |
Explanation Response error code. Range None. |
|
result |
TemplateListInfo object |
Explanation Response result. Range None. |
|
status |
String |
Explanation Response status of the API. Range
|
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Explanation Error code. Range Max. 100 characters in the error code format. |
|
message |
String |
Explanation Error message. Range None. |
|
Parameter |
Type |
Description |
|---|---|---|
|
repos |
Array of DevstarRepoInfo objects |
Explanation Repository list. Range None. |
|
total_count |
Integer |
Explanation Total number of repositories. Range None. |
|
Parameter |
Type |
Description |
|---|---|---|
|
uuid |
String |
Explanation Repository UUID. Range None. |
|
repo_id |
String |
Explanation Repository ID. Range None. |
|
repo_name |
String |
Explanation Repository name. Range None. |
|
ssh_url |
String |
Explanation Repository SSH address. Range None. |
|
code_url |
String |
Explanation Repository HTTPS address. Range None. |
|
detail_url |
String |
Explanation Repository preview address. Range None. |
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.example.com:CHEN_TEST00001/DDDDDDDD.git",
"code_url" : "https://repo.example.com/CHEN_TEST00001/DDDDDDDD.git",
"detail_url" : "https://repo.example.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