Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CreateBucket

Cria um novo bucket. 

Request Syntax

Code Block
themeMidnight
PUT / HTTP/1.1
Host: bucket-name.bigfile.brascloud.com.br:443
x-amz-acl: ACL
x-amz-grant-full-control: GrantFullControl
x-amz-grant-read: GrantRead
x-amz-grant-read-acp: GrantReadACP
x-amz-grant-write: GrantWrite
x-amz-grant-write-acp: GrantWriteACP
x-amz-bucket-object-lock-enabled: ObjectLockEnabledForBucket
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration xmlns="http://bigfile.brascloud.com.br:443/doc/2006-03-01/">
   <LocationConstraint>string</LocationConstraint>
</CreateBucketConfiguration>

Response Syntax

Code Block
themeMidnight
HTTP/1.1 200
Location: Location

Exemplos

Essa solicitação cria um bucket nomeado colorpictures.

Code Block
themeMidnight
titleRequest
             PUT / HTTP/1.1
            Host: bucket.bigfile.brascloud.com.br:443
            Content-Length: 0
            Date: Wed, 01 Mar  2006 12:00:00 GMT
            Authorization: authorization string

Code Block
themeMidnight
titleResponse

            HTTP/1.1 200 OK
            x-amz-id-2: YgIPIfBiKa2bj0KMg95r/0zo3emzU4dzsD4rcKCHQUAdQkf3ShJTOOpXUueF6QKo
            x-amz-request-id: 236A8905248E5A01
            Date: Wed, 01 Mar  2006 12:00:00 GMT

            Location: /colorpictures
            Content-Length: 0
            Connection: close
            Server: bigfile


Canal direto de comunicação com nossos arquitetos.Image AddedAinda tem dúvidas?

Você pode abrir um chamado conosco acessando nosso portal de suporte, estamos a disposição.