The following Swift API operations are performed on objects.
This operation deletes an object's content and metadata from the StorageGRID system.
The following request parameters are required:
The following request header is required:
A successful execution returns the following response headers with an HTTP/1.1 204 No Content
response:
When processing a DELETE Object request, StorageGRID attempts to immediately remove all copies of the object from all stored locations. If successful, StorageGRID returns a response to the client immediately. If all copies cannot be removed within 30 seconds (for example, because a location is temporarily unavailable), StorageGRID queues the copies for removal and then indicates success to the client.
For more information on how objects are deleted, see the instructions for administering StorageGRID.
This operation retrieves the object content and gets the object metadata from a StorageGRID system.
The following request parameters are required:
The following request header is required:
The following request headers are optional:
A successful execution returns the following headers with an "HTTP/1.1 200 OK" response:
This operation retrieves metadata and properties of an ingested object from a StorageGRID system.
The following request parameters are required:
The following request header is required:
A successful execution returns the following headers with an "HTTP/1.1 200 OK" response:
This operation creates a new object with data and metadata, or replaces an existing object with data and metadata in a StorageGRID system.
latest-winsbasis. The timing for the
latest-winsevaluation is based on when the StorageGRID system completes a given request, and not on when Swift clients begin an operation.
The following request parameters are required:
The following request header is required:
The following request headers are optional:
Do not use chunked Content-Encoding if the ILM rule that applies to an object filters objects based on size and uses synchronous placement on ingest (the Balanced or Strict options for Ingest Behavior).
Transfer-Encoding
Do not use compressed or chunked Transfer-Encoding if the ILM rule that applies to an object filters objects based on size and uses synchronous placement on ingest (the Balanced or Strict options for Ingest Behavior).
Content-Length
For more information about synchronous placement and ILM rules, see Information Lifecycle Management in the instructions for administering StorageGRID.
X-Object-Meta-<name> (object-related metadata)
X-Object-Meta-Creation-Time: 1443399726This field is evaluated as seconds since January 1, 1970.
This header affects how many object copies StorageGRID creates if the ILM rule that matches an ingested object specifies an Ingest Behavior of Dual Commit or Balanced.
The reduced_redundancy header is best used when the ILM rule that matches the object creates a single replicated copy. In this case using reduced_redundancy eliminates the unnecessary creation and deletion of an extra object copy for every ingest operation.
Using the reduced_redundancy header is not recommended in other circumstances because it increases the risk the loss of object data 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.
Note that 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 policy and does not result in data being stored at lower levels of redundancy in the StorageGRID system.
A successful execution returns the following headers with an "HTTP/1.1 201 Created" response: