1. Packages
  2. Azure Native v1
  3. API Docs
  4. sql
  5. getDataMaskingPolicy
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.sql.getDataMaskingPolicy

Explore with Pulumi AI

These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

Gets a database data masking policy. API Version: 2014-04-01.

Using getDataMaskingPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDataMaskingPolicy(args: GetDataMaskingPolicyArgs, opts?: InvokeOptions): Promise<GetDataMaskingPolicyResult>
function getDataMaskingPolicyOutput(args: GetDataMaskingPolicyOutputArgs, opts?: InvokeOptions): Output<GetDataMaskingPolicyResult>
Copy
def get_data_masking_policy(data_masking_policy_name: Optional[str] = None,
                            database_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            server_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDataMaskingPolicyResult
def get_data_masking_policy_output(data_masking_policy_name: Optional[pulumi.Input[str]] = None,
                            database_name: Optional[pulumi.Input[str]] = None,
                            resource_group_name: Optional[pulumi.Input[str]] = None,
                            server_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDataMaskingPolicyResult]
Copy
func LookupDataMaskingPolicy(ctx *Context, args *LookupDataMaskingPolicyArgs, opts ...InvokeOption) (*LookupDataMaskingPolicyResult, error)
func LookupDataMaskingPolicyOutput(ctx *Context, args *LookupDataMaskingPolicyOutputArgs, opts ...InvokeOption) LookupDataMaskingPolicyResultOutput
Copy

> Note: This function is named LookupDataMaskingPolicy in the Go SDK.

public static class GetDataMaskingPolicy 
{
    public static Task<GetDataMaskingPolicyResult> InvokeAsync(GetDataMaskingPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetDataMaskingPolicyResult> Invoke(GetDataMaskingPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDataMaskingPolicyResult> getDataMaskingPolicy(GetDataMaskingPolicyArgs args, InvokeOptions options)
public static Output<GetDataMaskingPolicyResult> getDataMaskingPolicy(GetDataMaskingPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:sql:getDataMaskingPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DataMaskingPolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database for which the data masking rule applies.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
DataMaskingPolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database for which the data masking rule applies.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
dataMaskingPolicyName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database for which the data masking rule applies.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
dataMaskingPolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database for which the data masking rule applies.
databaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
data_masking_policy_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the database for which the data masking rule applies.
database_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the database.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
server_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the server.
dataMaskingPolicyName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database for which the data masking rule applies.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.

getDataMaskingPolicy Result

The following output properties are available:

ApplicationPrincipals string
The list of the application principals. This is a legacy parameter and is no longer used.
DataMaskingState string
The state of the data masking policy.
Id string
Resource ID.
Kind string
The kind of data masking policy. Metadata, used for Azure portal.
Location string
The location of the data masking policy.
MaskingLevel string
The masking level. This is a legacy parameter and is no longer used.
Name string
Resource name.
Type string
Resource type.
ExemptPrincipals string
The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
ApplicationPrincipals string
The list of the application principals. This is a legacy parameter and is no longer used.
DataMaskingState string
The state of the data masking policy.
Id string
Resource ID.
Kind string
The kind of data masking policy. Metadata, used for Azure portal.
Location string
The location of the data masking policy.
MaskingLevel string
The masking level. This is a legacy parameter and is no longer used.
Name string
Resource name.
Type string
Resource type.
ExemptPrincipals string
The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
applicationPrincipals String
The list of the application principals. This is a legacy parameter and is no longer used.
dataMaskingState String
The state of the data masking policy.
id String
Resource ID.
kind String
The kind of data masking policy. Metadata, used for Azure portal.
location String
The location of the data masking policy.
maskingLevel String
The masking level. This is a legacy parameter and is no longer used.
name String
Resource name.
type String
Resource type.
exemptPrincipals String
The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
applicationPrincipals string
The list of the application principals. This is a legacy parameter and is no longer used.
dataMaskingState string
The state of the data masking policy.
id string
Resource ID.
kind string
The kind of data masking policy. Metadata, used for Azure portal.
location string
The location of the data masking policy.
maskingLevel string
The masking level. This is a legacy parameter and is no longer used.
name string
Resource name.
type string
Resource type.
exemptPrincipals string
The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
application_principals str
The list of the application principals. This is a legacy parameter and is no longer used.
data_masking_state str
The state of the data masking policy.
id str
Resource ID.
kind str
The kind of data masking policy. Metadata, used for Azure portal.
location str
The location of the data masking policy.
masking_level str
The masking level. This is a legacy parameter and is no longer used.
name str
Resource name.
type str
Resource type.
exempt_principals str
The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
applicationPrincipals String
The list of the application principals. This is a legacy parameter and is no longer used.
dataMaskingState String
The state of the data masking policy.
id String
Resource ID.
kind String
The kind of data masking policy. Metadata, used for Azure portal.
location String
The location of the data masking policy.
maskingLevel String
The masking level. This is a legacy parameter and is no longer used.
name String
Resource name.
type String
Resource type.
exemptPrincipals String
The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.

Package Details

Repository
azure-native-v1 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi