HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/s3api/get-object-legal-hold.rst
**Retrieves the Legal Hold status of an object**

The following ``get-object-legal-hold`` example retrieves the Legal Hold status for the specified object. ::

    aws s3api get-object-legal-hold \
        --bucket my-bucket-with-object-lock \
        --key doc1.rtf

Output::

    {
        "LegalHold": {
            "Status": "ON"
        }
    }