CmdID / aws / aws glacier
aws glacier describe-vault
This operation returns information about a vault, including the vault's Amazon Resource Name (ARN), the date the vault was created, the number of archives it contains, and the total size of all the archives in the vault. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To describe a vault
The following describe-vault example retrieves data about a vault named my-vault.
aws glacier describe-vault --vault-name my-vault --account-id -Identify--vault-nameThe name of the vault.--account-idThe AccountId value is the AWS account ID of the account that owns the vault.Its output
{
"VaultARN": "arn:aws:glacier:us-west-2:123456789012:vaults/my-vault",
"VaultName": "my-vault",
"CreationDate": "2015-07-17T19:22:31.123Z",
"LastInventoryDate": "2015-07-18T03:41:12.456Z",
"NumberOfArchives": 1,
"SizeInBytes": 3178496
}Amazon Glacier requires an account ID argument when performing operations, but you can use a hyphen to specify the in-use account.
For more information, see Retrieving Vault Metadata in Amazon Glacier Using the AWS Command Line Interface in the Amazon Glacier Developer Guide.
Options
--account-idThe AccountId value is the AWS account ID of the account that owns the vault.--vault-nameThe name of the vault.