ManagedNetworkFabricExtensions.GetNetworkFabricRoutePolicies 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
GetNetworkFabricRoutePolicies(ResourceGroupResource) |
Gets a collection of NetworkFabricRoutePolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkFabricRoutePolicies() instead. |
GetNetworkFabricRoutePolicies(SubscriptionResource, CancellationToken) |
Implements RoutePolicies list by subscription GET method.
|
GetNetworkFabricRoutePolicies(ResourceGroupResource)
Gets a collection of NetworkFabricRoutePolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkFabricRoutePolicies() instead.
public static Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricRoutePolicyCollection GetNetworkFabricRoutePolicies (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkFabricRoutePolicies : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricRoutePolicyCollection
<Extension()>
Public Function GetNetworkFabricRoutePolicies (resourceGroupResource As ResourceGroupResource) As NetworkFabricRoutePolicyCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of NetworkFabricRoutePolicyResources and their operations over a NetworkFabricRoutePolicyResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetNetworkFabricRoutePolicies(SubscriptionResource, CancellationToken)
Implements RoutePolicies list by subscription GET method.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/routePolicies
- Operation Id: RoutePolicies_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricRoutePolicyResource> GetNetworkFabricRoutePolicies (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkFabricRoutePolicies : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ManagedNetworkFabric.NetworkFabricRoutePolicyResource>
<Extension()>
Public Function GetNetworkFabricRoutePolicies (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkFabricRoutePolicyResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of NetworkFabricRoutePolicyResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET