PutObject
Loads an object and its metadata to ColdStack.
Note
ColdStack does not block an object for writing and can accept several requests for writing one object at the same time, however, by default, the user will be able to get only the last written object from ColdStack. To preserve history when overwriting or deleting objects, turn on versioning .
Use a header to ensure that the object is transmitted over the network without damage Content-MD5
. ColdStack will calculate MD5
for the stored object and if the calculated MD5
does not match the one passed in the header, it will return an error. This validation can also be performed on the client side by comparing the ETag
ColdStack response with the precomputed one MD5
.
Request
Path parameters
Parameter
Description
bucket
Bucket name.
key
Object key. The identifier under which the object will be stored in ColdStack.
Headings
Use the required common headers in the request .
Additionally, you can use the headings listed in the table below.
Heading
Description
x-amz-meta-*
Custom object metadata.
All headers starting with x-amz-meta-
ColdStack are treated as custom headers, they are not processed and stored in the form in which they are transmitted.
The total size of custom headers must not exceed 2KB. The size of the user data is defined as the length of the UTF-8 encoded string. The size takes into account both the names of the headings and their values.
x-amz-storage-class
Object storage class.
Can have any of the following values:
- STANDARD
to load an object into the standard storage.
- COLD
, STANDARD_IA
and NEARLINE
to load the object into cold storage.
If the header is not specified, then the object is saved in the storage set in the bucket settings.
x-amz-server-side-encryption
The default encryption algorithm for encrypting new objects.
x-amz-server-side-encryption-aws-kms-key-id
The default KMS key identifier used to encrypt new objects.
Using the headers listed below, you can set the ACL for the loaded object.
Heading
Description
x-amz-acl
Sets a predefined ACL for an object.
x-amz-grant-read
Sets the recipient to read permission on the object.
x-amz-grant-read-acp
Sets the recipient to read the object's ACL.
x-amz-grant-write-acp
Sets the recipient to write access to the object's ACL.
x-amz-grant-full-control
Sets the access permission recipient: READ
, WRITE
, READ_ACP
, WRITE_ACP
object.
The value for headers x-amz-grant-*
is a comma-separated list of recipients. Each accessor is identified by a view structure <тип получателя доступа>:<идентификатор получателя доступа>
. ColdStack supports the following recipient types:
id
- access recipient is a cloud user.uri
- access recipient - system group.
Example:
Answer
Headings
The response can only contain general headers .
Answer codes
For a list of possible answers, see the Answers section .
Last updated