Amazon Simple Storage Service
API Reference (API Version 2006-03-01)
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with AWS services in China.

GET Object retention

Retrieves an object's retention settings.

Request Syntax

GET /<object-key>?retention&versionId=<version-id> HTTP/1.1 Host: <bucket-name> Date: <Thu, 15 Nov 2016 00:17:21 GMT> Authorization: <authorization-string> (see Authenticating Requests (AWS Signature Version 4))

URI Request Parameters


The version ID for the object version whose retention settings you want to retrieve.

Request Body

The request does not have a request body.

Response Syntax

<Retention> <Mode><value></Mode> <RetainUntilDate><value></RetainUntilDate> </Retention>

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

For more information about the response elements this operation returns, see ObjectLockRetention.

Related Resources

Locking Objects in the Amazon Simple Storage Service Developer Guide.