Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getSensitiveType
Explore with Pulumi AI
This data source provides details about a specific Sensitive Type resource in Oracle Cloud Infrastructure Data Safe service.
Gets the details of the specified sensitive type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSensitiveType = oci.DataSafe.getSensitiveType({
    sensitiveTypeId: testSensitiveTypeOciDataSafeSensitiveType.id,
});
import pulumi
import pulumi_oci as oci
test_sensitive_type = oci.DataSafe.get_sensitive_type(sensitive_type_id=test_sensitive_type_oci_data_safe_sensitive_type["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetSensitiveType(ctx, &datasafe.GetSensitiveTypeArgs{
			SensitiveTypeId: testSensitiveTypeOciDataSafeSensitiveType.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testSensitiveType = Oci.DataSafe.GetSensitiveType.Invoke(new()
    {
        SensitiveTypeId = testSensitiveTypeOciDataSafeSensitiveType.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetSensitiveTypeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testSensitiveType = DataSafeFunctions.getSensitiveType(GetSensitiveTypeArgs.builder()
            .sensitiveTypeId(testSensitiveTypeOciDataSafeSensitiveType.id())
            .build());
    }
}
variables:
  testSensitiveType:
    fn::invoke:
      function: oci:DataSafe:getSensitiveType
      arguments:
        sensitiveTypeId: ${testSensitiveTypeOciDataSafeSensitiveType.id}
Using getSensitiveType
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 getSensitiveType(args: GetSensitiveTypeArgs, opts?: InvokeOptions): Promise<GetSensitiveTypeResult>
function getSensitiveTypeOutput(args: GetSensitiveTypeOutputArgs, opts?: InvokeOptions): Output<GetSensitiveTypeResult>def get_sensitive_type(sensitive_type_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetSensitiveTypeResult
def get_sensitive_type_output(sensitive_type_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetSensitiveTypeResult]func LookupSensitiveType(ctx *Context, args *LookupSensitiveTypeArgs, opts ...InvokeOption) (*LookupSensitiveTypeResult, error)
func LookupSensitiveTypeOutput(ctx *Context, args *LookupSensitiveTypeOutputArgs, opts ...InvokeOption) LookupSensitiveTypeResultOutput> Note: This function is named LookupSensitiveType in the Go SDK.
public static class GetSensitiveType 
{
    public static Task<GetSensitiveTypeResult> InvokeAsync(GetSensitiveTypeArgs args, InvokeOptions? opts = null)
    public static Output<GetSensitiveTypeResult> Invoke(GetSensitiveTypeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSensitiveTypeResult> getSensitiveType(GetSensitiveTypeArgs args, InvokeOptions options)
public static Output<GetSensitiveTypeResult> getSensitiveType(GetSensitiveTypeArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getSensitiveType:getSensitiveType
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SensitiveType stringId 
- The OCID of the sensitive type.
- SensitiveType stringId 
- The OCID of the sensitive type.
- sensitiveType StringId 
- The OCID of the sensitive type.
- sensitiveType stringId 
- The OCID of the sensitive type.
- sensitive_type_ strid 
- The OCID of the sensitive type.
- sensitiveType StringId 
- The OCID of the sensitive type.
getSensitiveType Result
The following output properties are available:
- CommentPattern string
- A regular expression to be used by data discovery for matching column comments.
- CompartmentId string
- The OCID of the compartment that contains the sensitive type.
- DataPattern string
- A regular expression to be used by data discovery for matching column data values.
- DefaultMasking stringFormat Id 
- The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- The description of the sensitive type.
- DisplayName string
- The display name of the sensitive type.
- EntityType string
- The entity type. It can be either a sensitive type with regular expressions or a sensitive category used for grouping similar sensitive types.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- Id string
- The OCID of the sensitive type.
- IsCommon bool
- Specifies whether the sensitive type is common. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- NamePattern string
- A regular expression to be used by data discovery for matching column names.
- ParentCategory stringId 
- The OCID of the parent sensitive category.
- SearchType string
- The search type indicating how the column name, comment and data patterns should be used by data discovery. Learn more.
- SensitiveType stringId 
- ShortName string
- The short name of the sensitive type.
- Source string
- Specifies whether the sensitive type is user-defined or predefined.
- State string
- The current state of the sensitive type.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the sensitive type was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the sensitive type was last updated, in the format defined by RFC3339.
- CommentPattern string
- A regular expression to be used by data discovery for matching column comments.
- CompartmentId string
- The OCID of the compartment that contains the sensitive type.
- DataPattern string
- A regular expression to be used by data discovery for matching column data values.
- DefaultMasking stringFormat Id 
- The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- The description of the sensitive type.
- DisplayName string
- The display name of the sensitive type.
- EntityType string
- The entity type. It can be either a sensitive type with regular expressions or a sensitive category used for grouping similar sensitive types.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- Id string
- The OCID of the sensitive type.
- IsCommon bool
- Specifies whether the sensitive type is common. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- NamePattern string
- A regular expression to be used by data discovery for matching column names.
- ParentCategory stringId 
- The OCID of the parent sensitive category.
- SearchType string
- The search type indicating how the column name, comment and data patterns should be used by data discovery. Learn more.
- SensitiveType stringId 
- ShortName string
- The short name of the sensitive type.
- Source string
- Specifies whether the sensitive type is user-defined or predefined.
- State string
- The current state of the sensitive type.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the sensitive type was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the sensitive type was last updated, in the format defined by RFC3339.
- commentPattern String
- A regular expression to be used by data discovery for matching column comments.
- compartmentId String
- The OCID of the compartment that contains the sensitive type.
- dataPattern String
- A regular expression to be used by data discovery for matching column data values.
- defaultMasking StringFormat Id 
- The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- The description of the sensitive type.
- displayName String
- The display name of the sensitive type.
- entityType String
- The entity type. It can be either a sensitive type with regular expressions or a sensitive category used for grouping similar sensitive types.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id String
- The OCID of the sensitive type.
- isCommon Boolean
- Specifies whether the sensitive type is common. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- namePattern String
- A regular expression to be used by data discovery for matching column names.
- parentCategory StringId 
- The OCID of the parent sensitive category.
- searchType String
- The search type indicating how the column name, comment and data patterns should be used by data discovery. Learn more.
- sensitiveType StringId 
- shortName String
- The short name of the sensitive type.
- source String
- Specifies whether the sensitive type is user-defined or predefined.
- state String
- The current state of the sensitive type.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the sensitive type was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the sensitive type was last updated, in the format defined by RFC3339.
- commentPattern string
- A regular expression to be used by data discovery for matching column comments.
- compartmentId string
- The OCID of the compartment that contains the sensitive type.
- dataPattern string
- A regular expression to be used by data discovery for matching column data values.
- defaultMasking stringFormat Id 
- The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description string
- The description of the sensitive type.
- displayName string
- The display name of the sensitive type.
- entityType string
- The entity type. It can be either a sensitive type with regular expressions or a sensitive category used for grouping similar sensitive types.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id string
- The OCID of the sensitive type.
- isCommon boolean
- Specifies whether the sensitive type is common. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- namePattern string
- A regular expression to be used by data discovery for matching column names.
- parentCategory stringId 
- The OCID of the parent sensitive category.
- searchType string
- The search type indicating how the column name, comment and data patterns should be used by data discovery. Learn more.
- sensitiveType stringId 
- shortName string
- The short name of the sensitive type.
- source string
- Specifies whether the sensitive type is user-defined or predefined.
- state string
- The current state of the sensitive type.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The date and time the sensitive type was created, in the format defined by RFC3339.
- timeUpdated string
- The date and time the sensitive type was last updated, in the format defined by RFC3339.
- comment_pattern str
- A regular expression to be used by data discovery for matching column comments.
- compartment_id str
- The OCID of the compartment that contains the sensitive type.
- data_pattern str
- A regular expression to be used by data discovery for matching column data values.
- default_masking_ strformat_ id 
- The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description str
- The description of the sensitive type.
- display_name str
- The display name of the sensitive type.
- entity_type str
- The entity type. It can be either a sensitive type with regular expressions or a sensitive category used for grouping similar sensitive types.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id str
- The OCID of the sensitive type.
- is_common bool
- Specifies whether the sensitive type is common. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- name_pattern str
- A regular expression to be used by data discovery for matching column names.
- parent_category_ strid 
- The OCID of the parent sensitive category.
- search_type str
- The search type indicating how the column name, comment and data patterns should be used by data discovery. Learn more.
- sensitive_type_ strid 
- short_name str
- The short name of the sensitive type.
- source str
- Specifies whether the sensitive type is user-defined or predefined.
- state str
- The current state of the sensitive type.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The date and time the sensitive type was created, in the format defined by RFC3339.
- time_updated str
- The date and time the sensitive type was last updated, in the format defined by RFC3339.
- commentPattern String
- A regular expression to be used by data discovery for matching column comments.
- compartmentId String
- The OCID of the compartment that contains the sensitive type.
- dataPattern String
- A regular expression to be used by data discovery for matching column data values.
- defaultMasking StringFormat Id 
- The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- The description of the sensitive type.
- displayName String
- The display name of the sensitive type.
- entityType String
- The entity type. It can be either a sensitive type with regular expressions or a sensitive category used for grouping similar sensitive types.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- id String
- The OCID of the sensitive type.
- isCommon Boolean
- Specifies whether the sensitive type is common. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- namePattern String
- A regular expression to be used by data discovery for matching column names.
- parentCategory StringId 
- The OCID of the parent sensitive category.
- searchType String
- The search type indicating how the column name, comment and data patterns should be used by data discovery. Learn more.
- sensitiveType StringId 
- shortName String
- The short name of the sensitive type.
- source String
- Specifies whether the sensitive type is user-defined or predefined.
- state String
- The current state of the sensitive type.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the sensitive type was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the sensitive type was last updated, in the format defined by RFC3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.