Skip to content

New command: m365 spe container recyclebinitem restore #6085

@Adam-it

Description

@Adam-it

Usage

m365 spe container recyclebinitem restore [options]

Description

Restores a deleted container

Options

Option Description
-i, --id [id] Container id. Specify either id or name but not both.
-n, --name [name] Display name of the Container. Specify either id or name but not both.

Examples

Restores deleted container

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

Default properties

No response

Additional Info

we may use the following POST request:

/deletedStorageContainers/{containerId}/restore

Also when using name option we will need to run the /fileStorage/containers to list all containers and match the container by name.

what's worth noticing is that it is still beta

https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-restore?view=graph-rest-beta

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions