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 name. |
| 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 |
| Custom object metadata.
All headers starting with |
| Object storage class.
Can have any of the following values:
- |
| The default encryption algorithm for encrypting new objects. |
| 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 |
| Sets a predefined ACL for an object. |
| Sets the recipient to read permission on the object. |
| Sets the recipient to read the object's ACL. |
| Sets the recipient to write access to the object's ACL. |
| Sets the access permission recipient: |
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