Udostępnij za pośrednictwem


TrafficManagerExtensions.GetTrafficManagerProfilesAsync Method

Definition

Lists all Traffic Manager profiles within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles
  • Operation Id: Profiles_ListBySubscription
  • Default Api Version: 2022-04-01
  • Resource: TrafficManagerProfileResource
public static Azure.AsyncPageable<Azure.ResourceManager.TrafficManager.TrafficManagerProfileResource> GetTrafficManagerProfilesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetTrafficManagerProfilesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.TrafficManager.TrafficManagerProfileResource>
<Extension()>
Public Function GetTrafficManagerProfilesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of TrafficManagerProfileResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to