Help Center/ CodeArts Repo/ API Reference/ Historical APIs/ Create branches/ Obtaining the List of Repositories that Can Be Set to Public in a Project (Deprecated)
Updated on 2026-01-27 GMT+08:00

Obtaining the List of Repositories that Can Be Set to Public in a Project (Deprecated)

Function

Obtain the list of repositories that can be set to the public state under a project.

URI

GET /v1/projects/{project_uuid}/repositories/template_status

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_uuid

Yes

String

Project ID.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

page_no

No

Integer

Page number

page_size

No

Integer

Number of data records on each page

Request Parameters

Table 3 Request header parameter

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

Table 4 Response body parameters

Parameter

Type

Description

error

Error object

Response error

result

TemplateListInfo object

Response result

status

String

Explanation:

Response status of the API.

Range:

  • success: The API call is successful.
  • failed: The API call failed.
Table 5 Error

Parameter

Type

Description

code

String

Error codes

message

String

Error message

Table 6 TemplateListInfo

Parameter

Type

Description

repos

Array of DevstarRepoInfo objects

Repository List

total_count

Integer

Total number of repositories

Table 7 DevstarRepoInfo

Parameter

Type

Description

uuid

String

Repository UUID

repo_id

String

Repository ID

repo_name

String

Repository name

ssh_url

String

Repository SSH address

code_url

String

Repository HTTPS address

detail_url

String

Repository preview address

Request Example

GET https://{endpoint}/v1/projects/{project_uuid}/repositories/template_status

Response Example

Status code: 200

OK

{
  "result" : {
    "repos" : [ {
      "uuid" : "36f532939c4b4e2191c10f5353ccf34c",
      "repo_id" : 487773,
      "repo_name" : "DDDDDDDD",
      "ssh_url" : "git@codehub.alpha.devcloud.intest.com:CHEN_TEST00001/DDDDDDDD.git",
      "code_url" : "https://codehub.alpha.devcloud.intest.com/CHEN_TEST00001/DDDDDDDD.git",
      "detail_url" : "https://alpha.devcloud.intest.com/codehub/487773/home"
    } ],
    "total_count" : 100
  },
  "status" : "success"
}

Status Codes

Status Codes

Description

200

OK

Error Codes

See error codes.