Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getMaskingPolicyMaskingObjects
Explore with Pulumi AI
This data source provides the list of Masking Policy Masking Objects in Oracle Cloud Infrastructure Data Safe service.
Gets a list of masking objects 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 testMaskingPolicyMaskingObjects = oci.DataSafe.getMaskingPolicyMaskingObjects({
    maskingPolicyId: testMaskingPolicy.id,
    objects: maskingPolicyMaskingObjectObject,
    objectTypes: maskingPolicyMaskingObjectObjectType,
    schemaNames: maskingPolicyMaskingObjectSchemaName,
});
import pulumi
import pulumi_oci as oci
test_masking_policy_masking_objects = oci.DataSafe.get_masking_policy_masking_objects(masking_policy_id=test_masking_policy["id"],
    objects=masking_policy_masking_object_object,
    object_types=masking_policy_masking_object_object_type,
    schema_names=masking_policy_masking_object_schema_name)
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.GetMaskingPolicyMaskingObjects(ctx, &datasafe.GetMaskingPolicyMaskingObjectsArgs{
			MaskingPolicyId: testMaskingPolicy.Id,
			Objects:         maskingPolicyMaskingObjectObject,
			ObjectTypes:     maskingPolicyMaskingObjectObjectType,
			SchemaNames:     maskingPolicyMaskingObjectSchemaName,
		}, 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 testMaskingPolicyMaskingObjects = Oci.DataSafe.GetMaskingPolicyMaskingObjects.Invoke(new()
    {
        MaskingPolicyId = testMaskingPolicy.Id,
        Objects = maskingPolicyMaskingObjectObject,
        ObjectTypes = maskingPolicyMaskingObjectObjectType,
        SchemaNames = maskingPolicyMaskingObjectSchemaName,
    });
});
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.GetMaskingPolicyMaskingObjectsArgs;
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 testMaskingPolicyMaskingObjects = DataSafeFunctions.getMaskingPolicyMaskingObjects(GetMaskingPolicyMaskingObjectsArgs.builder()
            .maskingPolicyId(testMaskingPolicy.id())
            .objects(maskingPolicyMaskingObjectObject)
            .objectTypes(maskingPolicyMaskingObjectObjectType)
            .schemaNames(maskingPolicyMaskingObjectSchemaName)
            .build());
    }
}
variables:
  testMaskingPolicyMaskingObjects:
    fn::invoke:
      function: oci:DataSafe:getMaskingPolicyMaskingObjects
      arguments:
        maskingPolicyId: ${testMaskingPolicy.id}
        objects: ${maskingPolicyMaskingObjectObject}
        objectTypes: ${maskingPolicyMaskingObjectObjectType}
        schemaNames: ${maskingPolicyMaskingObjectSchemaName}
Using getMaskingPolicyMaskingObjects
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 getMaskingPolicyMaskingObjects(args: GetMaskingPolicyMaskingObjectsArgs, opts?: InvokeOptions): Promise<GetMaskingPolicyMaskingObjectsResult>
function getMaskingPolicyMaskingObjectsOutput(args: GetMaskingPolicyMaskingObjectsOutputArgs, opts?: InvokeOptions): Output<GetMaskingPolicyMaskingObjectsResult>def get_masking_policy_masking_objects(filters: Optional[Sequence[GetMaskingPolicyMaskingObjectsFilter]] = None,
                                       masking_policy_id: Optional[str] = None,
                                       object_types: Optional[Sequence[str]] = None,
                                       objects: Optional[Sequence[str]] = None,
                                       schema_names: Optional[Sequence[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetMaskingPolicyMaskingObjectsResult
def get_masking_policy_masking_objects_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetMaskingPolicyMaskingObjectsFilterArgs]]]] = None,
                                       masking_policy_id: Optional[pulumi.Input[str]] = None,
                                       object_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       objects: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       schema_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetMaskingPolicyMaskingObjectsResult]func GetMaskingPolicyMaskingObjects(ctx *Context, args *GetMaskingPolicyMaskingObjectsArgs, opts ...InvokeOption) (*GetMaskingPolicyMaskingObjectsResult, error)
