cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New command: m365 spe container activate

Open Adam-it opened this issue 1 year ago • 3 comments

Usage

m365 spe container activate [options]

Description

Activates a container

Options

Option Description
-i, --id <id> Container id

Examples

Activates a container

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

Default properties

No response

Additional Info

We should point out in the docs the following:

Container is created in an inactive state, as indicated by the status property. A container must be activated within 24 hours after creation, or it will be automatically deleted. Upon activation, the value of the status property changes from inactive to active.

A Container can be activated by calling the activate API, or any other API that updates or modifies the Container or its content. For example, uploading a file to a Container, adding permission to a Container, creating a custom property on a Container, or updating the properties of a Container can activate it.


we may use the following POST request:

/storage/fileStorage/containers/{containerId}/activate

https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-activate?view=graph-rest-1.0&tabs=http

Adam-it avatar Jun 09 '24 21:06 Adam-it

@pnp/cli-for-microsoft-365-maintainers any feed or could we open this up?

Adam-it avatar Jun 22 '24 21:06 Adam-it

Nice one! Here I would also clarify the description a bit more. Good catch with the additional information. We should really make sure that this is added as a remark.

Jwaegebaert avatar Jul 09 '24 10:07 Jwaegebaert

Can I work on it?

nanddeepn avatar Oct 12 '24 15:10 nanddeepn