Snowball examples using Amazon CLI - Amazon Command Line Interface
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Snowball examples using Amazon CLI

The following code examples show you how to perform actions and implement common scenarios by using the Amazon Command Line Interface with Snowball.

Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios and cross-service examples.

Scenarios are code examples that show you how to accomplish a specific task by calling multiple functions within the same service.

Each example includes a link to GitHub, where you can find instructions on how to set up and run the code in context.

Topics

Actions

The following code example shows how to use get-snowball-usage.

Amazon CLI

To get information about the Snowball service limit for your account

The following get-snowball-usage example displays information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.

aws snowball get-snowball-usage

Output:

{ "SnowballLimit": 1, "SnowballsInUse": 0 }

FOR more information, see Amazon Snowball Edge Limits in the Amazon Snowball Developer Guide.

The following code example shows how to use list-jobs.

Amazon CLI

To list the current Snowball jobs in your account

The following list-jobs example displays an array of JobListEntry objects. In this example, a single job is listed.

aws snowball list-jobs

Output:

{ "JobListEntries": [ { "CreationDate": 2016-09-27T14:50Z, "Description": "Important Photos 2016-08-11", "IsMaster": TRUE, "JobId": "ABCd1e324fe-022f-488e-a98b-3b0566063db1", "JobState": "Complete", "JobType": "IMPORT", "SnowballType": "EDGE" } ] }

For more information, see Jobs for Amazon Snowball Edge devices in the Amazon Snowball Developer Guide.

  • For API details, see ListJobs in Amazon CLI Command Reference.