PUT Bucket operation of QueryIO server will create a new bucket.
PUT/queryio/<BucketName>HTTP/1.1 Host: QueryIO.com authorization:Token
The PUT operation in QueryIO server uses following request headers:
| Header Name | Description | Type | Required |
|---|---|---|---|
owner
|
Set owner of the bucket. | String | No |
group
|
Set group of the bucket. | String | No |
permission
|
Permissions to be granted on bucket in octal format. | OctalFormat | No |
The following request creates a new bucket named NewBucket.
PUT /queryio/DIR1 HTTP/1.1 Host: QueryIO.com authorization: iffo6l9hel2hfmbj2384joljgh9mqga58gb9if9593ucli9ke5s2e3854shhcmmm
<xml version="1.0" encoding="UTF-8">
<ListAllMyBucketsResult xmlns="http://QueryIO/DIR1">
<Owner>
<ID>1350306721234562000_719148673</ID>
<DisplayName>Admin</DisplayName>
</Owner>
<Buckets>
<Bucket>
<Name>DIR1</Name>
<CreationDate>2012-10-17 17:41:09</CreationDate>
</Bucket>
<Bucket>
<Name>DIR2</Name>
<CreationDate>2012-08-11 10:11:09</CreationDate>
</Bucket>
</Buckets>
</ListAllMyBucketsResult>