PutBucket
    • PDF

    PutBucket

    • PDF

    Article Summary

    Overview

    Creates a bucket with the name which is specified at the end of the request, by making a PUT request to the endpoint. The bucket name must be unique and up to 1000 buckets can be created.
    The bucket name must comply with the DNS rules; it must be between 3 and 63 characters in length, and must contain lowercase letters, numbers and dash.
    The bucket name must start and end with an alphabetic character or a number. A period (.) is allowed, but a name in the form of an IP address is not allowed.
    No parameters or payload is used for the operation.

    Request

    Syntax

    PUT https://{endpoint}/{bucket-name} # path style
    PUT https://{bucket-name}.{endpoint} # virtual host style
    

    Examples

    Request example

    The following request creates a bucket with the name of “images.”

    PUT /images HTTP/1.1
    Content-Type: text/plain
    Host: kr.object.ncloudstorage.com
    X-Amz-Date: 20160821T052842Z
    Authorization:{authorization-string}
    

    Response example

    HTTP/1.1 200 OK
    Date: Wed, 24 Aug 2016 17:45:25 GMT
    Accept-Ranges: bytes
    x-amz-request-id: dca204eb-72b5-4e2a-a142-808d2a5c2a87
    Content-Length: 0
    

    Was this article helpful?

    What's Next
    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.