NetworkExtensions.GetFirewallPolicies 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
GetFirewallPolicies(ResourceGroupResource) |
Gets a collection of FirewallPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetFirewallPolicies() instead. |
GetFirewallPolicies(SubscriptionResource, CancellationToken) |
Gets all the Firewall Policies in a subscription.
|
GetFirewallPolicies(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of FirewallPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetFirewallPolicies() instead.
public static Azure.ResourceManager.Network.FirewallPolicyCollection GetFirewallPolicies (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetFirewallPolicies : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.FirewallPolicyCollection
<Extension()>
Public Function GetFirewallPolicies (resourceGroupResource As ResourceGroupResource) As FirewallPolicyCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of FirewallPolicyResources and their operations over a FirewallPolicyResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetFirewallPolicies(SubscriptionResource, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets all the Firewall Policies in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies
- Operation Id: FirewallPolicies_ListAll
- Default Api Version: 2024-03-01
- Resource: FirewallPolicyResource
public static Azure.Pageable<Azure.ResourceManager.Network.FirewallPolicyResource> GetFirewallPolicies (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetFirewallPolicies : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.FirewallPolicyResource>
<Extension()>
Public Function GetFirewallPolicies (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of FirewallPolicyResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of FirewallPolicyResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.