PUT Object

Description

PUT operation of the QueryIO Server provides services to add an object to a bucket.

Requests

Syntax

Request Headers

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: AES256

String No
x-amz-server-side-compression

Server-side compression algorithm to be used.

Value: SNAPPY, GZ, LZ4

String No
unzip

To extract contents of archive file.

Value: true or false

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: true or false

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

Examples

Sample Request with the Content-Length Header

The following request will create object File1.txt in bucket DIR1 :

Sample Request with the Content-MD5 Header

The following request will add myfile.txt to bucket DIR1 :

Sample Request with the unzip Header

The following request will extract and add archive file demo.zip to bucket DIR1 :

Sample Request with the x-amz-meta- Header

The following request will add File2.txt to bucket DIR2 :



Copyright ©
  • Contact Us
  • Contact Us
  • 2018 QueryIO Corporation. All Rights Reserved.

    QueryIO, "Big Data Intelligence" and the QueryIO Logo are trademarks of QueryIO Corporation. Apache, Hadoop and HDFS are trademarks of The Apache Software Foundation.