MockableNetworkSubscriptionResource.GetDdosCustomPoliciesAsync Method

Definition

Gets all the DDoS custom policies in a subscription.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosCustomPolicies.
  • Operation Id. : DdosCustomPolicies_ListAll.
  • Default Api Version. : 2025-07-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.DdosCustomPolicyResource> GetDdosCustomPoliciesAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetDdosCustomPoliciesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.DdosCustomPolicyResource>
override this.GetDdosCustomPoliciesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.DdosCustomPolicyResource>
Public Overridable Function GetDdosCustomPoliciesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DdosCustomPolicyResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to