| external help file | sharepointonline.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/sharepoint-online/get-spocontainer |
| applicable | SharePoint Online |
| title | Get-SPOContainer |
| schema | 2.0.0 |
| author | ShreyasSar26 |
| ms.author | shsaravanan |
| ms.reviewer |
Returns one or more containers in a SharePoint Embedded application.
Get-SPOContainer -Identity <ContainerId> [<CommonParameters>]Get-SPOContainer -OwningApplicationId <OwningApplicationId> [<CommonParameters>]Get-SPOContainer -OwningApplicationId <OwningApplicationId> [-Paged] [<CommonParameters>]Get-SPOContainer -OwningApplicationId <OwningApplicationId> [-Paged] [-PagingToken <TokenString>] [<CommonParameters>]Get-SPOContainer -OwningApplicationId <OwningApplicationId> [-SortByStorage <Ascending | Descending>] [<CommonParameters>]Get-SPOContainer -OwningApplicationId <OwningApplicationId> [-SortByStorage <Ascending | Descending>] [-Paged] [<CommonParameters>]Get-SPOContainer -OwningApplicationId <OwningApplicationId> [-SortByStorage <Ascending | Descending>] [-Paged] [-PagingToken <TokenString>] [<CommonParameters>]The Get-SPOContainer cmdlet retrieves and returns the details of an individual container when paired with Identity parameter, where the container ID needs to be mentioned. The cmdlet returns the list of containers belonging to a SharePoint Embedded application when paired with the OwningApplicationId parameter.
You must be a SharePoint Embedded Administrator to run this cmdlet.
For permissions and the most current information about Windows PowerShell for SharePoint Embedded Containers, see the documentation at Intro to SharePoint Embedded Containers Management Shell.
Note
Containers in the Recycle Bin will not be retrieved by using the Get-SPOContainer cmdlet.
The OwningApplicationId for Microsoft Loop is a187e399-0c36-4b98-8f04-1edc167a0996.
The OwningApplicationId for Microsoft Designer is 5e2795e3-ce8c-4cfb-b302-35fe5cd01597.
Get-SPOContainer -Identity b66f5b2eExample 1 returns the detailed properties of the Container with associated Container ID b66f5b2e.
Get-SPOContainer -OwningApplicationId 423poi45 | ft Example 2 returns a tabular list of Containers created under the SharePoint Embedded application with the OwningApplicationId of 423poi45.
Get-SPOContainer -OwningApplicationId 423poi45 -Paged | ftExample 3 uses the -Paged command to retrieve a paging token.
Get-SPOContainer -OwningApplicationId 423poi45 -Paged -PagingToken <zacad> | ft Example 4 uses the -PagingToken parameter along with the -Paged parameter to view more containers that were not displayed in Example 3.
Get-SPOContainer -OwningApplicationId 423poi45 -SortByStorage AscendingExample 5 displays the containers belonging to the application, sorted in ascending order of storage.
Get-SPOContainer -OwningApplicationId 423poi45 -SortByStorage Ascending -PagedExample 6 displays a paged view of the the containers belonging to the application, sorted in ascending order of storage.
Get-SPOContainer -OwningApplicationId 423poi45-as -SortByStorage Ascending -Paged -PagingToken <zacad>Example 7 displays the next list of paged view of containers belonging to the application, sorted in ascending order of storage.
This parameter specifies the ID of the SharePoint Embedded application. Use the Get-SPOApplication command to retrieve the OwningApplicationId.
Type: String
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUse this parameter to specify the Container ID.
Type: String
Parameter Sets: ParamSet4, ParamSet5
Aliases:
Applicable: SharePoint Online
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis parameter can be used when there are more than 200 Containers in a given SharePoint Embedded application. Using -Paged will provide a paging token that will display the next 200 Containers.
Type: String
Parameter Sets: ParamSet2, ParamSet3
Aliases:
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUse this parameter to provide the paging token provided to view the remaining Containers as shown in Example 4. If there are no more Containers to display, the cmdlet output will return the message End of containers view. Otherwise, use the given paging token to retrieve the next batch of up to 200 Containers.
Type: String
Parameter Sets: ParamSet2, ParamSet3
Aliases:
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis parameter can be used when you need to see the list of containers, sorted by storage.
Type: String
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False