ServiceNetworkingExtensions.GetTrafficControllers Method

Definition

Overloads

GetTrafficControllers(ResourceGroupResource)

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

GetTrafficControllers(SubscriptionResource, CancellationToken)

List TrafficController resources by subscription ID

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers
  • Operation Id: TrafficControllerInterface_ListBySubscription

GetTrafficControllers(ResourceGroupResource)

Source:
ServiceNetworkingExtensions.cs
Source:
ServiceNetworkingExtensions.cs

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

public static Azure.ResourceManager.ServiceNetworking.TrafficControllerCollection GetTrafficControllers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetTrafficControllers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ServiceNetworking.TrafficControllerCollection
<Extension()>
Public Function GetTrafficControllers (resourceGroupResource As ResourceGroupResource) As TrafficControllerCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of TrafficControllerResources and their operations over a TrafficControllerResource.

Exceptions

resourceGroupResource is null.

Applies to

GetTrafficControllers(SubscriptionResource, CancellationToken)

Source:
ServiceNetworkingExtensions.cs
Source:
ServiceNetworkingExtensions.cs

List TrafficController resources by subscription ID

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to