DataMaskingPolicyCollection.GetIfExistsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get details for this resource from the service.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}
- Operation Id: DataMaskingPolicies_Get
- Default Api Version: 2024-05-01-preview
- Resource: DataMaskingPolicyResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.DataMaskingPolicyResource>> GetIfExistsAsync(Azure.ResourceManager.Sql.Models.DataMaskingPolicyName dataMaskingPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Azure.ResourceManager.Sql.Models.DataMaskingPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.DataMaskingPolicyResource>>
override this.GetIfExistsAsync : Azure.ResourceManager.Sql.Models.DataMaskingPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.DataMaskingPolicyResource>>
Public Overridable Function GetIfExistsAsync (dataMaskingPolicyName As DataMaskingPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DataMaskingPolicyResource))
Parameters
- dataMaskingPolicyName
- DataMaskingPolicyName
The name of the database for which the data masking policy applies.
- cancellationToken
- CancellationToken
The cancellation token to use.