Share via


ApiProductOperationsExtensions.ListByApisAsync Method

Definition

Lists all Products, which the API is part of.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ProductContract>> ListByApisAsync (this Microsoft.Azure.Management.ApiManagement.IApiProductOperations operations, string resourceGroupName, string serviceName, string apiId, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ApiManagement.Models.ProductContract> odataQuery = default, System.Threading.CancellationToken cancellationToken = default);
static member ListByApisAsync : Microsoft.Azure.Management.ApiManagement.IApiProductOperations * string * string * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ApiManagement.Models.ProductContract> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ProductContract>>
<Extension()>
Public Function ListByApisAsync (operations As IApiProductOperations, resourceGroupName As String, serviceName As String, apiId As String, Optional odataQuery As ODataQuery(Of ProductContract) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of ProductContract))

Parameters

operations
IApiProductOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

apiId
String

API identifier. Must be unique in the current API Management service instance.

odataQuery
ODataQuery<ProductContract>

OData parameters to apply to the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to