Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DataSafe.getMaskingReports
Explore with Pulumi AI
This data source provides the list of Masking Reports in Oracle Cloud Infrastructure Data Safe service.
Gets a list of masking reports based on the specified query parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaskingReports = oci.DataSafe.getMaskingReports({
compartmentId: compartmentId,
accessLevel: maskingReportAccessLevel,
compartmentIdInSubtree: maskingReportCompartmentIdInSubtree,
maskingPolicyId: testMaskingPolicy.id,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_masking_reports = oci.DataSafe.get_masking_reports(compartment_id=compartment_id,
access_level=masking_report_access_level,
compartment_id_in_subtree=masking_report_compartment_id_in_subtree,
masking_policy_id=test_masking_policy["id"],
target_id=test_target["id"])
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.GetMaskingReports(ctx, &datasafe.GetMaskingReportsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(maskingReportAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(maskingReportCompartmentIdInSubtree),
MaskingPolicyId: pulumi.StringRef(testMaskingPolicy.Id),
TargetId: pulumi.StringRef(testTarget.Id),
}, 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 testMaskingReports = Oci.DataSafe.GetMaskingReports.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = maskingReportAccessLevel,
CompartmentIdInSubtree = maskingReportCompartmentIdInSubtree,
MaskingPolicyId = testMaskingPolicy.Id,
TargetId = testTarget.Id,
});
});
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.GetMaskingReportsArgs;
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 testMaskingReports = DataSafeFunctions.getMaskingReports(GetMaskingReportsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(maskingReportAccessLevel)
.compartmentIdInSubtree(maskingReportCompartmentIdInSubtree)
.maskingPolicyId(testMaskingPolicy.id())
.targetId(testTarget.id())
.build());
}
}
variables:
testMaskingReports:
fn::invoke:
Function: oci:DataSafe:getMaskingReports
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${maskingReportAccessLevel}
compartmentIdInSubtree: ${maskingReportCompartmentIdInSubtree}
maskingPolicyId: ${testMaskingPolicy.id}
targetId: ${testTarget.id}
Using getMaskingReports
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 getMaskingReports(args: GetMaskingReportsArgs, opts?: InvokeOptions): Promise<GetMaskingReportsResult>
function getMaskingReportsOutput(args: GetMaskingReportsOutputArgs, opts?: InvokeOptions): Output<GetMaskingReportsResult>
def get_masking_reports(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[_datasafe.GetMaskingReportsFilter]] = None,
masking_policy_id: Optional[str] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMaskingReportsResult
def get_masking_reports_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetMaskingReportsFilterArgs]]]] = None,
masking_policy_id: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMaskingReportsResult]
func GetMaskingReports(ctx *Context, args *GetMaskingReportsArgs, opts ...InvokeOption) (*GetMaskingReportsResult, error)
func GetMaskingReportsOutput(ctx *Context, args *GetMaskingReportsOutputArgs, opts ...InvokeOption) GetMaskingReportsResultOutput
> Note: This function is named GetMaskingReports
in the Go SDK.
public static class GetMaskingReports
{
public static Task<GetMaskingReportsResult> InvokeAsync(GetMaskingReportsArgs args, InvokeOptions? opts = null)
public static Output<GetMaskingReportsResult> Invoke(GetMaskingReportsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMaskingReportsResult> getMaskingReports(GetMaskingReportsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getMaskingReports:getMaskingReports
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.
- Filters
List<Get
Masking Reports Filter> - Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- 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.
- Filters
[]Get
Masking Reports Filter - Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- 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.
- filters
List<Get
Masking Reports Filter> - masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
- 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.
- filters
Get
Masking Reports Filter[] - masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- target
Id string - A filter to return only items related to a specific target OCID.
- 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.
- filters
Sequence[datasafe.
Get Masking Reports Filter] - masking_
policy_ strid - A filter to return only the resources that match the specified masking policy OCID.
- target_
id str - A filter to return only items related to a specific target OCID.
- 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.
- filters List<Property Map>
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
getMaskingReports Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the masking report.
- Id string
- The provider-assigned unique ID for this managed resource.
- Masking
Report List<GetCollections Masking Reports Masking Report Collection> - The list of masking_report_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Filters
List<Get
Masking Reports Filter> - Masking
Policy stringId - The OCID of the masking policy used.
- Target
Id string - The OCID of the target database masked.
- Compartment
Id string - The OCID of the compartment that contains the masking report.
- Id string
- The provider-assigned unique ID for this managed resource.
- Masking
Report []GetCollections Masking Reports Masking Report Collection - The list of masking_report_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Filters
[]Get
Masking Reports Filter - Masking
Policy stringId - The OCID of the masking policy used.
- Target
Id string - The OCID of the target database masked.
- compartment
Id String - The OCID of the compartment that contains the masking report.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Report List<GetCollections Masking Reports Masking Report Collection> - The list of masking_report_collection.
- access
Level String - compartment
Id BooleanIn Subtree - filters
List<Get
Masking Reports Filter> - masking
Policy StringId - The OCID of the masking policy used.
- target
Id String - The OCID of the target database masked.
- compartment
Id string - The OCID of the compartment that contains the masking report.
- id string
- The provider-assigned unique ID for this managed resource.
- masking
Report GetCollections Masking Reports Masking Report Collection[] - The list of masking_report_collection.
- access
Level string - compartment
Id booleanIn Subtree - filters
Get
Masking Reports Filter[] - masking
Policy stringId - The OCID of the masking policy used.
- target
Id string - The OCID of the target database masked.
- compartment_
id str - The OCID of the compartment that contains the masking report.
- id str
- The provider-assigned unique ID for this managed resource.
- masking_
report_ Sequence[datasafe.collections Get Masking Reports Masking Report Collection] - The list of masking_report_collection.
- access_
level str - compartment_
id_ boolin_ subtree - filters
Sequence[datasafe.
Get Masking Reports Filter] - masking_
policy_ strid - The OCID of the masking policy used.
- target_
id str - The OCID of the target database masked.
- compartment
Id String - The OCID of the compartment that contains the masking report.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Report List<Property Map>Collections - The list of masking_report_collection.
- access
Level String - compartment
Id BooleanIn Subtree - filters List<Property Map>
- masking
Policy StringId - The OCID of the masking policy used.
- target
Id String - The OCID of the target database masked.
Supporting Types
GetMaskingReportsFilter
GetMaskingReportsMaskingReportCollection
GetMaskingReportsMaskingReportCollectionItem
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Id string
- The OCID of the masking report.
- Is
Drop boolTemp Tables Enabled - Indicates if the temporary tables created during the masking operation were dropped after masking.
- Is
Redo boolLogging Enabled - Indicates if redo logging was enabled during the masking operation.
- Is
Refresh boolStats Enabled - Indicates if statistics gathering was enabled during the masking operation.
- Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- Masking
Work stringRequest Id - The OCID of the masking work request that resulted in this masking report.
- Parallel
Degree string - Indicates if parallel execution was enabled during the masking operation.
- Recompile string
- Indicates how invalid objects were recompiled post the masking operation.
- State string
- The current state of the masking report.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created string - The date and time the masking report was created, in the format defined by RFC3339.
- Time
Masking stringFinished - The date and time data masking finished, in the format defined by RFC3339
- Time
Masking stringStarted - The date and time data masking started, in the format defined by RFC3339
- Total
Masked stringColumns - The total number of masked columns.
- Total
Masked stringObjects - The total number of unique objects (tables and editioning views) that contain the masked columns.
- Total
Masked stringSchemas - The total number of unique schemas that contain the masked columns.
- Total
Masked stringSensitive Types - The total number of unique sensitive types associated with the masked columns.
- Total
Masked stringValues - The total number of masked values.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Id string
- The OCID of the masking report.
- Is
Drop boolTemp Tables Enabled - Indicates if the temporary tables created during the masking operation were dropped after masking.
- Is
Redo boolLogging Enabled - Indicates if redo logging was enabled during the masking operation.
- Is
Refresh boolStats Enabled - Indicates if statistics gathering was enabled during the masking operation.
- Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- Masking
Work stringRequest Id - The OCID of the masking work request that resulted in this masking report.
- Parallel
Degree string - Indicates if parallel execution was enabled during the masking operation.
- Recompile string
- Indicates how invalid objects were recompiled post the masking operation.
- State string
- The current state of the masking report.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created string - The date and time the masking report was created, in the format defined by RFC3339.
- Time
Masking stringFinished - The date and time data masking finished, in the format defined by RFC3339
- Time
Masking stringStarted - The date and time data masking started, in the format defined by RFC3339
- Total
Masked stringColumns - The total number of masked columns.
- Total
Masked stringObjects - The total number of unique objects (tables and editioning views) that contain the masked columns.
- Total
Masked stringSchemas - The total number of unique schemas that contain the masked columns.
- Total
Masked stringSensitive Types - The total number of unique sensitive types associated with the masked columns.
- Total
Masked stringValues - The total number of masked values.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- id String
- The OCID of the masking report.
- is
Drop BooleanTemp Tables Enabled - Indicates if the temporary tables created during the masking operation were dropped after masking.
- is
Redo BooleanLogging Enabled - Indicates if redo logging was enabled during the masking operation.
- is
Refresh BooleanStats Enabled - Indicates if statistics gathering was enabled during the masking operation.
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- masking
Work StringRequest Id - The OCID of the masking work request that resulted in this masking report.
- parallel
Degree String - Indicates if parallel execution was enabled during the masking operation.
- recompile String
- Indicates how invalid objects were recompiled post the masking operation.
- state String
- The current state of the masking report.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created String - The date and time the masking report was created, in the format defined by RFC3339.
- time
Masking StringFinished - The date and time data masking finished, in the format defined by RFC3339
- time
Masking StringStarted - The date and time data masking started, in the format defined by RFC3339
- total
Masked StringColumns - The total number of masked columns.
- total
Masked StringObjects - The total number of unique objects (tables and editioning views) that contain the masked columns.
- total
Masked StringSchemas - The total number of unique schemas that contain the masked columns.
- total
Masked StringSensitive Types - The total number of unique sensitive types associated with the masked columns.
- total
Masked StringValues - The total number of masked values.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- id string
- The OCID of the masking report.
- is
Drop booleanTemp Tables Enabled - Indicates if the temporary tables created during the masking operation were dropped after masking.
- is
Redo booleanLogging Enabled - Indicates if redo logging was enabled during the masking operation.
- is
Refresh booleanStats Enabled - Indicates if statistics gathering was enabled during the masking operation.
- masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- masking
Work stringRequest Id - The OCID of the masking work request that resulted in this masking report.
- parallel
Degree string - Indicates if parallel execution was enabled during the masking operation.
- recompile string
- Indicates how invalid objects were recompiled post the masking operation.
- state string
- The current state of the masking report.
- target
Id string - A filter to return only items related to a specific target OCID.
- time
Created string - The date and time the masking report was created, in the format defined by RFC3339.
- time
Masking stringFinished - The date and time data masking finished, in the format defined by RFC3339
- time
Masking stringStarted - The date and time data masking started, in the format defined by RFC3339
- total
Masked stringColumns - The total number of masked columns.
- total
Masked stringObjects - The total number of unique objects (tables and editioning views) that contain the masked columns.
- total
Masked stringSchemas - The total number of unique schemas that contain the masked columns.
- total
Masked stringSensitive Types - The total number of unique sensitive types associated with the masked columns.
- total
Masked stringValues - The total number of masked values.
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- id str
- The OCID of the masking report.
- is_
drop_ booltemp_ tables_ enabled - Indicates if the temporary tables created during the masking operation were dropped after masking.
- is_
redo_ boollogging_ enabled - Indicates if redo logging was enabled during the masking operation.
- is_
refresh_ boolstats_ enabled - Indicates if statistics gathering was enabled during the masking operation.
- masking_
policy_ strid - A filter to return only the resources that match the specified masking policy OCID.
- masking_
work_ strrequest_ id - The OCID of the masking work request that resulted in this masking report.
- parallel_
degree str - Indicates if parallel execution was enabled during the masking operation.
- recompile str
- Indicates how invalid objects were recompiled post the masking operation.
- state str
- The current state of the masking report.
- target_
id str - A filter to return only items related to a specific target OCID.
- time_
created str - The date and time the masking report was created, in the format defined by RFC3339.
- time_
masking_ strfinished - The date and time data masking finished, in the format defined by RFC3339
- time_
masking_ strstarted - The date and time data masking started, in the format defined by RFC3339
- total_
masked_ strcolumns - The total number of masked columns.
- total_
masked_ strobjects - The total number of unique objects (tables and editioning views) that contain the masked columns.
- total_
masked_ strschemas - The total number of unique schemas that contain the masked columns.
- total_
masked_ strsensitive_ types - The total number of unique sensitive types associated with the masked columns.
- total_
masked_ strvalues - The total number of masked values.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- id String
- The OCID of the masking report.
- is
Drop BooleanTemp Tables Enabled - Indicates if the temporary tables created during the masking operation were dropped after masking.
- is
Redo BooleanLogging Enabled - Indicates if redo logging was enabled during the masking operation.
- is
Refresh BooleanStats Enabled - Indicates if statistics gathering was enabled during the masking operation.
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- masking
Work StringRequest Id - The OCID of the masking work request that resulted in this masking report.
- parallel
Degree String - Indicates if parallel execution was enabled during the masking operation.
- recompile String
- Indicates how invalid objects were recompiled post the masking operation.
- state String
- The current state of the masking report.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created String - The date and time the masking report was created, in the format defined by RFC3339.
- time
Masking StringFinished - The date and time data masking finished, in the format defined by RFC3339
- time
Masking StringStarted - The date and time data masking started, in the format defined by RFC3339
- total
Masked StringColumns - The total number of masked columns.
- total
Masked StringObjects - The total number of unique objects (tables and editioning views) that contain the masked columns.
- total
Masked StringSchemas - The total number of unique schemas that contain the masked columns.
- total
Masked StringSensitive Types - The total number of unique sensitive types associated with the masked columns.
- total
Masked StringValues - The total number of masked values.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.