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

New command: m365 spe containertype list

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

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>

Adam-it avatar Apr 23 '24 23:04 Adam-it

@andrewconnell wanna take a look at 👆

Adam-it avatar Apr 23 '24 23:04 Adam-it

¯_(ツ)_/¯

Nope... no insights on this one.

andrewconnell avatar Apr 25 '24 13:04 andrewconnell

Aren't these quite a lot of default properties @Adam-it? Can we fit that much info on a default-sized terminal screen?

milanholemans avatar Apr 25 '24 20:04 milanholemans

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?

Adam-it avatar Apr 25 '24 23:04 Adam-it

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 💪

waldekmastykarz avatar Apr 26 '24 06:04 waldekmastykarz

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.

reshmee011 avatar May 09 '24 05:05 reshmee011