Skip to main content

spe container get

Gets a container of a specific container type

Usage

m365 spe container get [options]

Options

-i, --id [id]

The Id of the container instance. Specify either id or name but not both.

-n, --name [name]

Display name of the container. Specify either id or name but not both.

--containerTypeId [containerTypeId]

The container type ID of the container instance. Specify either containerTypeId or containerTypeName when using name but not both.

--containerTypeName [containerTypeName]

The container type name of the container instance. Specify either containerTypeId or containerTypeName when using name 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, permissions, 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.

Permissions

ResourcePermissions
Microsoft GraphFileStorageContainer.Selected

Examples

Gets a container of a specific type by id.

m365 spe container get --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"

Gets a container of a specific type by display name.

m365 spe container get --name "My Application Storage Container" --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"

Gets container by using its name and container type name.

m365 spe container get --name "Invoices" --containerTypeName "My container type name"

Response

{
"id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
"displayName": "My Application Storage Container",
"description": "Description of My Application Storage Container",
"containerTypeId": "91710488-5756-407f-9046-fbe5f0b4de73",
"status": "active",
"createdDateTime": "2021-11-24T15:41:52.347Z",
"settings": {
"isOcrEnabled": false
}
}