CreateBucket
Cria um novo bucket.
Request Syntax
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
HTTP/1.1 200 Location: Location |
Exemplos
Essa solicitação cria um bucket nomeado colorpictures
.
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
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 |
Ainda tem dúvidas?