NetworkFunctionExtensions.GetAzureTrafficCollectors 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
GetAzureTrafficCollectors(ResourceGroupResource) |
Gets a collection of AzureTrafficCollectorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAzureTrafficCollectors() instead. |
GetAzureTrafficCollectors(SubscriptionResource, CancellationToken) |
Return list of Azure Traffic Collectors in a subscription
|
GetAzureTrafficCollectors(ResourceGroupResource)
- Source:
- NetworkFunctionExtensions.cs
Gets a collection of AzureTrafficCollectorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAzureTrafficCollectors() instead.
public static Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorCollection GetAzureTrafficCollectors (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAzureTrafficCollectors : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorCollection
<Extension()>
Public Function GetAzureTrafficCollectors (resourceGroupResource As ResourceGroupResource) As AzureTrafficCollectorCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of AzureTrafficCollectorResources and their operations over a AzureTrafficCollectorResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetAzureTrafficCollectors(SubscriptionResource, CancellationToken)
- Source:
- NetworkFunctionExtensions.cs
Return list of Azure Traffic Collectors in a subscription
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors
- Operation Id: AzureTrafficCollectorsBySubscription_List
public static Azure.Pageable<Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorResource> GetAzureTrafficCollectors (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetAzureTrafficCollectors : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorResource>
<Extension()>
Public Function GetAzureTrafficCollectors (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AzureTrafficCollectorResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of AzureTrafficCollectorResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.