New command: m365 spe containertype list
Usage
m365 spe containertype list [options]
Description
Lists Container Types
Options
I do not think we will have any option here. The general idea of this command is to list all container types. If needed we may always use the standard --query option to filter the result for example by applicationID
Examples
Lists all Container Types
m365 spe containertype list
Default properties
- ContainerTypeId
- ContainerTypeName
- OwningApplicationId
Additional Info
We may use CSOM for this command passing the following
`${adminUrl}/_vti_bin/client.svc/ProcessQuery`
<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="SharePoint Online PowerShell (16.0.24322.0)"
xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
<Actions>
<ObjectPath Id="46" ObjectPathId="45" />
<Method Name="GetSPOContainerTypes" Id="47" ObjectPathId="45">
<Parameters>
<Parameter Type="Enum">1</Parameter>
</Parameters>
</Method>
</Actions>
<ObjectPaths>
<Constructor Id="45" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" />
</ObjectPaths>
</Request>
@andrewconnell wanna take a look at 👆
¯_(ツ)_/¯
Nope... no insights on this one.
Aren't these quite a lot of default properties @Adam-it? Can we fit that much info on a default-sized terminal screen?
Aren't these quite a lot of default properties @Adam-it? Can we fit that much info on a default-sized terminal screen?
good comment. I reduced to fewer props. @pnp/cli-for-microsoft-365-maintainers any other comment before I open this up?
Looking at the default properties, I suggest we drop classification, and use the first three properties (id, name and owning app id). Let's do this 💪
Since I will be working on the m365 spe containertype get , it makes senses to work on the m365 spe containertype list first. Assign to me.