Table Of Contents

Feedback

User Guide

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

[ aws . mediastore-data ]

list-items

Description

Provides a list of metadata entries about folders and objects in the specified folder.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  list-items
[--path <value>]
[--max-results <value>]
[--next-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--path (string)

The path in the container from which to retrieve items. Format: folder name/folder name/file name

--max-results (integer)

The maximum number of results to return per API request. For example, you submit a ListItems request with MaxResults set at 500. Although 2,000 items match your request, the service returns no more than the first 500 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value.

If MaxResults is not included in the request, the service defaults to pagination with a maximum of 1,000 results per page.

--next-token (string)

The token that identifies which batch of results that you want to see. For example, you submit a ListItems request with MaxResults set at 500. The service returns the first batch of results (up to 500) and a NextToken value. To see the next batch of results, you can submit the ListItems request a second time and specify the NextToken value.

Tokens expire after 15 minutes.

--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.

Output

Items -> (list)

The metadata entries for the folders and objects at the requested path.

(structure)

A metadata entry for a folder or object.

Name -> (string)

The name of the item.

Type -> (string)

The item type (folder or object).

ETag -> (string)

The ETag that represents a unique instance of the item.

LastModified -> (timestamp)

The date and time that the item was last modified.

ContentType -> (string)

The content type of the item.

ContentLength -> (long)

The length of the item in bytes.

NextToken -> (string)

The token that can be used in a request to view the next set of results. For example, you submit a ListItems request that matches 2,000 items with MaxResults set at 500. The service returns the first batch of results (up to 500) and a NextToken value that can be used to fetch the next batch of results.