---
title: "GET /{accountId}/vaults/{vaultName}/lock-policy"
method: GET
path: "/{accountId}/vaults/{vaultName}/lock-policy"
---

# GET /{accountId}/vaults/{vaultName}/lock-policy

`GET /{accountId}/vaults/{vaultName}/lock-policy`

This operation retrieves the following attributes from the `lock-policy` subresource set on the specified vault:

*   The vault lock policy set on the vault.
    
*   The state of the vault lock, which is either `InProgess` or `Locked`.
    
*   When the lock ID expires. The lock ID is used to complete the vault locking process.
    
*   When the vault lock was initiated and put into the `InProgress` state.
    

A vault lock is put into the `InProgress` state by calling InitiateVaultLock. A vault lock is put into the `Locked` state by calling CompleteVaultLock. You can abort the vault locking process by calling AbortVaultLock. For more information about the vault locking process, [Amazon Glacier Vault Lock](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html).

If there is no vault lock policy set on the vault, the operation returns a `404 Not found` error. For more information about vault lock policies, [Amazon Glacier Access Control with Vault Lock Policies](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html).

## Path parameters

- `accountId` string, required
- `vaultName` string, required

## Response `200`

Success

- GetVaultLockOutput — Contains the Amazon S3 Glacier response to your request.
  - `Policy` string — The vault lock policy as a JSON string, which uses "\" as an escape character.
  - `State` string — The state of the vault lock. <code>InProgress</code> or <code>Locked</code>.
  - `ExpirationDate` string — The UTC date and time at which the lock ID expires. This value can be <code>null</code> if the vault lock is in a <code>Locked</code> state.
  - `CreationDate` string — The UTC date and time at which the vault lock was put into the <code>InProgress</code> state.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InvalidParameterValueException
- `482` — MissingParameterValueException
- `483` — ServiceUnavailableException

---

[API](https://skmtc.net/aws/apis/glacier.md) · [All operations](https://skmtc.net/aws/apis/glacier/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/glacier/versions/7b30e085db54/schema)
