HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/mediastore-data/list-items.rst
**Example 1: To view a list of items (objects and folders) stored in a container**

The following ``list-items`` example displays a list of 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": [
            {
                "Type": "OBJECT",
                "ContentLength": 3784,
                "Name": "setup.jpg",
                "ETag": "2aa333bbcc8d8d22d777e999c88d4aa9eeeeee4dd89ff7f555555555555da6d3",
                "ContentType": "image/jpeg",
                "LastModified": 1563571859.379
            },
            {
                "Type": "FOLDER",
                "Name": "events"
            }
        ]
    }

**Example 2: To view a list of items (objects and folders) stored in a folder**

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

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

Output::

    {
        "Items": [
            {
                "ETag": "2aa333bbcc8d8d22d777e999c88d4aa9eeeeee4dd89ff7f555555555555da6d3",
                "ContentType": "image/jpeg",
                "Type": "OBJECT",
                "ContentLength": 3860266,
                "LastModified": 1563573031.872,
                "Name": "setup.jpg"
            }
        ]
    }

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