共用方式為


AccessPolicyAssignmentCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}
  • Operation Id: AccessPolicyAssignment_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: AccessPolicyAssignmentResource
public virtual Azure.NullableResponse<Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentResource> GetIfExists (string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentResource>
Public Overridable Function GetIfExists (accessPolicyAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of AccessPolicyAssignmentResource)

Parameters

accessPolicyAssignmentName
String

The name of the Redis Enterprise database access policy assignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

accessPolicyAssignmentName is null.

Applies to