Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . iotanalytics ]



Retrieves the contents of a dataset as presigned URIs.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


--dataset-name <value>
[--version-id <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--dataset-name (string)

The name of the dataset whose contents are retrieved.

--version-id (string)

The version of the dataset whose contents are retrieved. You can also use the strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED" is the default.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI 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.

--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. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


To retrieve the contents of a dataset

The following get-dataset-content example retrieves the contents of a dataset as presigned URIs.

aws iotanalytics get-dataset-content --dataset-name mydataset


    "status": {
        "state": "SUCCEEDED"
    "timestamp": 1557863215.995,
    "entries": [
            "dataURI": ""

For more information, see GetDatasetContent in the guide.


entries -> (list)

A list of DatasetEntry objects.


The reference to a dataset entry.

entryName -> (string)

The name of the dataset item.

dataURI -> (string)

The presigned URI of the dataset item.

timestamp -> (timestamp)

The time when the request was made.

status -> (structure)

The status of the dataset content.

state -> (string)

The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, or FAILED.

reason -> (string)

The reason the dataset contents are in this state.