getObjectLegalHold method
Written by
Returns the settings of legal hold put on the object version.
Request
GET /{bucket}/{key}?legal-hold&versionId={versionId} HTTP/2
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
key |
Object key. |
Query parameters
Parameter | Description |
---|---|
legal-hold |
Required parameter that indicates the type of operation. |
versionId |
Object version ID. Required parameter. |
Headers
Use the necessary common request headers in requests.
Response
Headers
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.
Data schema
<LegalHold xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Status>string</Status>
</LegalHold>
Element | Description |
---|---|
Status |
Status of legal hold:
Path: |