Udostępnij za pośrednictwem


ApiCenterExtensions.GetApiCenterServices Method

Definition

Overloads

GetApiCenterServices(ResourceGroupResource)

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

GetApiCenterServices(SubscriptionResource, CancellationToken)

Lists services within an Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ApiCenter/services
  • Operation Id: Services_ListBySubscription

GetApiCenterServices(ResourceGroupResource)

Source:
ApiCenterExtensions.cs

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

public static Azure.ResourceManager.ApiCenter.ApiCenterServiceCollection GetApiCenterServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetApiCenterServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ApiCenter.ApiCenterServiceCollection
<Extension()>
Public Function GetApiCenterServices (resourceGroupResource As ResourceGroupResource) As ApiCenterServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ApiCenterServiceResources and their operations over a ApiCenterServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetApiCenterServices(SubscriptionResource, CancellationToken)

Source:
ApiCenterExtensions.cs

Lists services within an Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ApiCenter/services
  • Operation Id: Services_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource> GetApiCenterServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetApiCenterServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource>
<Extension()>
Public Function GetApiCenterServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApiCenterServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to