aws.glacier.list_jobs
Example SQL Queries
SELECT * FROMaws.glacier.list_jobsWHERE"account_id" = 'VALUE'AND "vault_name" = 'VALUE';Description
This operation lists jobs for a vault, including jobs that are in-progress and jobs that have recently finished. The List Job operation returns a list of these jobs sorted by job initiation time.
Amazon Glacier retains recently completed jobs for a period before deleting them; however, it eventually removes completed jobs. The output of completed jobs can be retrieved. Retaining completed jobs for a period of time after they have completed enables you to get a job output in the event you miss the job completion notification or your first attempt to download it fails. For example, suppose you start an archive retrieval job to download an archive. After the job completes, you start to download the archive but encounter a network error. In this scenario, you can retry and download the archive while the job exists.
The List Jobs operation supports pagination. You should always check the response Marker field. If there are no more jobs to list, the Marker field is set to null. If there are more jobs to list, the Marker field is set to a non-null value, which you can use to continue the pagination of the list. To return a list of jobs that begins at a specific job, set the marker request parameter to the Marker value for that job that you obtained from a previous List Jobs request.
You can set a maximum limit for the number of jobs returned in the response by specifying the limit parameter in the request. The default limit is 50. The number of jobs returned might be fewer than the limit, but the number of returned jobs never exceeds the limit.
Additionally, you can filter the jobs list returned by specifying the optional statuscode parameter or completed parameter, or both. Using the statuscode parameter, you can specify to return only jobs that match either the InProgress, Succeeded, or Failed status. Using the completed parameter, you can specify to return only jobs that were completed (true) or jobs that were not completed (false).
For more information about using this operation, see the documentation for the underlying REST API List Jobs.
Table Definition
| Column Name | Column Data Type |
|---|---|
| account_id Required Input Column The 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. | VARCHAR |
| vault_name Required Input Column The name of the vault. | VARCHAR |
| statuscode Input Column The type of job status to return. You can specify the following values: InProgress, Succeeded, or Failed. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| _input_completed Input Column | VARCHAR |
| action The job type. This value is either ArchiveRetrieval, InventoryRetrieval, or Select. | VARCHAR |
| archive_id The archive ID requested for a select job or archive retrieval. Otherwise, this field is null. | VARCHAR |
| archive_sha256_tree_hash The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null. | VARCHAR |
| archive_size_in_bytes For an archive retrieval job, this value is the size in bytes of the archive being requested for download. For an inventory retrieval or select job, this value is null. | BIGINT |
| completed The job status. When a job is completed, you get the job's output using Get Job Output (GET output). | BOOLEAN |
| completion_date The UTC time that the job request completed. While the job is in progress, the value is null. | VARCHAR |
| creation_date The UTC date when the job was created. This value is a string representation of ISO 8601 date format, for example "2012-03-20T17:03:43.221Z". | VARCHAR |
| inventory_retrieval_parameters Parameters used for range inventory retrieval. | STRUCT( |
Show child fields
| |
| inventory_size_in_bytes For an inventory retrieval job, this value is the size in bytes of the inventory requested for download. For an archive retrieval or select job, this value is null. | BIGINT |
| job_description The job description provided when initiating the job. | VARCHAR |
| job_id An opaque string that identifies an Amazon S3 Glacier job. | VARCHAR |
| job_output_path Contains the job output location. | VARCHAR |
| output_location Contains the location where the data from the select job is stored. | STRUCT( |
Show child fields
| |
| retrieval_byte_range The retrieved byte range for archive retrieval jobs in the form StartByteValue-EndByteValue. If no range was specified in the archive retrieval, then the whole archive is retrieved. In this case, StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval or select jobs, this field is null. | VARCHAR |
| select_parameters Contains the parameters used for a select. | STRUCT( |
Show child fields
| |
| sha256_tree_hash 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:
| VARCHAR |
| sns_topic An Amazon SNS topic that receives notification. | VARCHAR |
| status_code The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job. | VARCHAR |
| status_message A friendly message that describes the job status. | VARCHAR |
| tier The tier to use for a select or an archive retrieval. Valid values are Expedited, Standard, or Bulk. Standard is the default. | VARCHAR |
| vault_arn The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested. | VARCHAR |