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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk