1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getSensitivityLabel
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.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.sql.getSensitivityLabel

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.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Gets the sensitivity label of a given column 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 getSensitivityLabel

    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 getSensitivityLabel(args: GetSensitivityLabelArgs, opts?: InvokeOptions): Promise<GetSensitivityLabelResult>
    function getSensitivityLabelOutput(args: GetSensitivityLabelOutputArgs, opts?: InvokeOptions): Output<GetSensitivityLabelResult>
    def get_sensitivity_label(column_name: Optional[str] = None,
                              database_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              schema_name: Optional[str] = None,
                              sensitivity_label_source: Optional[str] = None,
                              server_name: Optional[str] = None,
                              table_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSensitivityLabelResult
    def get_sensitivity_label_output(column_name: Optional[pulumi.Input[str]] = None,
                              database_name: Optional[pulumi.Input[str]] = None,
                              resource_group_name: Optional[pulumi.Input[str]] = None,
                              schema_name: Optional[pulumi.Input[str]] = None,
                              sensitivity_label_source: Optional[pulumi.Input[str]] = None,
                              server_name: Optional[pulumi.Input[str]] = None,
                              table_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSensitivityLabelResult]
    func LookupSensitivityLabel(ctx *Context, args *LookupSensitivityLabelArgs, opts ...InvokeOption) (*LookupSensitivityLabelResult, error)
    func LookupSensitivityLabelOutput(ctx *Context, args *LookupSensitivityLabelOutputArgs, opts ...InvokeOption) LookupSensitivityLabelResultOutput

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

    public static class GetSensitivityLabel 
    {
        public static Task<GetSensitivityLabelResult> InvokeAsync(GetSensitivityLabelArgs args, InvokeOptions? opts = null)
        public static Output<GetSensitivityLabelResult> Invoke(GetSensitivityLabelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSensitivityLabelResult> getSensitivityLabel(GetSensitivityLabelArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:sql:getSensitivityLabel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ColumnName string
    The name of the column.
    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.
    SchemaName string
    The name of the schema.
    SensitivityLabelSource string
    The source of the sensitivity label.
    ServerName string
    The name of the server.
    TableName string
    The name of the table.
    ColumnName string
    The name of the column.
    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.
    SchemaName string
    The name of the schema.
    SensitivityLabelSource string
    The source of the sensitivity label.
    ServerName string
    The name of the server.
    TableName string
    The name of the table.
    columnName String
    The name of the column.
    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.
    schemaName String
    The name of the schema.
    sensitivityLabelSource String
    The source of the sensitivity label.
    serverName String
    The name of the server.
    tableName String
    The name of the table.
    columnName string
    The name of the column.
    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.
    schemaName string
    The name of the schema.
    sensitivityLabelSource string
    The source of the sensitivity label.
    serverName string
    The name of the server.
    tableName string
    The name of the table.
    column_name str
    The name of the column.
    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.
    schema_name str
    The name of the schema.
    sensitivity_label_source str
    The source of the sensitivity label.
    server_name str
    The name of the server.
    table_name str
    The name of the table.
    columnName String
    The name of the column.
    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.
    schemaName String
    The name of the schema.
    sensitivityLabelSource String
    The source of the sensitivity label.
    serverName String
    The name of the server.
    tableName String
    The name of the table.

    getSensitivityLabel Result

    The following output properties are available:

    ColumnName string
    The column name.
    Id string
    Resource ID.
    IsDisabled bool
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    ManagedBy string
    Resource that manages the sensitivity label.
    Name string
    Resource name.
    SchemaName string
    The schema name.
    TableName string
    The table name.
    Type string
    Resource type.
    InformationType string
    The information type.
    InformationTypeId string
    The information type ID.
    LabelId string
    The label ID.
    LabelName string
    The label name.
    Rank string
    ColumnName string
    The column name.
    Id string
    Resource ID.
    IsDisabled bool
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    ManagedBy string
    Resource that manages the sensitivity label.
    Name string
    Resource name.
    SchemaName string
    The schema name.
    TableName string
    The table name.
    Type string
    Resource type.
    InformationType string
    The information type.
    InformationTypeId string
    The information type ID.
    LabelId string
    The label ID.
    LabelName string
    The label name.
    Rank string
    columnName String
    The column name.
    id String
    Resource ID.
    isDisabled Boolean
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managedBy String
    Resource that manages the sensitivity label.
    name String
    Resource name.
    schemaName String
    The schema name.
    tableName String
    The table name.
    type String
    Resource type.
    informationType String
    The information type.
    informationTypeId String
    The information type ID.
    labelId String
    The label ID.
    labelName String
    The label name.
    rank String
    columnName string
    The column name.
    id string
    Resource ID.
    isDisabled boolean
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managedBy string
    Resource that manages the sensitivity label.
    name string
    Resource name.
    schemaName string
    The schema name.
    tableName string
    The table name.
    type string
    Resource type.
    informationType string
    The information type.
    informationTypeId string
    The information type ID.
    labelId string
    The label ID.
    labelName string
    The label name.
    rank string
    column_name str
    The column name.
    id str
    Resource ID.
    is_disabled bool
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managed_by str
    Resource that manages the sensitivity label.
    name str
    Resource name.
    schema_name str
    The schema name.
    table_name str
    The table name.
    type str
    Resource type.
    information_type str
    The information type.
    information_type_id str
    The information type ID.
    label_id str
    The label ID.
    label_name str
    The label name.
    rank str
    columnName String
    The column name.
    id String
    Resource ID.
    isDisabled Boolean
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managedBy String
    Resource that manages the sensitivity label.
    name String
    Resource name.
    schemaName String
    The schema name.
    tableName String
    The table name.
    type String
    Resource type.
    informationType String
    The information type.
    informationTypeId String
    The information type ID.
    labelId String
    The label ID.
    labelName String
    The label name.
    rank String

    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.47.1 published on Monday, Jun 24, 2024 by Pulumi