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 containertype list #5989

Open Adam-it opened 2 months ago

Adam-it commented 2 months ago

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

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 commented 2 months ago

@andrewconnell wanna take a look at 👆

andrewconnell commented 2 months ago

¯_(ツ)_/¯

Nope... no insights on this one.

milanholemans commented 2 months ago

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

Adam-it commented 2 months ago

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?

waldekmastykarz commented 2 months ago

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 💪

reshmee011 commented 1 month ago

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.