PUT operation of the QueryIO Server provides services to add an object to a bucket.
PUT /queryio/<BucketName>/<ObjectName>
HTTP/1.1 Host: QueryIO.com authorization:<Token>
The PUT operation in QueryIO server uses following request headers:
Header Name | Description | Type | Required |
---|---|---|---|
Content-Length
|
Gives the size of the object, in bytes. |
String | No |
Content-MD5
|
The MD5 digest of the message. This header is used to check consistency of the data by comparing with original data. |
String | No |
x-amz-server-side-encryption
|
Server-side encryption algorithm to be used. Value: | String | No |
x-amz-server-side-compression
|
Server-side compression algorithm to be used. Value: | String | No |
unzip
|
To extract contents of archive file. Value: | Boolean | No |
x-amz-meta-xxx
|
Add extended metadata to the object. Header starting with prefix x-amz-meta- is considered as user metadata. Value: | String | No |
owner
|
Set owner of the object. | String | No |
group
|
Set group of the object. | String | No |
permission
|
Permissions to be granted on object in octal format. | OctalFormat | No |
The following request will create object File1.txt in bucket DIR1 :
PUT /queryio/DIR1/File1.txt HTTP/1.1 Host: QueryIO.com authorization: iffo6l9hel2hfmbj2384joljgh9mqga58gb9if9593ucli9ke5s2e3854shhcmmm Content-Length: 11434
The following request will add myfile.txt to bucket DIR1 :
PUT /queryio/DIR1/myfile.txt HTTP/1.1 Host: QueryIO.com authorization: iffo6l9hel2hfmbj2384joljgh9mqga58gb9if9593ucli9ke5s2e3854shhcmmm x-amz-server-side-compression: GZ x-amz-server-side-encryption: AES256 Content-MD5: appp
The following request will extract and add archive file demo.zip to bucket DIR1 :
PUT /queryio/DIR1/demo.zip HTTP/1.1 Host: QueryIO.com authorization: iffo6l9hel2hfmbj2384joljgh9mqga58gb9if9593ucli9ke5s2e3854shhcmmm unzip: true
The following request will add File2.txt to bucket DIR2 :
PUT /queryio/DIR2/File2.txt HTTP/1.1 Host: QueryIO.com authorization: iffo6l9hel2hfmbj2384joljgh9mqga58gb9if9593ucli9ke5s2e3854shhcmmm x-amz-meta-author: QueryIO x-amz-meta-priority: high