CreateBucket
Cria um novo bucket.
Request Syntax
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
HTTP/1.1 200 Location: Location
Exemplos
Essa solicitação cria um bucket nomeado colorpictures
.
Request
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
Response
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