Udostępnij za pośrednictwem


NetworkExtensions.GetPrivateLinkServicesAsync Method

Definition

Gets all private link service in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices
  • Operation Id: PrivateLinkServices_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: PrivateLinkServiceResource
public static Azure.AsyncPageable<Azure.ResourceManager.Network.PrivateLinkServiceResource> GetPrivateLinkServicesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPrivateLinkServicesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.PrivateLinkServiceResource>
<Extension()>
Public Function GetPrivateLinkServicesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PrivateLinkServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of PrivateLinkServiceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to