UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

99 lines (98 loc) 3.85 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets the database data masking policy. * * Uses Azure REST API version 2023-08-01. * * Other available API versions: 2014-04-01, 2021-11-01, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview, 2024-11-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDataMaskingPolicy(args: GetDataMaskingPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetDataMaskingPolicyResult>; export interface GetDataMaskingPolicyArgs { /** * The name of the database for which the data masking policy applies. */ dataMaskingPolicyName: string; /** * The name of the database. */ databaseName: 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. */ resourceGroupName: string; /** * The name of the server. */ serverName: string; } /** * A database data masking policy. */ export interface GetDataMaskingPolicyResult { /** * The list of the application principals. This is a legacy parameter and is no longer used. */ readonly applicationPrincipals: string; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The state of the data masking policy. */ readonly dataMaskingState: 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. */ readonly exemptPrincipals?: string; /** * Resource ID. */ readonly id: string; /** * The kind of Data Masking Policy. Metadata, used for Azure portal. */ readonly kind: string; /** * The location of the data masking policy. */ readonly location: string; /** * The masking level. This is a legacy parameter and is no longer used. */ readonly maskingLevel: string; /** * Resource name. */ readonly name: string; /** * Resource type. */ readonly type: string; } /** * Gets the database data masking policy. * * Uses Azure REST API version 2023-08-01. * * Other available API versions: 2014-04-01, 2021-11-01, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview, 2024-11-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDataMaskingPolicyOutput(args: GetDataMaskingPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDataMaskingPolicyResult>; export interface GetDataMaskingPolicyOutputArgs { /** * The name of the database for which the data masking policy applies. */ dataMaskingPolicyName: pulumi.Input<string>; /** * The name of the database. */ databaseName: pulumi.Input<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. */ resourceGroupName: pulumi.Input<string>; /** * The name of the server. */ serverName: pulumi.Input<string>; }