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

Gets an API.

Syntax

Get-AzureRmApiManagementApi
   -ApiId <String>
   -Context <PsApiManagementContext>
   [<CommonParameters>]
Get-AzureRmApiManagementApi
   -Context <PsApiManagementContext>
   -Name <String>
   [<CommonParameters>]
Get-AzureRmApiManagementApi
   -Context <PsApiManagementContext>
   -ProductId <String>
   [<CommonParameters>]

Description

The Get-AzureRmApiManagementApi cmdlet gets one or more Azure API Management APIs.

Examples

Example 1: Get all management APIs

PS C:\>Get-AzureRmApiManagementApi -Context $ApiMgmtContext

This command gets all of the APIs for the specified context.

Example 2: Get a management API by ID

PS C:\>Get-AzureRmApiManagementApi -Context $ApiMgmtContext -ApiId $ApiId

This command gets the API with the specified ID.

Example 3: Get a management API by name

PS C:\>Get-AzureRmApiManagementApi -Context $ApiMgmtContext -Name "EchoApi"

This command gets the API with the specified name.

Required Parameters

-ApiId

Specifies the ID of the API to get.

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

Specifies a PsApiManagementContext object.

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

Specifies the name of the API to get.

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

Specifies the ID of the product for which to get the API.

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

Outputs

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