1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getDataMaskingPolicy
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

azure-native.sql.getDataMaskingPolicy

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

    Gets the database data masking policy. Azure REST API version: 2021-11-01.

    Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview.

    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>
    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]
    func LookupDataMaskingPolicy(ctx *Context, args *LookupDataMaskingPolicyArgs, opts ...InvokeOption) (*LookupDataMaskingPolicyResult, error)
    func LookupDataMaskingPolicyOutput(ctx *Context, args *LookupDataMaskingPolicyOutputArgs, opts ...InvokeOption) LookupDataMaskingPolicyResultOutput

    > 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)
    }
    public static CompletableFuture<GetDataMaskingPolicyResult> getDataMaskingPolicy(GetDataMaskingPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:sql:getDataMaskingPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DataMaskingPolicyName string
    The name of the database for which the data masking policy applies.
    DatabaseName string
    The name of the database.
    ResourceGroupName 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 string
    The name of the server.
    DataMaskingPolicyName string
    The name of the database for which the data masking policy applies.
    DatabaseName string
    The name of the database.
    ResourceGroupName 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 string
    The name of the server.
    dataMaskingPolicyName String
    The name of the database for which the data masking policy applies.
    databaseName String
    The name of the database.
    resourceGroupName 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 String
    The name of the server.
    dataMaskingPolicyName string
    The name of the database for which the data masking policy applies.
    databaseName string
    The name of the database.
    resourceGroupName 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 string
    The name of the server.
    data_masking_policy_name str
    The name of the database for which the data masking policy applies.
    database_name str
    The name of the database.
    resource_group_name 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 str
    The name of the server.
    dataMaskingPolicyName String
    The name of the database for which the data masking policy applies.
    databaseName String
    The name of the database.
    resourceGroupName 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 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 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi