Get-​Azure​Rm​Api​Management​Group

Gets all or specific API management groups.

Syntax

Get-AzureRmApiManagementGroup
   -Context <PsApiManagementContext>
   [-GroupId <String>]
   [-Name <String>]
   [<CommonParameters>]
Get-AzureRmApiManagementGroup
   -Context <PsApiManagementContext>
   [-Name <String>]
   [-ProductId <String>]
   [<CommonParameters>]
Get-AzureRmApiManagementGroup
   -Context <PsApiManagementContext>
   [-Name <String>]
   [-UserId <String>]
   [<CommonParameters>]

Description

The Get-AzureRmApiManagementGroup cmdlet gets all or specific API management groups.

Examples

Example 1: Get all groups

PS C:\>Get-AzureRmApiManagementGroup -Context $APImContext

This command gets all groups.

Example 2: Get a group by ID

PS C:\>Get-AzureRmApiManagementGroup -Context $APImContext -GroupId "0123456789"

This command gets the group ID named 0123456789.

Example 3: Get a group by name

PS C:\>Get-AzureRmApiManagementGroup -Context $APImContext -Name "Group0002"

This command gets the group named Group0002.

Example 4: Get all user groups

PS C:\>Get-AzureRmApiManagementGroup -Context $APImContext -UserId "0123456789"

This command gets all user groups with the user ID named 0123456789.

Required Parameters

-Context

Specifies an instance of PsApiManagementContext.

Type:PsApiManagementContext
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-GroupId

Specifies the group ID. If specified, the cmdlet attempts to find the group by the identifier.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the management group.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ProductId

Identifier of existing product. If specified will return all groups the product assigned to. This parameter is optional.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-UserId

Specifies the identifier of existing product. If specified the cmdlet will return all groups the product assigned to.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

IList<Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup>