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)
public static Output<GetCompatibleFormatsForSensitiveTypeResult> getCompatibleFormatsForSensitiveType(GetCompatibleFormatsForSensitiveTypeArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getCompatibleFormatsForSensitiveType:getCompatibleFormatsForSensitiveType
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- AccessLevel 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.
- CompartmentId 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.
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- AccessLevel 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.
- CompartmentId 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.
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- accessLevel 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.
- compartmentId 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.
- compartmentId string
- A filter to return only resources that match the specified compartment OCID.
- accessLevel 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.
- compartmentId 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.
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- accessLevel 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.
- compartmentId 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:
- CompartmentId string
- FormatsFor 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.
- AccessLevel string
- CompartmentId boolIn Subtree 
- CompartmentId string
- FormatsFor []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.
- AccessLevel string
- CompartmentId boolIn Subtree 
- compartmentId String
- formatsFor 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.
- accessLevel String
- compartmentId BooleanIn Subtree 
- compartmentId string
- formatsFor 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.
- accessLevel string
- compartmentId booleanIn Subtree 
- compartment_id str
- formats_for_ Sequence[Getsensitive_ types 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 
- compartmentId String
- formatsFor 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.
- accessLevel String
- compartmentId BooleanIn Subtree 
Supporting Types
GetCompatibleFormatsForSensitiveTypeFormatsForSensitiveType         
- MaskingFormats List<GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format> 
- An array of the library masking formats compatible with the sensitive type.
- SensitiveType stringId 
- The OCID of the sensitive type.
- MaskingFormats []GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format 
- An array of the library masking formats compatible with the sensitive type.
- SensitiveType stringId 
- The OCID of the sensitive type.
- maskingFormats List<GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format> 
- An array of the library masking formats compatible with the sensitive type.
- sensitiveType StringId 
- The OCID of the sensitive type.
- maskingFormats GetCompatible Formats For Sensitive Type Formats For Sensitive Type Masking Format[] 
- An array of the library masking formats compatible with the sensitive type.
- sensitiveType stringId 
- The OCID of the sensitive type.
- masking_formats Sequence[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_ strid 
- The OCID of the sensitive type.
- maskingFormats List<Property Map>
- An array of the library masking formats compatible with the sensitive type.
- sensitiveType 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 ociTerraform Provider.