Updated on 2023-12-28 GMT+08:00

Creating a Docker Repository

Function

Create a Docker repository.

URI

POST /cloudartifact/v5/repositories

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

format

Yes

String

Repository format.

display_name

Yes

String

Repository display name.

description

No

String

Repository description.

type

Yes

String

Repository type.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Result status.

trace_id

String

Request ID.

result

String

Returned result of the request. The return value varies according to the API.

Example Requests

Example request for creating a Docker repository.

/v5/repositories

{
  "format" : "docker",
  "display_name" : "string",
  "description" : "string",
  "type" : "Hosted"
}

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701175561381-82",
  "result" : "success"
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.