Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get list of Products by ApiId #9482

Closed
rmohare opened this issue Jun 21, 2019 · 2 comments
Closed

Get list of Products by ApiId #9482

rmohare opened this issue Jun 21, 2019 · 2 comments
Assignees
Labels
API Management feature-request This issue requires a new behavior in the product in order be resolved.

Comments

@rmohare
Copy link

rmohare commented Jun 21, 2019

Description of the new feature

I would like to see a new feature in Az.ApiManagement to get a list of products by providing an ApiId. Currently the only way to find APIs that are associated to a product is by calling Get-AzApiManagementApi -Context $ApimContext -ProductId $ProductId. This assumes I already know the Product I'm trying to search against. However, if I only have the ApiId, there is no way to search the other direction to find products that API is associated to. This functionality is available in the REST API for APIM (https://docs.microsoft.com/en-us/rest/api/apimanagement/2018-01-01/apiproduct/listbyapis), but not in the Powershell Az module.

Proposed implementation details (optional)

I believe the easiest fix for this would be to add a new parameter of ApiId to the existing Get-AzApiManagementProduct cmdlet. No need to create a new cmdlet for this.
The powershell command would look like similar...
Get-AzApiManagementProduct -Context $ApimContext -ApiId $ApiId

@rmohare rmohare added Azure PS Team feature-request This issue requires a new behavior in the product in order be resolved. labels Jun 21, 2019
@cormacpayne
Copy link
Member

@solankisamir Hey Samir, would you mind taking a look at this feature request?

@solankisamir
Copy link
Member

Resolved with the release of a new cmdlet version
https://github.com/Azure/azure-powershell/releases/tag/v2.6.0-August2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Management feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
Development

No branches or pull requests

3 participants