1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSensitiveDataModelSensitiveSchemas
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DataSafe.getSensitiveDataModelSensitiveSchemas

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Sensitive Data Model Sensitive Schemas in Oracle Cloud Infrastructure Data Safe service.

    Gets a list of sensitive schemas present in the specified sensitive data model based on the specified query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSensitiveDataModelSensitiveSchemas = oci.DataSafe.getSensitiveDataModelSensitiveSchemas({
        sensitiveDataModelId: testSensitiveDataModel.id,
        schemaNames: sensitiveDataModelSensitiveSchemaSchemaName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_sensitive_data_model_sensitive_schemas = oci.DataSafe.get_sensitive_data_model_sensitive_schemas(sensitive_data_model_id=test_sensitive_data_model["id"],
        schema_names=sensitive_data_model_sensitive_schema_schema_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.GetSensitiveDataModelSensitiveSchemas(ctx, &datasafe.GetSensitiveDataModelSensitiveSchemasArgs{
    			SensitiveDataModelId: testSensitiveDataModel.Id,
    			SchemaNames:          sensitiveDataModelSensitiveSchemaSchemaName,
    		}, 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 testSensitiveDataModelSensitiveSchemas = Oci.DataSafe.GetSensitiveDataModelSensitiveSchemas.Invoke(new()
        {
            SensitiveDataModelId = testSensitiveDataModel.Id,
            SchemaNames = sensitiveDataModelSensitiveSchemaSchemaName,
        });
    
    });
    
    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.GetSensitiveDataModelSensitiveSchemasArgs;
    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 testSensitiveDataModelSensitiveSchemas = DataSafeFunctions.getSensitiveDataModelSensitiveSchemas(GetSensitiveDataModelSensitiveSchemasArgs.builder()
                .sensitiveDataModelId(testSensitiveDataModel.id())
                .schemaNames(sensitiveDataModelSensitiveSchemaSchemaName)
                .build());
    
        }
    }
    
    variables:
      testSensitiveDataModelSensitiveSchemas:
        fn::invoke:
          Function: oci:DataSafe:getSensitiveDataModelSensitiveSchemas
          Arguments:
            sensitiveDataModelId: ${testSensitiveDataModel.id}
            schemaNames: ${sensitiveDataModelSensitiveSchemaSchemaName}
    

    Using getSensitiveDataModelSensitiveSchemas

    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 getSensitiveDataModelSensitiveSchemas(args: GetSensitiveDataModelSensitiveSchemasArgs, opts?: InvokeOptions): Promise<GetSensitiveDataModelSensitiveSchemasResult>
    function getSensitiveDataModelSensitiveSchemasOutput(args: GetSensitiveDataModelSensitiveSchemasOutputArgs, opts?: InvokeOptions): Output<GetSensitiveDataModelSensitiveSchemasResult>
    def get_sensitive_data_model_sensitive_schemas(filters: Optional[Sequence[_datasafe.GetSensitiveDataModelSensitiveSchemasFilter]] = None,
                                                   schema_names: Optional[Sequence[str]] = None,
                                                   sensitive_data_model_id: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetSensitiveDataModelSensitiveSchemasResult
    def get_sensitive_data_model_sensitive_schemas_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetSensitiveDataModelSensitiveSchemasFilterArgs]]]] = None,
                                                   schema_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                   sensitive_data_model_id: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetSensitiveDataModelSensitiveSchemasResult]
    func GetSensitiveDataModelSensitiveSchemas(ctx *Context, args *GetSensitiveDataModelSensitiveSchemasArgs, opts ...InvokeOption) (*GetSensitiveDataModelSensitiveSchemasResult, error)
    func GetSensitiveDataModelSensitiveSchemasOutput(ctx *Context, args *GetSensitiveDataModelSensitiveSchemasOutputArgs, opts ...InvokeOption) GetSensitiveDataModelSensitiveSchemasResultOutput

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

    public static class GetSensitiveDataModelSensitiveSchemas 
    {
        public static Task<GetSensitiveDataModelSensitiveSchemasResult> InvokeAsync(GetSensitiveDataModelSensitiveSchemasArgs args, InvokeOptions? opts = null)
        public static Output<GetSensitiveDataModelSensitiveSchemasResult> Invoke(GetSensitiveDataModelSensitiveSchemasInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSensitiveDataModelSensitiveSchemasResult> getSensitiveDataModelSensitiveSchemas(GetSensitiveDataModelSensitiveSchemasArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getSensitiveDataModelSensitiveSchemas:getSensitiveDataModelSensitiveSchemas
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SensitiveDataModelId string
    The OCID of the sensitive data model.
    Filters List<GetSensitiveDataModelSensitiveSchemasFilter>
    SchemaNames List<string>
    A filter to return only items related to specific schema name.
    SensitiveDataModelId string
    The OCID of the sensitive data model.
    Filters []GetSensitiveDataModelSensitiveSchemasFilter
    SchemaNames []string
    A filter to return only items related to specific schema name.
    sensitiveDataModelId String
    The OCID of the sensitive data model.
    filters List<GetSensitiveDataModelSensitiveSchemasFilter>
    schemaNames List<String>
    A filter to return only items related to specific schema name.
    sensitiveDataModelId string
    The OCID of the sensitive data model.
    filters GetSensitiveDataModelSensitiveSchemasFilter[]
    schemaNames string[]
    A filter to return only items related to specific schema name.
    sensitive_data_model_id str
    The OCID of the sensitive data model.
    filters Sequence[datasafe.GetSensitiveDataModelSensitiveSchemasFilter]
    schema_names Sequence[str]
    A filter to return only items related to specific schema name.
    sensitiveDataModelId String
    The OCID of the sensitive data model.
    filters List<Property Map>
    schemaNames List<String>
    A filter to return only items related to specific schema name.

    getSensitiveDataModelSensitiveSchemas Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SensitiveDataModelId string
    SensitiveSchemaCollections List<GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollection>
    The list of sensitive_schema_collection.
    Filters List<GetSensitiveDataModelSensitiveSchemasFilter>
    SchemaNames List<string>
    The database schema that contains the sensitive column.
    Id string
    The provider-assigned unique ID for this managed resource.
    SensitiveDataModelId string
    SensitiveSchemaCollections []GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollection
    The list of sensitive_schema_collection.
    Filters []GetSensitiveDataModelSensitiveSchemasFilter
    SchemaNames []string
    The database schema that contains the sensitive column.
    id String
    The provider-assigned unique ID for this managed resource.
    sensitiveDataModelId String
    sensitiveSchemaCollections List<GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollection>
    The list of sensitive_schema_collection.
    filters List<GetSensitiveDataModelSensitiveSchemasFilter>
    schemaNames List<String>
    The database schema that contains the sensitive column.
    id string
    The provider-assigned unique ID for this managed resource.
    sensitiveDataModelId string
    sensitiveSchemaCollections GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollection[]
    The list of sensitive_schema_collection.
    filters GetSensitiveDataModelSensitiveSchemasFilter[]
    schemaNames string[]
    The database schema that contains the sensitive column.
    id str
    The provider-assigned unique ID for this managed resource.
    sensitive_data_model_id str
    sensitive_schema_collections Sequence[datasafe.GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollection]
    The list of sensitive_schema_collection.
    filters Sequence[datasafe.GetSensitiveDataModelSensitiveSchemasFilter]
    schema_names Sequence[str]
    The database schema that contains the sensitive column.
    id String
    The provider-assigned unique ID for this managed resource.
    sensitiveDataModelId String
    sensitiveSchemaCollections List<Property Map>
    The list of sensitive_schema_collection.
    filters List<Property Map>
    schemaNames List<String>
    The database schema that contains the sensitive column.

    Supporting Types

    GetSensitiveDataModelSensitiveSchemasFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollection

    items List<Property Map>
    An array of sensitive schema summary objects.

    GetSensitiveDataModelSensitiveSchemasSensitiveSchemaCollectionItem

    SchemaName string
    A filter to return only items related to specific schema name.
    SchemaName string
    A filter to return only items related to specific schema name.
    schemaName String
    A filter to return only items related to specific schema name.
    schemaName string
    A filter to return only items related to specific schema name.
    schema_name str
    A filter to return only items related to specific schema name.
    schemaName String
    A filter to return only items related to specific schema name.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi