Add-​Azure​Rm​Api​Management​Api​To​Product

Adds an API to a product.

Syntax

Add-AzureRmApiManagementApiToProduct
   -ApiId <String>
   -Context <PsApiManagementContext>
   [-PassThru]
   -ProductId <String>
   [<CommonParameters>]

Description

The Add-AzureRmApiManagementApiToProduct cmdlet adds an Azure API Management API to a product.

Examples

Example 1: Add an API to a product

PS C:\>Add-AzureRmApiManagementApiToProduct -Context $ApiMgmtContext -ProductId "0123456789" -ApiId "0001"

This command adds the specified API to the specified product.

Required Parameters

-ApiId

Specifies the ID of an API to add to a product.

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
-ProductId

Specifies the ID of the product to which to add the API.

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

Optional Parameters

-PassThru

passthru

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

Outputs

Boolean