Skip to main content

spe container recyclebinitem restore

Restores a deleted container

Usage

m365 spe container recyclebinitem restore [options]

Options

--id [id]

The container id. Specify either id or name but not both.

--name [name]

The display name of the Container. Specify either id or name but not both.

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

Examples

Restore a deleted container by ID.

m365 spe container recyclebinitem restore --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"

Restore a deleted container by using its name and container type ID.

m365 spe container recyclebinitem restore --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73" --name "Invoices"

Restore a deleted container by using its name and container type name.

m365 spe container recyclebinitem restore --containerTypeName "My container type name" --name "Invoices"

Response

The command won't return a response on success.