Share via


NetworkExtensions.GetDdosProtectionPlans Method

Definition

Overloads

GetDdosProtectionPlans(ResourceGroupResource)

Gets a collection of DdosProtectionPlanResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDdosProtectionPlans() instead.

GetDdosProtectionPlans(SubscriptionResource, CancellationToken)

Gets all DDoS protection plans in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans
  • Operation Id: DdosProtectionPlans_List
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource

GetDdosProtectionPlans(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets a collection of DdosProtectionPlanResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDdosProtectionPlans() instead.

public static Azure.ResourceManager.Network.DdosProtectionPlanCollection GetDdosProtectionPlans (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDdosProtectionPlans : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.DdosProtectionPlanCollection
<Extension()>
Public Function GetDdosProtectionPlans (resourceGroupResource As ResourceGroupResource) As DdosProtectionPlanCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DdosProtectionPlanResources and their operations over a DdosProtectionPlanResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDdosProtectionPlans(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all DDoS protection plans in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans
  • Operation Id: DdosProtectionPlans_List
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
public static Azure.Pageable<Azure.ResourceManager.Network.DdosProtectionPlanResource> GetDdosProtectionPlans (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDdosProtectionPlans : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.DdosProtectionPlanResource>
<Extension()>
Public Function GetDdosProtectionPlans (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DdosProtectionPlanResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DdosProtectionPlanResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to