Updated on 2023-05-06 GMT+08:00

Download Repository

Function

Download the repository in the specified format.

URI

GET /v2/repositories/{repository_uuid}/archive

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

repository_uuid

Yes

String

UUID of the repository.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

sha

Yes

String

Branch Name

format

Yes

String

Format of the Downloaded Package

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies a user token.

It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

None

Example Requests

GET https://{endpoint}/v2/repositories/{repository_uuid}/archive

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.