Skip to main content

spe container list

Lists containers of a specific Container Type

Usage

m365 spe container list [options]

Options

--containerTypeId [containerTypeId]

The Container Type Id of the container instance. Use either containerTypeId or containerTypeName but not both.

--containerTypeName [containerTypeName]

The Container Type name of the container instance. Use either containerTypeId or containerTypeName but not both.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

List containers of a specific type by id.

m365 spe container list --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"

List containers of a specific type by name.

m365 spe container list --containerTypeName "trial container"

Response

[
{
"id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
"displayName": "My File Storage Container",
"containerTypeId": "e2756c4d-fa33-4452-9c36-2325686e1082",
"createdDateTime": "2021-11-24T15:41:52.347Z"
}
]

More information

In SharePoint Embedded, all files and documents are stored in Containers. The calling app should be the owning app of the container type.

CTRL + M