describe-job
Description
This operation returns information about a job you previously initiated, including the job initiation date, the user who initiated the job, the job status code/message and the Amazon SNS topic to notify after Amazon S3 Glacier (Glacier) completes the job. For more information about initiating a job, see InitiateJob .
Note
This operation enables you to check the status of your job. However, it is strongly recommended that you set up an Amazon SNS topic and specify it in your initiate job request so that Glacier can notify the topic after it completes the job.A job ID will not expire for at least 24 hours after Glacier completes the job.
An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don’t have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .
For more information about using this operation, see the documentation for the underlying REST API Describe Job in the Amazon Glacier Developer Guide .
See also: AWS API Documentation
Synopsis
describe-job
--account-id <value>
--vault-name <value>
--job-id <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--account-id (string)
AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single ‘- ‘ (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens (‘-’) in the ID.--vault-name (string)
--job-id (string)
--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Examples
Note
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
The following command retrieves information about an inventory retrieval job on a vault named my-vault:
aws glacier describe-job --account-id - --vault-name my-vault --job-id zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW
Output:
{
"InventoryRetrievalParameters": {
"Format": "JSON"
},
"VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault",
"Completed": false,
"JobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW",
"Action": "InventoryRetrieval",
"CreationDate": "2015-07-17T20:23:41.616Z",
"StatusCode": "InProgress"
}
The job ID can be found in the output of aws glacier initiate-job and aws glacier list-jobs. Amazon Glacier requires an account ID argument when performing operations, but you can use a hyphen to specify the in-use account.
Output
JobId -> (string)
JobDescription -> (string)
Action -> (string)
ArchiveRetrieval , InventoryRetrieval , or Select .ArchiveId -> (string)
VaultARN -> (string)
CreationDate -> (string)
"2012-03-20T17:03:43.221Z" .Completed -> (boolean)
StatusCode -> (string)
InProgress , Succeeded , or Failed , and indicates the status of the job.StatusMessage -> (string)
ArchiveSizeInBytes -> (long)
InventorySizeInBytes -> (long)
SNSTopic -> (string)
CompletionDate -> (string)
SHA256TreeHash -> (string)
For an archive retrieval job, this value is the checksum of the archive. Otherwise, this value is null.
The SHA256 tree hash value for the requested range of an archive. If the InitiateJob request for an archive specified a tree-hash aligned range, then this field returns a value.
If the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null for the following:
- Archive retrieval jobs that specify a range that is not tree-hash aligned
- Archival jobs that specify a range that is equal to the whole archive, when the job status is
InProgress - Inventory jobs
- Select jobs
ArchiveSHA256TreeHash -> (string)
RetrievalByteRange -> (string)
Tier -> (string)
Expedited , Standard , or Bulk . Standard is the default.InventoryRetrievalParameters -> (structure)
Parameters used for range inventory retrieval.
Format -> (string)
CSV and JSON .StartDate -> (string)
2013-03-20T17:03:43Z .EndDate -> (string)
2013-03-20T17:03:43Z .Limit -> (string)
Marker -> (string)
null . For more information, see Range Inventory Retrieval .JobOutputPath -> (string)
SelectParameters -> (structure)
Contains the parameters used for a select.
InputSerialization -> (structure)
Describes the serialization format of the object.
csv -> (structure)
Describes the serialization of a CSV-encoded object.
FileHeaderInfo -> (string)
None , Ignore , and Use .Comments -> (string)
QuoteEscapeCharacter -> (string)
RecordDelimiter -> (string)
FieldDelimiter -> (string)
QuoteCharacter -> (string)
ExpressionType -> (string)
SQL .Expression -> (string)
OutputSerialization -> (structure)
Describes how the results of the select job are serialized.
csv -> (structure)
Describes the serialization of CSV-encoded query results.
QuoteFields -> (string)
QuoteEscapeCharacter -> (string)
RecordDelimiter -> (string)
FieldDelimiter -> (string)
QuoteCharacter -> (string)
OutputLocation -> (structure)
Contains the location where the data from the select job is stored.
S3 -> (structure)
Describes an S3 location that will receive the results of the job request.
BucketName -> (string)
Prefix -> (string)
Encryption -> (structure)
Contains information about the encryption used to store the job results in Amazon S3.
EncryptionType -> (string)
AES256 or aws:kms .KMSKeyId -> (string)
KMSContext -> (string)
aws:kms , you can use this value to specify the encryption context for the job results.CannedACL -> (string)
AccessControlList -> (list)
A list of grants that control access to the staged results.
(structure)
Contains information about a grant.
Grantee -> (structure)
The grantee.
Type -> (string)
DisplayName -> (string)
URI -> (string)
ID -> (string)
EmailAddress -> (string)
Permission -> (string)
Tagging -> (map)
The tag-set that is applied to the job results.
key -> (string)
value -> (string)
UserMetadata -> (map)
A map of metadata to store with the job results in Amazon S3.
key -> (string)
value -> (string)
StorageClass -> (string)
© Copyright 2025, Amazon Web Services. Created using Sphinx.