Partager via


ProfileResource.GetFrontDoorSecurityPolicyAsync Méthode

Définition

Obtient une stratégie de sécurité existante dans un profil.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}
  • IdFrontDoorSecurityPolicies_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>> GetFrontDoorSecurityPolicyAsync (string securityPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFrontDoorSecurityPolicyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>>
override this.GetFrontDoorSecurityPolicyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>>
Public Overridable Function GetFrontDoorSecurityPolicyAsync (securityPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FrontDoorSecurityPolicyResource))

Paramètres

securityPolicyName
String

Nom de la stratégie de sécurité sous le profil.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

securityPolicyName est une chaîne vide et devait être non vide.

securityPolicyName a la valeur null.

S’applique à