Sdílet prostřednictvím


ApiManagementExtensions.GetApiManagementServices Method

Definition

Overloads

GetApiManagementServices(ResourceGroupResource)

Gets a collection of ApiManagementServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApiManagementServices() instead.

GetApiManagementServices(SubscriptionResource, CancellationToken)

Lists all API Management services within an Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service
  • Operation Id: ApiManagementService_List
  • Default Api Version: 2023-03-01-preview
  • Resource: ApiManagementServiceResource

GetApiManagementServices(ResourceGroupResource)

Source:
ApiManagementExtensions.cs
Source:
ApiManagementExtensions.cs

Gets a collection of ApiManagementServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApiManagementServices() instead.

public static Azure.ResourceManager.ApiManagement.ApiManagementServiceCollection GetApiManagementServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetApiManagementServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ApiManagement.ApiManagementServiceCollection
<Extension()>
Public Function GetApiManagementServices (resourceGroupResource As ResourceGroupResource) As ApiManagementServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ApiManagementServiceResources and their operations over a ApiManagementServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetApiManagementServices(SubscriptionResource, CancellationToken)

Source:
ApiManagementExtensions.cs
Source:
ApiManagementExtensions.cs

Lists all API Management services within an Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service
  • Operation Id: ApiManagementService_List
  • Default Api Version: 2023-03-01-preview
  • Resource: ApiManagementServiceResource
public static Azure.Pageable<Azure.ResourceManager.ApiManagement.ApiManagementServiceResource> GetApiManagementServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetApiManagementServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.ApiManagementServiceResource>
<Extension()>
Public Function GetApiManagementServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApiManagementServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ApiManagementServiceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to