Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataSafe.getMaskingPolicyMaskingSchemas
Explore with Pulumi AI
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/v2/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:
- Masking
Policy stringId - The OCID of the masking policy.
- Filters
List<Get
Masking Policy Masking Schemas Filter> - Schema
Names List<string> - A filter to return only items related to specific schema name.
- Masking
Policy stringId - The OCID of the masking policy.
- Filters
[]Get
Masking Policy Masking Schemas Filter - Schema
Names []string - A filter to return only items related to specific schema name.
- masking
Policy StringId - The OCID of the masking policy.
- filters
List<Get
Masking Policy Masking Schemas Filter> - schema
Names List<String> - A filter to return only items related to specific schema name.
- masking
Policy stringId - The OCID of the masking policy.
- filters
Get
Masking Policy Masking Schemas Filter[] - schema
Names string[] - A filter to return only items related to specific schema name.
- masking_
policy_ strid - The OCID of the masking policy.
- filters
Sequence[datasafe.
Get Masking Policy Masking Schemas Filter] - schema_
names Sequence[str] - A filter to return only items related to specific schema name.
- masking
Policy StringId - The OCID of the masking policy.
- filters List<Property Map>
- schema
Names 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.
- Masking
Policy stringId - Masking
Schema List<GetCollections Masking Policy Masking Schemas Masking Schema Collection> - The list of masking_schema_collection.
- Filters
List<Get
Masking Policy Masking Schemas Filter> - Schema
Names List<string> - The database schema that contains the masking column.
- Id string
- The provider-assigned unique ID for this managed resource.
- Masking
Policy stringId - Masking
Schema []GetCollections Masking Policy Masking Schemas Masking Schema Collection - The list of masking_schema_collection.
- Filters
[]Get
Masking Policy Masking Schemas Filter - Schema
Names []string - The database schema that contains the masking column.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Policy StringId - masking
Schema List<GetCollections Masking Policy Masking Schemas Masking Schema Collection> - The list of masking_schema_collection.
- filters
List<Get
Masking Policy Masking Schemas Filter> - schema
Names List<String> - The database schema that contains the masking column.
- id string
- The provider-assigned unique ID for this managed resource.
- masking
Policy stringId - masking
Schema GetCollections Masking Policy Masking Schemas Masking Schema Collection[] - The list of masking_schema_collection.
- filters
Get
Masking Policy Masking Schemas Filter[] - schema
Names string[] - The database schema that contains the masking column.
- id str
- The provider-assigned unique ID for this managed resource.
- masking_
policy_ strid - masking_
schema_ Sequence[datasafe.collections Get Masking Policy Masking Schemas Masking Schema Collection] - The list of masking_schema_collection.
- filters
Sequence[datasafe.
Get Masking Policy Masking Schemas Filter] - schema_
names Sequence[str] - The database schema that contains the masking column.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Policy StringId - masking
Schema List<Property Map>Collections - The list of masking_schema_collection.
- filters List<Property Map>
- schema
Names List<String> - The database schema that contains the masking column.
Supporting Types
GetMaskingPolicyMaskingSchemasFilter
GetMaskingPolicyMaskingSchemasMaskingSchemaCollection
- Items
List<Get
Masking Policy Masking Schemas Masking Schema Collection Item> - An array of masking schema summary objects.
- Items
[]Get
Masking Policy Masking Schemas Masking Schema Collection Item - An array of masking schema summary objects.
- items
List<Get
Masking Policy Masking Schemas Masking Schema Collection Item> - An array of masking schema summary objects.
- items
Get
Masking Policy Masking Schemas Masking Schema Collection Item[] - An array of masking schema summary objects.
- items
Sequence[datasafe.
Get Masking Policy Masking Schemas Masking Schema Collection Item] - An array of masking schema summary objects.
- items List<Property Map>
- An array of masking schema summary objects.
GetMaskingPolicyMaskingSchemasMaskingSchemaCollectionItem
- Schema
Name string - A filter to return only items related to specific schema name.
- Schema
Name string - A filter to return only items related to specific schema name.
- schema
Name String - A filter to return only items related to specific schema name.
- schema
Name 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.
- schema
Name 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.