HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/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*.