GET Object Lock Configuration¶
Gets the object lock configuration for a bucket. The rule specified in the object lock configuration is applied by default to every new object placed in the specified bucket thereafter.
Request Syntax¶
GET /?object-lock HTTP/1.1
Host: <bucket-name>.s3.example.com
Date: <Thu, 15 Nov 2016 00:17:21 GMT>
Authorization: <authorization-string>
URI Request Parameters¶
This request uses no URI parameters.
Request Body¶
This request does not have a request body.
Response Syntax¶
<ObjectLockConfiguration>
<ObjectLockEnabled>string</ObjectLockEnabled>
<Rule>
<DefaultRetention>
<Mode>string</Mode>
<Years>integer</Years>
</DefaultRetention>
</Rule>
</ObjectLockConfiguration>
Response Elements¶
On success, the service returns an HTTP 200
response.
For more information about the response elements that this operation returns, see ObjectLockConfiguration.