ServiceNetworkingExtensions.GetTrafficControllers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
GetTrafficControllers(ResourceGroupResource)
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)
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
Azure SDK for .NET
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro