Register new registry
    • PDF

    Register new registry

    • PDF

    Article summary

    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.

    MethodURI
    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.

    FieldTypeRequiredDescription
    registryStringRequiredName of the registry to create

    Request syntax

    The request syntax is as follows.

    {
      "bucket": "string"
    }
    

    Request body

    The following describes the request body.

    FieldTypeRequiredDescription
    bucketStringRequiredName of the bucket in Object Storage that will be integrated with the new registry
    • Can't be duplicated

    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.

    FieldTypeRequiredDescription
    returnCodeString-Return code
    returnMessageString-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 codeCodeMessageDescription
    201-OKRequest succeeded
    409-ConflictA crash occurred while processing the request

    Response example

    The following is a sample response.

    {
        "returnCode": "201",
        "returnMessage": "Registry Creation is successful"
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.