pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
882 stars 312 forks source link

New command: m365 spe container activate #6086

Open Adam-it opened 3 weeks ago

Adam-it commented 3 weeks ago

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 commented 1 week ago

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