-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: m365 spe containertype get #5991
Comments
@andrewconnell any feed on 👆 |
Sorry, no insights to share on this one. |
The only remark from my side is that |
Thanks for the comment. Removed. |
No comments. Good remark about getting containers by name. Let's do this. |
Happy to work on it:) |
Thank you! |
Usage
m365 spe containertype get [options]
Description
Get a specific Container Type
Options
-i, --id [id]
id
orname
but not both.-n, --name [name]
id
orname
but not both.Examples
Gets Container Type by id
m365 spe containertype get --id '4ec4aefd-4fa3-0e4a-20c3-6e68389e7138'
Gets Container Type by name
m365 spe containertype get --name 'test container'
Additional Info
We may use CSOM for this command passing the following
The CSOM call does not support filtering by
name
only byGuid
so if we want to add handling also querying the Container Type byname
what we will need to do under the hood is query all Container Types and filter them byname
.Also if more than one Container Type will be found (as the
name
does not have to be unique) CLI (when interactive mode on) should prompt to pick the correct one based onid
The text was updated successfully, but these errors were encountered: