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

oci.DataSafe.getMaskingPolicyMaskingSchemas

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 Masking Policy Masking Schemas in Oracle Cloud Infrastructure Data Safe service.

    Gets a list of masking schemas present in the specified masking policy and based on the specified query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMaskingPolicyMaskingSchemas = oci.DataSafe.getMaskingPolicyMaskingSchemas({
        maskingPolicyId: testMaskingPolicy.id,
        schemaNames: maskingPolicyMaskingSchemaSchemaName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_masking_policy_masking_schemas = oci.DataSafe.get_masking_policy_masking_schemas(masking_policy_id=test_masking_policy["id"],
        schema_names=masking_policy_masking_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.GetMaskingPolicyMaskingSchemas(ctx, &datasafe.GetMaskingPolicyMaskingSchemasArgs{
    			MaskingPolicyId: testMaskingPolicy.Id,
    			SchemaNames:     maskingPolicyMaskingSchemaSchemaName,
    		}, 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 testMaskingPolicyMaskingSchemas = Oci.DataSafe.GetMaskingPolicyMaskingSchemas.Invoke(new()
        {
            MaskingPolicyId = testMaskingPolicy.Id,
            SchemaNames = maskingPolicyMaskingSchemaSchemaName,
        });
    
    });
    
    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.GetMaskingPolicyMaskingSchemasArgs;
    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 testMaskingPolicyMaskingSchemas = DataSafeFunctions.getMaskingPolicyMaskingSchemas(GetMaskingPolicyMaskingSchemasArgs.builder()
                .maskingPolicyId(testMaskingPolicy.id())
                .schemaNames(maskingPolicyMaskingSchemaSchemaName)
                .build());
    
        }
    }
    
    variables:
      testMaskingPolicyMaskingSchemas:
        fn::invoke:
          Function: oci:DataSafe:getMaskingPolicyMaskingSchemas
          Arguments:
            maskingPolicyId: ${testMaskingPolicy.id}
            schemaNames: ${maskingPolicyMaskingSchemaSchemaName}
    

    Using getMaskingPolicyMaskingSchemas

    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 getMaskingPolicyMaskingSchemas(args: GetMaskingPolicyMaskingSchemasArgs, opts?: InvokeOptions): Promise<GetMaskingPolicyMaskingSchemasResult>
    function getMaskingPolicyMaskingSchemasOutput(args: GetMaskingPolicyMaskingSchemasOutputArgs, opts?: InvokeOptions): Output<GetMaskingPolicyMaskingSchemasResult>
    def get_masking_policy_masking_schemas(filters: Optional[Sequence[_datasafe.GetMaskingPolicyMaskingSchemasFilter]] = None,
                                           masking_policy_id: Optional[str] = None,
                                           schema_names: Optional[Sequence[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetMaskingPolicyMaskingSchemasResult
    def get_masking_policy_masking_schemas_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetMaskingPolicyMaskingSchemasFilterArgs]]]] = None,
                                           masking_policy_id: Optional[pulumi.Input[str]] = None,
                                           schema_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetMaskingPolicyMaskingSchemasResult]
    func GetMaskingPolicyMaskingSchemas(ctx *Context, args *GetMaskingPolicyMaskingSchemasArgs, opts ...InvokeOption) (*GetMaskingPolicyMaskingSchemasResult, error)
    func GetMaskingPolicyMaskingSchemasOutput(ctx *Context, args *GetMaskingPolicyMaskingSchemasOutputArgs, opts ...InvokeOption) GetMaskingPolicyMaskingSchemasResultOutput

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

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

    The following arguments are supported:

    MaskingPolicyId string
    The OCID of the masking policy.
    Filters List<GetMaskingPolicyMaskingSchemasFilter>
    SchemaNames List<string>
    A filter to return only items related to specific schema name.
    MaskingPolicyId string
    The OCID of the masking policy.
    Filters []GetMaskingPolicyMaskingSchemasFilter
    SchemaNames []string
    A filter to return only items related to specific schema name.
    maskingPolicyId String
    The OCID of the masking policy.
    filters List<GetMaskingPolicyMaskingSchemasFilter>
    schemaNames List<String>
    A filter to return only items related to specific schema name.
    maskingPolicyId string
    The OCID of the masking policy.
    filters GetMaskingPolicyMaskingSchemasFilter[]
    schemaNames string[]
    A filter to return only items related to specific schema name.
    masking_policy_id str
    The OCID of the masking policy.
    filters Sequence[datasafe.GetMaskingPolicyMaskingSchemasFilter]
    schema_names Sequence[str]
    A filter to return only items related to specific schema name.
    maskingPolicyId String
    The OCID of the masking policy.
    filters List<Property Map>
    schemaNames List<String>
    A filter to return only items related to specific schema name.

    getMaskingPolicyMaskingSchemas Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MaskingPolicyId string
    MaskingSchemaCollections List<GetMaskingPolicyMaskingSchemasMaskingSchemaCollection>
    The list of masking_schema_collection.
    Filters List<GetMaskingPolicyMaskingSchemasFilter>
    SchemaNames List<string>
    The database schema that contains the masking column.
    Id string
    The provider-assigned unique ID for this managed resource.
    MaskingPolicyId string
    MaskingSchemaCollections []GetMaskingPolicyMaskingSchemasMaskingSchemaCollection
    The list of masking_schema_collection.
    Filters []GetMaskingPolicyMaskingSchemasFilter
    SchemaNames []string
    The database schema that contains the masking column.
    id String
    The provider-assigned unique ID for this managed resource.
    maskingPolicyId String
    maskingSchemaCollections List<GetMaskingPolicyMaskingSchemasMaskingSchemaCollection>
    The list of masking_schema_collection.
    filters List<GetMaskingPolicyMaskingSchemasFilter>
    schemaNames List<String>
    The database schema that contains the masking column.
    id string
    The provider-assigned unique ID for this managed resource.
    maskingPolicyId string
    maskingSchemaCollections GetMaskingPolicyMaskingSchemasMaskingSchemaCollection[]
    The list of masking_schema_collection.
    filters GetMaskingPolicyMaskingSchemasFilter[]
    schemaNames string[]
    The database schema that contains the masking column.
    id str
    The provider-assigned unique ID for this managed resource.
    masking_policy_id str
    masking_schema_collections Sequence[datasafe.GetMaskingPolicyMaskingSchemasMaskingSchemaCollection]
    The list of masking_schema_collection.
    filters Sequence[datasafe.GetMaskingPolicyMaskingSchemasFilter]
    schema_names Sequence[str]
    The database schema that contains the masking column.
    id String
    The provider-assigned unique ID for this managed resource.
    maskingPolicyId String
    maskingSchemaCollections List<Property Map>
    The list of masking_schema_collection.
    filters List<Property Map>
    schemaNames List<String>
    The database schema that contains the masking column.

    Supporting Types

    GetMaskingPolicyMaskingSchemasFilter

    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

    GetMaskingPolicyMaskingSchemasMaskingSchemaCollection

    Items []GetMaskingPolicyMaskingSchemasMaskingSchemaCollectionItem
    An array of masking schema summary objects.
    items GetMaskingPolicyMaskingSchemasMaskingSchemaCollectionItem[]
    An array of masking schema summary objects.
    items List<Property Map>
    An array of masking schema summary objects.

    GetMaskingPolicyMaskingSchemasMaskingSchemaCollectionItem

    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