- Print
- PDF
Register new registry
- Print
- PDF
Available in Classic and VPC
Register a new registry in Container Registry that is integrated with a bucket in Object Storage.
Requests
The following describes the request format for the endpoint. The request format is as follows.
Method | URI |
---|---|
POST | /repositories/{registry} |
Request headers
For headers common to all Container Registry APIs, see Container Registry common headers.
Request path parameters
The following describes the request path parameters.
Field | Type | Required | Description |
---|---|---|---|
registry | String | Required | Name of the registry to create |
Request syntax
The request syntax is as follows.
{
"bucket": "string"
}
Request body
The following describes the request body.
Field | Type | Required | Description |
---|---|---|---|
bucket | String | Required | Name of the bucket in Object Storage that will be integrated with the new registry
|
Request example
The following is a sample request.
curl -X POST "https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}"
-H "x-ncp-apigw-timestamp: {Timestamp}"
-H "x-ncp-iam-access-key: {Sub Account Access Key}"
-H "x-ncp-apigw-signature-v2: {API Gateway Signature}"
-d "
{
"bucket": "string" //Enter the name of the bucket in Object Storage that will be integrated with the new registry
}
"
Responses
The following describes the response format.
Response syntax
The response syntax is as follows.
{
"returnCode": "string",
"returnMessage": "string"
}
Response body
The following describes the response body.
Field | Type | Required | Description |
---|---|---|---|
returnCode | String | - | Return code |
returnMessage | String | - | Return message |
Response status codes
The following describes response status codes. For response status codes common to all Container Registry APIs, see Ncloud API response status codes.
HTTP status code | Code | Message | Description |
---|---|---|---|
201 | - | OK | Request succeeded |
409 | - | Conflict | A crash occurred while processing the request |
Response example
The following is a sample response.
{
"returnCode": "201",
"returnMessage": "Registry Creation is successful"
}