CreateMultipartUpload
The CreateMultipartUpload (previously named Initiate Multipart Upload) operation initiates a multipart upload for an object, and returns an upload ID.
The x-amz-storage-class
request header is supported. The value submitted for x-amz-storage-class
affects how StorageGRID protects object data during ingest and not how many persistent copies of the object are stored in the StorageGRID system (which is determined by ILM).
If the ILM rule matching an ingested object uses the Strict ingest option, the x-amz-storage-class
header has no effect.
The following values can be used for x-amz-storage-class
:
-
STANDARD
(Default)-
Dual commit: If the ILM rule specifies the Dual commit ingest option, as soon as an object is ingested a second copy of that object is created and distributed to a different Storage Node (dual commit). When the ILM is evaluated, StorageGRID determines if these initial interim copies satisfy the placement instructions in the rule. If they don't, new object copies might need to be made in different locations and the initial interim copies might need to be deleted.
-
Balanced: If the ILM rule specifies the Balanced option and StorageGRID can't immediately make all copies specified in the rule, StorageGRID makes two interim copies on different Storage Nodes.
If StorageGRID can immediately create all object copies specified in the ILM rule (synchronous placement), the
x-amz-storage-class
header has no effect.
-
-
REDUCED_REDUNDANCY
-
Dual commit: If the ILM rule specifies the Dual commit option, StorageGRID creates a single interim copy as the object is ingested (single commit).
-
Balanced: If the ILM rule specifies the Balanced option, StorageGRID makes a single interim copy only if the system can't immediately make all copies specified in the rule. If StorageGRID can perform synchronous placement, this header has no effect. The
REDUCED_REDUNDANCY
option is best used when the ILM rule that matches the object creates a single replicated copy. In this case usingREDUCED_REDUNDANCY
eliminates the unnecessary creation and deletion of an extra object copy for every ingest operation.
Using the
REDUCED_REDUNDANCY
option is not recommended in other circumstances.REDUCED_REDUNDANCY
increases the risk of object data loss during ingest. For example, you might lose data if the single copy is initially stored on a Storage Node that fails before ILM evaluation can occur. -
Having only one replicated copy for any time period puts data at risk of permanent loss. If only one replicated copy of an object exists, that object is lost if a Storage Node fails or has a significant error. You also temporarily lose access to the object during maintenance procedures such as upgrades. |
Specifying REDUCED_REDUNDANCY
only affects how many copies are created when an object is first ingested. It does not affect how many copies of the object are made when the object is evaluated by the active ILM policies, and does not result in data being stored at lower levels of redundancy in the StorageGRID system.
If you are ingesting an object into a bucket with S3 Object Lock enabled, the REDUCED_REDUNDANCY option is ignored. If you are ingesting an object into a legacy Compliant bucket, the REDUCED_REDUNDANCY option returns an error. StorageGRID will always perform a dual-commit ingest to ensure that compliance requirements are satisfied.
|
Supported request headers
The following request headers are supported:
-
Content-Type
-
x-amz-checksum-algorithm
Currently, only the SHA256 value for
x-amz-checksum-algorithm
is supported. -
x-amz-meta-
, followed by a name-value pair containing user-defined metadataWhen specifying the name-value pair for user-defined metadata, use this general format:
x-amz-meta-_name_: `value`
If you want to use the User defined creation time option as the Reference time for an ILM rule, you must use
creation-time
as the name of the metadata that records when the object was created. For example:x-amz-meta-creation-time: 1443399726
The value for
creation-time
is evaluated as seconds since January 1, 1970.Adding creation-time
as user-defined metadata is not allowed if you are adding an object to a bucket that has legacy Compliance enabled. An error will be returned. -
S3 Object Lock request headers:
-
x-amz-object-lock-mode
-
x-amz-object-lock-retain-until-date
-
x-amz-object-lock-legal-hold
If a request is made without these headers, the bucket default retention settings are used to calculate the object version retain-until-date.
-
-
SSE request headers:
-
x-amz-server-side-encryption
-
x-amz-server-side-encryption-customer-key-MD5
-
x-amz-server-side-encryption-customer-key
-
x-amz-server-side-encryption-customer-algorithm
For information about how StorageGRID handles UTF-8 characters, see PutObject. -
Request headers for server-side encryption
You can use the following request headers to encrypt a multipart object with server-side encryption. The SSE and SSE-C options are mutually exclusive.
-
SSE: Use the following header in the CreateMultipartUpload request if you want to encrypt the object with a unique key managed by StorageGRID. Don't specify this header in any of the UploadPart requests.
-
x-amz-server-side-encryption
-
-
SSE-C: Use all three of these headers in the CreateMultipartUpload request (and in each subsequent UploadPart request) if you want to encrypt the object with a unique key that you provide and manage.
-
x-amz-server-side-encryption-customer-algorithm
: SpecifyAES256
. -
x-amz-server-side-encryption-customer-key
: Specify your encryption key for the new object. -
x-amz-server-side-encryption-customer-key-MD5
: Specify the MD5 digest of the new object's encryption key.
-
The encryption keys you provide are never stored. If you lose an encryption key, you lose the corresponding object. Before using customer-provided keys to secure object data, review the considerations for using server-side encryption. |
Unsupported request headers
The following request header isn't supported:
-
x-amz-website-redirect-location
The
x-amz-website-redirect-location
header returnsXNotImplemented
.
Versioning
Multipart upload consists of separate operations for initiating the upload, listing uploads, uploading parts, assembling the uploaded parts, and completing the upload. Objects are created (and versioned if applicable) when the CompleteMultipartUpload operation is performed.