func GetMaskingPolicyMaskingObjectsOutput(ctx *Context, args *GetMaskingPolicyMaskingObjectsOutputArgs, opts ...InvokeOption) GetMaskingPolicyMaskingObjectsResultOutput> Note: This function is named GetMaskingPolicyMaskingObjects in the Go SDK.
public static class GetMaskingPolicyMaskingObjects 
{
    public static Task<GetMaskingPolicyMaskingObjectsResult> InvokeAsync(GetMaskingPolicyMaskingObjectsArgs args, InvokeOptions? opts = null)
    public static Output<GetMaskingPolicyMaskingObjectsResult> Invoke(GetMaskingPolicyMaskingObjectsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMaskingPolicyMaskingObjectsResult> getMaskingPolicyMaskingObjects(GetMaskingPolicyMaskingObjectsArgs args, InvokeOptions options)
public static Output<GetMaskingPolicyMaskingObjectsResult> getMaskingPolicyMaskingObjects(GetMaskingPolicyMaskingObjectsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getMaskingPolicyMaskingObjects:getMaskingPolicyMaskingObjects
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MaskingPolicy stringId 
- The OCID of the masking policy.
- Filters
List<GetMasking Policy Masking Objects Filter> 
- ObjectTypes List<string>
- A filter to return only items related to a specific object type.
- Objects List<string>
- A filter to return only items related to a specific object name.
- SchemaNames List<string>
- A filter to return only items related to specific schema name.
- MaskingPolicy stringId 
- The OCID of the masking policy.
- Filters
[]GetMasking Policy Masking Objects Filter 
- ObjectTypes []string
- A filter to return only items related to a specific object type.
- Objects []string
- A filter to return only items related to a specific object name.
- SchemaNames []string
- A filter to return only items related to specific schema name.
- maskingPolicy StringId 
- The OCID of the masking policy.
- filters
List<GetMasking Policy Masking Objects Filter> 
- objectTypes List<String>
- A filter to return only items related to a specific object type.
- objects List<String>
- A filter to return only items related to a specific object name.
- schemaNames List<String>
- A filter to return only items related to specific schema name.
- maskingPolicy stringId 
- The OCID of the masking policy.
- filters
GetMasking Policy Masking Objects Filter[] 
- objectTypes string[]
- A filter to return only items related to a specific object type.
- objects string[]
- A filter to return only items related to a specific object name.
- schemaNames string[]
- A filter to return only items related to specific schema name.
- masking_policy_ strid 
- The OCID of the masking policy.
- filters
Sequence[GetMasking Policy Masking Objects Filter] 
- object_types Sequence[str]
- A filter to return only items related to a specific object type.
- objects Sequence[str]
- A filter to return only items related to a specific object name.
- schema_names Sequence[str]
- A filter to return only items related to specific schema name.
- maskingPolicy StringId 
- The OCID of the masking policy.
- filters List<Property Map>
- objectTypes List<String>
- A filter to return only items related to a specific object type.
- objects List<String>
- A filter to return only items related to a specific object name.
- schemaNames List<String>
- A filter to return only items related to specific schema name.
getMaskingPolicyMaskingObjects Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- MaskingObject List<GetCollections Masking Policy Masking Objects Masking Object Collection> 
- The list of masking_object_collection.
- MaskingPolicy stringId 
- Filters
List<GetMasking Policy Masking Objects Filter> 
- ObjectTypes List<string>
- The type of the database object that contains the masking column.
- Objects List<string>
- The database object that contains the masking column.
- SchemaNames List<string>
- The database schema that contains the masking column.
- Id string
- The provider-assigned unique ID for this managed resource.
- MaskingObject []GetCollections Masking Policy Masking Objects Masking Object Collection 
- The list of masking_object_collection.
- MaskingPolicy stringId 
- Filters
[]GetMasking Policy Masking Objects Filter 
- ObjectTypes []string
- The type of the database object that contains the masking column.
- Objects []string
- The database object that contains the masking column.
- SchemaNames []string
- The database schema that contains the masking column.
- id String
- The provider-assigned unique ID for this managed resource.
- maskingObject List<GetCollections Masking Policy Masking Objects Masking Object Collection> 
- The list of masking_object_collection.
- maskingPolicy StringId 
- filters
List<GetMasking Policy Masking Objects Filter> 
- objectTypes List<String>
- The type of the database object that contains the masking column.
- objects List<String>
- The database object that contains the masking column.
- schemaNames List<String>
- The database schema that contains the masking column.
- id string
- The provider-assigned unique ID for this managed resource.
- maskingObject GetCollections Masking Policy Masking Objects Masking Object Collection[] 
- The list of masking_object_collection.
- maskingPolicy stringId 
- filters
GetMasking Policy Masking Objects Filter[] 
- objectTypes string[]
- The type of the database object that contains the masking column.
- objects string[]
- The database object that contains the masking column.
- schemaNames string[]
- The database schema that contains the masking column.
- id str
- The provider-assigned unique ID for this managed resource.
- masking_object_ Sequence[Getcollections Masking Policy Masking Objects Masking Object Collection] 
- The list of masking_object_collection.
- masking_policy_ strid 
- filters
Sequence[GetMasking Policy Masking Objects Filter] 
- object_types Sequence[str]
- The type of the database object that contains the masking column.
- objects Sequence[str]
- The database object that contains the masking column.
- schema_names Sequence[str]
- The database schema that contains the masking column.
- id String
- The provider-assigned unique ID for this managed resource.
- maskingObject List<Property Map>Collections 
- The list of masking_object_collection.
- maskingPolicy StringId 
- filters List<Property Map>
- objectTypes List<String>
- The type of the database object that contains the masking column.
- objects List<String>
- The database object that contains the masking column.
- schemaNames List<String>
- The database schema that contains the masking column.
Supporting Types
GetMaskingPolicyMaskingObjectsFilter     
GetMaskingPolicyMaskingObjectsMaskingObjectCollection       
- Items
List<GetMasking Policy Masking Objects Masking Object Collection Item> 
- An array of masking object summary objects.
- Items
[]GetMasking Policy Masking Objects Masking Object Collection Item 
- An array of masking object summary objects.
- items
List<GetMasking Policy Masking Objects Masking Object Collection Item> 
- An array of masking object summary objects.
- items
GetMasking Policy Masking Objects Masking Object Collection Item[] 
- An array of masking object summary objects.
- items
Sequence[GetMasking Policy Masking Objects Masking Object Collection Item] 
- An array of masking object summary objects.
- items List<Property Map>
- An array of masking object summary objects.
GetMaskingPolicyMaskingObjectsMaskingObjectCollectionItem        
- Object string
- A filter to return only items related to a specific object name.
- ObjectType string
- A filter to return only items related to a specific object type.
- SchemaName string
- A filter to return only items related to specific schema name.
- Object string
- A filter to return only items related to a specific object name.
- ObjectType string
- A filter to return only items related to a specific object type.
- SchemaName string
- A filter to return only items related to specific schema name.
- object String
- A filter to return only items related to a specific object name.
- objectType String
- A filter to return only items related to a specific object type.
- schemaName String
- A filter to return only items related to specific schema name.
- object string
- A filter to return only items related to a specific object name.
- objectType string
- A filter to return only items related to a specific object type.
- schemaName string
- A filter to return only items related to specific schema name.
- object str
- A filter to return only items related to a specific object name.
- object_type str
- A filter to return only items related to a specific object type.
- schema_name str
- A filter to return only items related to specific schema name.
- object String
- A filter to return only items related to a specific object name.
- objectType String
- A filter to return only items related to a specific object type.
- 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 ociTerraform Provider.