Help Center/ CodeArts Repo/ API Reference/ APIs/ Repository/ Obtaining Image Files of a Specific Branch in a Repository
Updated on 2025-03-28 GMT+08:00

Obtaining Image Files of a Specific Branch in a Repository

Function

This API is used to obtain image files of a specific branch in a repository.

URI

GET /v1/repositories/{repository_uuid}/branch/{branch_name}/image

Table 1 Path parameters

Parameter

Mandatory

Type

Description

repository_uuid

Yes

String

Repository ID.

branch_name

Yes

String

Branch name.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

path

Yes

String

Image path.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

No

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:

Mandatory

Range:

1–100,000 characters.

Default value:

None

Response Parameters

None.

Example Requests

GET https://{endpoint}/v1/repositories/{repository_uuid}/branch/{branch_name}/image

Example Responses

None.

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.