Share via


MockableNetworkSubscriptionResource.GetPrivateEndpointsAsync Method

Definition

Gets all private endpoints in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints
  • Operation Id: PrivateEndpoints_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: PrivateEndpointResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.PrivateEndpointResource> GetPrivateEndpointsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetPrivateEndpointsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.PrivateEndpointResource>
override this.GetPrivateEndpointsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.PrivateEndpointResource>
Public Overridable Function GetPrivateEndpointsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PrivateEndpointResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to