HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-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*.