DataMaskingPolicyResource.CreateOrUpdateDataMaskingRuleAsync 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET