HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/mediastore/list-items.rst
**Example 1: To view a list of objects and folders in a specific container**

The following ``list-items`` example displays items (objects and folders) stored in the specified container. ::

    aws mediastore-data list-items \
        --endpoint https://aaabbbcccdddee.data.mediastore.us-west-2.amazonaws.com

Output::

    {
        "Items": [
            {
                "ContentType": "image/jpeg",
                "LastModified": 1563571859.379,
                "Name": "filename.jpg",
                "Type": "OBJECT",
                "ETag": "543ab21abcd1a234ab123456a1a2b12345ab12abc12a1234abc1a2bc12345a12",
                "ContentLength": 3784
            },
            {
                "Type": "FOLDER",
                "Name": "ExampleLiveDemo"
            }
        ]
    }

**Example 2: To view a list of objects and folders in a specific folder**

The following ``list-items`` example displays items (objects and folders) stored in a specific folder. ::

    aws mediastore-data list-items \
        --endpoint https://aaabbbcccdddee.data.mediastore.us-west-2.amazonaws.com

Output::

    {
        "Items": [
            {
                "ContentType": "image/jpeg",
                "LastModified": 1563571859.379,
                "Name": "filename.jpg",
                "Type": "OBJECT",
                "ETag": "543ab21abcd1a234ab123456a1a2b12345ab12abc12a1234abc1a2bc12345a12",
                "ContentLength": 3784
            },
            {
                "Type": "FOLDER",
                "Name": "ExampleLiveDemo"
            }
        ]
    }

For more information, see `Viewing a List of Objects <https://docs.aws.amazon.com/mediastore/latest/ug/objects-view-list.html>`__ in the *AWS Elemental MediaStore User Guide*.