通过 Azure RM powershell 获取 API 产品列表
Get a list of API products via Azure RM powershell
有没有办法通过 Azure RM powershell 模块获取 API 产品列表?
在 Az powershell 模块中,可以通过将 -ApiId 传递给命令 Get-AzApiManagementProduct 来完成。
您可以使用 Get-AzureRmApiManagementProduct
和 New-AzureRmApiManagementContext
来获取 api 产品的列表。
$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "yourresourcegroup" -ServiceName "yourapimname"
Get-AzureRmApiManagementProduct -Context $ApiMgmtContext -ApiId $apiname
有没有办法通过 Azure RM powershell 模块获取 API 产品列表?
在 Az powershell 模块中,可以通过将 -ApiId 传递给命令 Get-AzApiManagementProduct 来完成。
您可以使用 Get-AzureRmApiManagementProduct
和 New-AzureRmApiManagementContext
来获取 api 产品的列表。
$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "yourresourcegroup" -ServiceName "yourapimname"
Get-AzureRmApiManagementProduct -Context $ApiMgmtContext -ApiId $apiname