TrafficManagerExtensions.GetTrafficManagerProfiles Method

Definition

Overloads

GetTrafficManagerProfiles(ResourceGroupResource)

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

GetTrafficManagerProfiles(SubscriptionResource, CancellationToken)

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

GetTrafficManagerProfiles(ResourceGroupResource)

Source:
TrafficManagerExtensions.cs

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

public static Azure.ResourceManager.TrafficManager.TrafficManagerProfileCollection GetTrafficManagerProfiles (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetTrafficManagerProfiles : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.TrafficManager.TrafficManagerProfileCollection
<Extension()>
Public Function GetTrafficManagerProfiles (resourceGroupResource As ResourceGroupResource) As TrafficManagerProfileCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of TrafficManagerProfileResources and their operations over a TrafficManagerProfileResource.

Exceptions

resourceGroupResource is null.

Applies to

GetTrafficManagerProfiles(SubscriptionResource, CancellationToken)

Source:
TrafficManagerExtensions.cs

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.Pageable<Azure.ResourceManager.TrafficManager.TrafficManagerProfileResource> GetTrafficManagerProfiles (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetTrafficManagerProfiles : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.TrafficManager.TrafficManagerProfileResource>
<Extension()>
Public Function GetTrafficManagerProfiles (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of TrafficManagerProfileResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to