FrontDoorSecurityPolicyCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}
  • Operation Id: FrontDoorSecurityPolicies_Get
  • Default Api Version: 2024-02-01
  • Resource: FrontDoorSecurityPolicyResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource> GetIfExists (string securityPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>
Public Overridable Function GetIfExists (securityPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of FrontDoorSecurityPolicyResource)

Parameters

securityPolicyName
String

Name of the security policy under the profile.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

securityPolicyName is an empty string, and was expected to be non-empty.

securityPolicyName is null.

Applies to