oci.DataSafe.getCompatibleFormatsForSensitiveType
Explore with Pulumi AI
This data source provides details about a specific Compatible Formats For Sensitive Type resource in Oracle Cloud Infrastructure Data Safe service.
Gets a list of library masking formats compatible with the existing sensitive types. For each sensitive type, it returns the assigned default masking format as well as the other library masking formats that have the sensitiveTypeIds attribute containing the OCID of the sensitive type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCompatibleFormatsForSensitiveType = oci.DataSafe.getCompatibleFormatsForSensitiveType({
compartmentId: compartmentId,
accessLevel: compatibleFormatsForSensitiveTypeAccessLevel,
compartmentIdInSubtree: compatibleFormatsForSensitiveTypeCompartmentIdInSubtree,
});
import pulumi
import pulumi_oci as oci
test_compatible_formats_for_sensitive_type = oci.DataSafe.get_compatible_formats_for_sensitive_type(compartment_id=compartment_id,
access_level=compatible_formats_for_sensitive_type_access_level,
compartment_id_in_subtree=compatible_formats_for_sensitive_type_compartment_id_in_subtree)
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.GetCompatibleFormatsForSensitiveType(ctx, &datasafe.GetCompatibleFormatsForSensitiveTypeArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(compatibleFormatsForSensitiveTypeAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(compatibleFormatsForSensitiveTypeCompartmentIdInSubtree),
}, 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 testCompatibleFormatsForSensitiveType = Oci.DataSafe.GetCompatibleFormatsForSensitiveType.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = compatibleFormatsForSensitiveTypeAccessLevel,
CompartmentIdInSubtree = compatibleFormatsForSensitiveTypeCompartmentIdInSubtree,
});
});
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.GetCompatibleFormatsForSensitiveTypeArgs;
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 testCompatibleFormatsForSensitiveType = DataSafeFunctions.getCompatibleFormatsForSensitiveType(GetCompatibleFormatsForSensitiveTypeArgs.builder()
.compartmentId(compartmentId)
.accessLevel(compatibleFormatsForSensitiveTypeAccessLevel)
.compartmentIdInSubtree(compatibleFormatsForSensitiveTypeCompartmentIdInSubtree)
.build());
}
}
variables:
testCompatibleFormatsForSensitiveType:
fn::invoke:
Function: oci:DataSafe:getCompatibleFormatsForSensitiveType
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${compatibleFormatsForSensitiveTypeAccessLevel}
compartmentIdInSubtree: ${compatibleFormatsForSensitiveTypeCompartmentIdInSubtree}
Using getCompatibleFormatsForSensitiveType
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 getCompatibleFormatsForSensitiveType(args: GetCompatibleFormatsForSensitiveTypeArgs, opts?: InvokeOptions): Promise<GetCompatibleFormatsForSensitiveTypeResult>
function getCompatibleFormatsForSensitiveTypeOutput(args: GetCompatibleFormatsForSensitiveTypeOutputArgs, opts?: InvokeOptions): Output<GetCompatibleFormatsForSensitiveTypeResult>
def get_compatible_formats_for_sensitive_type(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetCompatibleFormatsForSensitiveTypeResult
def get_compatible_formats_for_sensitive_type_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCompatibleFormatsForSensitiveTypeResult]
func GetCompatibleFormatsForSensitiveType(ctx *Context, args *GetCompatibleFormatsForSensitiveTypeArgs, opts ...InvokeOption) (*GetCompatibleFormatsForSensitiveTypeResult, error)
func GetCompatibleFormatsForSensitiveTypeOutput(ctx *Context, args *GetCompatibleFormatsForSensitiveTypeOutputArgs, opts ...InvokeOption) GetCompatibleFormatsForSensitiveTypeResultOutput
> Note: This function is named GetCompatibleFormatsForSensitiveType
in the Go SDK.
public static class GetCompatibleFormatsForSensitiveType
{
public static Task<GetCompatibleFormatsForSensitiveTypeResult> InvokeAsync(GetCompatibleFormatsForSensitiveTypeArgs args, InvokeOptions? opts = null)
public static Output<GetCompatibleFormatsForSensitiveTypeResult> Invoke(GetCompatibleFormatsForSensitiveTypeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCompatibleFormatsForSensitiveTypeResult> getCompatibleFormatsForSensitiveType(GetCompatibleFormatsForSensitiveTypeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getCompatibleFormatsForSensitiveType:getCompatibleFormatsForSensitiveType
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id booleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- access_
level str - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment_
id_ boolin_ subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
getCompatibleFormatsForSensitiveType Result
The following output properties are available:
- Compartment
Id string - Formats
For List<GetSensitive Types Compatible Formats For Sensitive Type Formats For Sensitive Type> - An array of library masking formats compatible with the existing sensitive types.
- Id string
- The provider-assigned unique ID for this managed resource.
- Access
Level string - Compartment
Id boolIn Subtree
- Compartment
Id string - Formats
For []GetSensitive Types Compatible Formats For Sensitive Type Formats For Sensitive Type - An array of library masking formats compatible with the existing sensitive types.
- Id string
- The provider-assigned unique ID for this managed resource.
- Access
Level string - Compartment
Id boolIn Subtree
- compartment
Id String - formats
For List<GetSensitive Types Compatible Formats For Sensitive Type Formats For Sensitive Type> - An array of library masking formats compatible with the existing sensitive types.
- id String
- The provider-assigned unique ID for this managed resource.
- access
Level String - compartment
Id BooleanIn Subtree
- compartment
Id string - formats
For GetSensitive Types Compatible Formats For Sensitive Type Formats For Sensitive Type[] - An array of library masking formats compatible with the existing sensitive types.
- id string
- The provider-assigned unique ID for this managed resource.
- access
Level string - compartment
Id booleanIn Subtree
- compartment_
id str - formats_
for_ Sequence[datasafe.sensitive_ types Get Compatible Formats For Sensitive Type Formats For Sensitive Type] - An array of library masking formats compatible with the existing sensitive types.
- id str
- The provider-assigned unique ID for this managed resource.
- access_
level str - compartment_
id_ boolin_ subtree
- compartment
Id String - formats
For List<Property Map>Sensitive Types - An array of library masking formats compatible with the existing sensitive types.
- id String
- The provider-assigned unique ID for this managed resource.
- access
Level String - compartment
Id BooleanIn Subtree
Supporting Types
GetCompatibleFormatsForSensitiveTypeFormatsForSensitiveType
- Masking
Formats List<GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format> - An array of the library masking formats compatible with the sensitive type.
- Sensitive
Type stringId - The OCID of the sensitive type.
- Masking
Formats []GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format - An array of the library masking formats compatible with the sensitive type.
- Sensitive
Type stringId - The OCID of the sensitive type.
- masking
Formats List<GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format> - An array of the library masking formats compatible with the sensitive type.
- sensitive
Type StringId - The OCID of the sensitive type.
- masking
Formats GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format[] - An array of the library masking formats compatible with the sensitive type.
- sensitive
Type stringId - The OCID of the sensitive type.
- masking_
formats Sequence[datasafe.Get Compatible Formats For Sensitive Type Formats For Sensitive Type Masking Format] - An array of the library masking formats compatible with the sensitive type.
- sensitive_
type_ strid - The OCID of the sensitive type.
- masking
Formats List<Property Map> - An array of the library masking formats compatible with the sensitive type.
- sensitive
Type StringId - The OCID of the sensitive type.
GetCompatibleFormatsForSensitiveTypeFormatsForSensitiveTypeMaskingFormat
- Description string
- The description of the masking format.
- Id string
- The OCID of the masking format.
- Name string
- The name of the masking format.
- Description string
- The description of the masking format.
- Id string
- The OCID of the masking format.
- Name string
- The name of the masking format.
- description String
- The description of the masking format.
- id String
- The OCID of the masking format.
- name String
- The name of the masking format.
- description string
- The description of the masking format.
- id string
- The OCID of the masking format.
- name string
- The name of the masking format.
- description str
- The description of the masking format.
- id str
- The OCID of the masking format.
- name str
- The name of the masking format.
- description String
- The description of the masking format.
- id String
- The OCID of the masking format.
- name String
- The name of the masking format.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.