共用方式為


DataMaskingPolicyResource.CreateOrUpdateDataMaskingRuleAsync Method

Definition

Creates or updates a database data masking rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}
  • Operation Id: DataMaskingRules_CreateOrUpdate
  • Default Api Version: 2014-04-01
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.Models.DataMaskingRule>> CreateOrUpdateDataMaskingRuleAsync (string dataMaskingRuleName, Azure.ResourceManager.Sql.Models.DataMaskingRule dataMaskingRule, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateDataMaskingRuleAsync : string * Azure.ResourceManager.Sql.Models.DataMaskingRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.Models.DataMaskingRule>>
override this.CreateOrUpdateDataMaskingRuleAsync : string * Azure.ResourceManager.Sql.Models.DataMaskingRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.Models.DataMaskingRule>>
Public Overridable Function CreateOrUpdateDataMaskingRuleAsync (dataMaskingRuleName As String, dataMaskingRule As DataMaskingRule, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataMaskingRule))

Parameters

dataMaskingRuleName
String

The name of the data masking rule.

dataMaskingRule
DataMaskingRule

The required parameters for creating or updating a data masking rule.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dataMaskingRuleName or dataMaskingRule is null.

Applies to