PUT Bucket

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
 
m (1 revision)
 

Latest revision as of 13:36, 30 May 2016

creates a new bucket.

PUT /

[edit] Requests

Syntax
PUT / HTTP/1.1
Host: BucketName.hs2.hostway.com
Date: date
Authorization: signatureValue
Content-Length: length
Parameters

This implementation of the operation does not use request parameters.

Headers
  • x-amz-acl: Sets the ACL of the bucket you're creating.
Elements in body
  • CreateBucketConfiguration: Container for bucket configuration settings.
  • LocationConstraint: Specifies the Region where the bucket will be created.

[edit] Responses

Headers

This implementation of the operation uses only response headers that are common to most responses

Elements

This implementation of the operation does not return response elements.

[edit] Examples

Sample Request
PUT / HTTP/1.1
Host: BucketName.hs2.hostway.com
Content-Length: 0
Date: date
Authorization: AWS signatureValue
Sample Response
HTTP/1.1 200 OK
Date : date
Connection : keep-alive
Location : http://BucketName.hs2.hostway.com/BucketName
Content-Length : 0
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox