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: //lib/python3/dist-packages/awscli/examples/glacier/get-vault-lock.rst
**To get the details of a vault lock**

The following ``get-vault-lock`` example retrieved the details about the lock for the specified vault. ::

    aws glacier get-vault-lock \
        --account-id - \
        --vault-name MyVaultName 
        
Output::

    {
        "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-vault-lock\",\"Effect\":\"Deny\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:99999999999:vaults/MyVaultName\",\"Condition\":{\"NumericLessThanEquals\":{\"glacier:ArchiveAgeinDays\":\"365\"}}}]}",
        "State": "Locked",
        "CreationDate": "2019-07-29T22:25:28.640Z"
    }

For more information, see `Get Vault Lock (GET lock-policy) <https://docs.aws.amazon.com/amazonglacier/latest/dev/api-GetVaultLock.html>`__ in the *Amazon Glacier API Developer Guide*.