Swift get an object
To retrieve an object, make a GET request with the API version, account,
container, and object name. You must have read permissions on the container to retrieve an object
within it.
Syntax
GET /_AP_VERSION_/_ACCOUNT_/_TENANT_:_CONTAINER_/_OBJECT_ HTTP/1.1
Host: FULLY_QUALIFIED_DOMAIN_NAME
X-Auth-Token: _AUTH_TOKEN_
Request Headers
range
- Description
-
To retrieve a subset of an object’s contents, you can specify a byte range.
- Type
-
Date
- Required
-
No
If-Modified-Since
- Description
-
Only copies if modified since the date and time of the source object’s
last_modifiedattribute. - Type
-
Date
- Required
-
No
If-Unmodified-Since
- Description
-
Only copies if not modified since the date and time of the source object’s
last_modifiedattribute. - Type
-
Date
- Required
-
No
Copy-If-Match
- Description
-
Copies only if the ETag in the request matches the source object’s ETag.
- Type
-
ETag
- Required
-
No
Copy-If-None-Match
- Description
-
Copies only if the
ETagin the request does not match the source object’s ETag. - Type
-
ETag
- Required
-
No
Response Headers
Content-Range
- Description
-
The range of the subset of object contents. Returned only if the range header field was specified in the request.