Freigeben über


DdosProtectionPlanCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Vorgang IdDdosProtectionPlans_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.DdosProtectionPlanResource>> GetIfExistsAsync (string ddosProtectionPlanName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.DdosProtectionPlanResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.DdosProtectionPlanResource>>
Public Overridable Function GetIfExistsAsync (ddosProtectionPlanName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DdosProtectionPlanResource))

Parameter

ddosProtectionPlanName
String

Der Name des DDoS-Schutzplans.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

ddosProtectionPlanName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

ddosProtectionPlanName ist NULL.

Gilt für: