spe container recyclebinitem restore
Restores a deleted container
Usage
m365 spe container recyclebinitem restore [options]
Options
--id [id]
The container id. Specify either
id
orname
but not both.--name [name]
The display name of the Container. Specify either
id
orname
but not both.--containerTypeId [containerTypeId]
The container type ID of the container instance. Use either
containerTypeId
orcontainerTypeName
but not both.--containerTypeName [containerTypeName]
The container type name of the container instance. Use either
containerTypeId
orcontainerTypeName
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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
Permissions
- Delegated
- Application
Resource | Permissions |
---|---|
Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
This command only supports application permissions when using the containerTypeId
option.
Resource | Permissions |
---|---|
Microsoft Graph | FileStorageContainer.Selected |
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.