Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DataSafe.getMaskingPolicyHealthReports
Explore with Pulumi AI
This data source provides the list of Masking Policy Health Reports in Oracle Cloud Infrastructure Data Safe service.
Gets a list of masking policy health reports based on the specified query parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaskingPolicyHealthReports = oci.DataSafe.getMaskingPolicyHealthReports({
compartmentId: compartmentId,
accessLevel: maskingPolicyHealthReportAccessLevel,
compartmentIdInSubtree: maskingPolicyHealthReportCompartmentIdInSubtree,
displayName: maskingPolicyHealthReportDisplayName,
maskingPolicyHealthReportId: testMaskingPolicyHealthReport.id,
maskingPolicyId: testMaskingPolicy.id,
state: maskingPolicyHealthReportState,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_masking_policy_health_reports = oci.DataSafe.get_masking_policy_health_reports(compartment_id=compartment_id,
access_level=masking_policy_health_report_access_level,
compartment_id_in_subtree=masking_policy_health_report_compartment_id_in_subtree,
display_name=masking_policy_health_report_display_name,
masking_policy_health_report_id=test_masking_policy_health_report["id"],
masking_policy_id=test_masking_policy["id"],
state=masking_policy_health_report_state,
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.GetMaskingPolicyHealthReports(ctx, &datasafe.GetMaskingPolicyHealthReportsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(maskingPolicyHealthReportAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(maskingPolicyHealthReportCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(maskingPolicyHealthReportDisplayName),
MaskingPolicyHealthReportId: pulumi.StringRef(testMaskingPolicyHealthReport.Id),
MaskingPolicyId: pulumi.StringRef(testMaskingPolicy.Id),
State: pulumi.StringRef(maskingPolicyHealthReportState),
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 testMaskingPolicyHealthReports = Oci.DataSafe.GetMaskingPolicyHealthReports.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = maskingPolicyHealthReportAccessLevel,
CompartmentIdInSubtree = maskingPolicyHealthReportCompartmentIdInSubtree,
DisplayName = maskingPolicyHealthReportDisplayName,
MaskingPolicyHealthReportId = testMaskingPolicyHealthReport.Id,
MaskingPolicyId = testMaskingPolicy.Id,
State = maskingPolicyHealthReportState,
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.GetMaskingPolicyHealthReportsArgs;
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 testMaskingPolicyHealthReports = DataSafeFunctions.getMaskingPolicyHealthReports(GetMaskingPolicyHealthReportsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(maskingPolicyHealthReportAccessLevel)
.compartmentIdInSubtree(maskingPolicyHealthReportCompartmentIdInSubtree)
.displayName(maskingPolicyHealthReportDisplayName)
.maskingPolicyHealthReportId(testMaskingPolicyHealthReport.id())
.maskingPolicyId(testMaskingPolicy.id())
.state(maskingPolicyHealthReportState)
.targetId(testTarget.id())
.build());
}
}
variables:
testMaskingPolicyHealthReports:
fn::invoke:
Function: oci:DataSafe:getMaskingPolicyHealthReports
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${maskingPolicyHealthReportAccessLevel}
compartmentIdInSubtree: ${maskingPolicyHealthReportCompartmentIdInSubtree}
displayName: ${maskingPolicyHealthReportDisplayName}
maskingPolicyHealthReportId: ${testMaskingPolicyHealthReport.id}
maskingPolicyId: ${testMaskingPolicy.id}
state: ${maskingPolicyHealthReportState}
targetId: ${testTarget.id}
Using getMaskingPolicyHealthReports
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 getMaskingPolicyHealthReports(args: GetMaskingPolicyHealthReportsArgs, opts?: InvokeOptions): Promise<GetMaskingPolicyHealthReportsResult>
function getMaskingPolicyHealthReportsOutput(args: GetMaskingPolicyHealthReportsOutputArgs, opts?: InvokeOptions): Output<GetMaskingPolicyHealthReportsResult>
def get_masking_policy_health_reports(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_datasafe.GetMaskingPolicyHealthReportsFilter]] = None,
masking_policy_health_report_id: Optional[str] = None,
masking_policy_id: Optional[str] = None,
state: Optional[str] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMaskingPolicyHealthReportsResult
def get_masking_policy_health_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,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetMaskingPolicyHealthReportsFilterArgs]]]] = None,
masking_policy_health_report_id: Optional[pulumi.Input[str]] = None,
masking_policy_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMaskingPolicyHealthReportsResult]
func GetMaskingPolicyHealthReports(ctx *Context, args *GetMaskingPolicyHealthReportsArgs, opts ...InvokeOption) (*GetMaskingPolicyHealthReportsResult, error)
func GetMaskingPolicyHealthReportsOutput(ctx *Context, args *GetMaskingPolicyHealthReportsOutputArgs, opts ...InvokeOption) GetMaskingPolicyHealthReportsResultOutput
> Note: This function is named GetMaskingPolicyHealthReports
in the Go SDK.
public static class GetMaskingPolicyHealthReports
{
public static Task<GetMaskingPolicyHealthReportsResult> InvokeAsync(GetMaskingPolicyHealthReportsArgs args, InvokeOptions? opts = null)
public static Output<GetMaskingPolicyHealthReportsResult> Invoke(GetMaskingPolicyHealthReportsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMaskingPolicyHealthReportsResult> getMaskingPolicyHealthReports(GetMaskingPolicyHealthReportsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getMaskingPolicyHealthReports:getMaskingPolicyHealthReports
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.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
List<Get
Masking Policy Health Reports Filter> - Masking
Policy stringHealth Report Id - A filter to return only the resources that match the specified masking policy health report OCID.
- Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- State string
- A filter to return only the resources that match the specified lifecycle states.
- 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.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
[]Get
Masking Policy Health Reports Filter - Masking
Policy stringHealth Report Id - A filter to return only the resources that match the specified masking policy health report OCID.
- Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- State string
- A filter to return only the resources that match the specified lifecycle states.
- 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.
- display
Name String - A filter to return only resources that match the specified display name.
- filters
List<Get
Masking Policy Health Reports Filter> - masking
Policy StringHealth Report Id - A filter to return only the resources that match the specified masking policy health report OCID.
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- state String
- A filter to return only the resources that match the specified lifecycle states.
- 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.
- display
Name string - A filter to return only resources that match the specified display name.
- filters
Get
Masking Policy Health Reports Filter[] - masking
Policy stringHealth Report Id - A filter to return only the resources that match the specified masking policy health report OCID.
- masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- state string
- A filter to return only the resources that match the specified lifecycle states.
- 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.
- display_
name str - A filter to return only resources that match the specified display name.
- filters
Sequence[datasafe.
Get Masking Policy Health Reports Filter] - masking_
policy_ strhealth_ report_ id - A filter to return only the resources that match the specified masking policy health report OCID.
- masking_
policy_ strid - A filter to return only the resources that match the specified masking policy OCID.
- state str
- A filter to return only the resources that match the specified lifecycle states.
- 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.
- display
Name String - A filter to return only resources that match the specified display name.
- filters List<Property Map>
- masking
Policy StringHealth Report Id - A filter to return only the resources that match the specified masking policy health report OCID.
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- state String
- A filter to return only the resources that match the specified lifecycle states.
- target
Id String - A filter to return only items related to a specific target OCID.
getMaskingPolicyHealthReports Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the health report.
- Id string
- The provider-assigned unique ID for this managed resource.
- Masking
Policy List<GetHealth Report Collections Masking Policy Health Reports Masking Policy Health Report Collection> - The list of masking_policy_health_report_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - The display name of the health report.
- Filters
List<Get
Masking Policy Health Reports Filter> - Masking
Policy stringHealth Report Id - Masking
Policy stringId - The OCID of the masking policy.
- State string
- The current state of the health report.
- Target
Id string - The OCID of the target database for which this report was created.
- Compartment
Id string - The OCID of the compartment that contains the health report.
- Id string
- The provider-assigned unique ID for this managed resource.
- Masking
Policy []GetHealth Report Collections Masking Policy Health Reports Masking Policy Health Report Collection - The list of masking_policy_health_report_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - The display name of the health report.
- Filters
[]Get
Masking Policy Health Reports Filter - Masking
Policy stringHealth Report Id - Masking
Policy stringId - The OCID of the masking policy.
- State string
- The current state of the health report.
- Target
Id string - The OCID of the target database for which this report was created.
- compartment
Id String - The OCID of the compartment that contains the health report.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Policy List<GetHealth Report Collections Masking Policy Health Reports Masking Policy Health Report Collection> - The list of masking_policy_health_report_collection.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - The display name of the health report.
- filters
List<Get
Masking Policy Health Reports Filter> - masking
Policy StringHealth Report Id - masking
Policy StringId - The OCID of the masking policy.
- state String
- The current state of the health report.
- target
Id String - The OCID of the target database for which this report was created.
- compartment
Id string - The OCID of the compartment that contains the health report.
- id string
- The provider-assigned unique ID for this managed resource.
- masking
Policy GetHealth Report Collections Masking Policy Health Reports Masking Policy Health Report Collection[] - The list of masking_policy_health_report_collection.
- access
Level string - compartment
Id booleanIn Subtree - display
Name string - The display name of the health report.
- filters
Get
Masking Policy Health Reports Filter[] - masking
Policy stringHealth Report Id - masking
Policy stringId - The OCID of the masking policy.
- state string
- The current state of the health report.
- target
Id string - The OCID of the target database for which this report was created.
- compartment_
id str - The OCID of the compartment that contains the health report.
- id str
- The provider-assigned unique ID for this managed resource.
- masking_
policy_ Sequence[datasafe.health_ report_ collections Get Masking Policy Health Reports Masking Policy Health Report Collection] - The list of masking_policy_health_report_collection.
- access_
level str - compartment_
id_ boolin_ subtree - display_
name str - The display name of the health report.
- filters
Sequence[datasafe.
Get Masking Policy Health Reports Filter] - masking_
policy_ strhealth_ report_ id - masking_
policy_ strid - The OCID of the masking policy.
- state str
- The current state of the health report.
- target_
id str - The OCID of the target database for which this report was created.
- compartment
Id String - The OCID of the compartment that contains the health report.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Policy List<Property Map>Health Report Collections - The list of masking_policy_health_report_collection.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - The display name of the health report.
- filters List<Property Map>
- masking
Policy StringHealth Report Id - masking
Policy StringId - The OCID of the masking policy.
- state String
- The current state of the health report.
- target
Id String - The OCID of the target database for which this report was created.
Supporting Types
GetMaskingPolicyHealthReportsFilter
GetMaskingPolicyHealthReportsMaskingPolicyHealthReportCollection
GetMaskingPolicyHealthReportsMaskingPolicyHealthReportCollectionItem
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- The description of the masking health report.
- Display
Name string - A filter to return only resources that match the specified display name.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Id string
- The OCID of the health report.
- Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- State string
- A filter to return only the resources that match the specified lifecycle states.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created string - The date and time the report was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the report was last updated, in the format defined by RFC3339
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- The description of the masking health report.
- Display
Name string - A filter to return only resources that match the specified display name.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Id string
- The OCID of the health report.
- Masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- State string
- A filter to return only the resources that match the specified lifecycle states.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created string - The date and time the report was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the report was last updated, in the format defined by RFC3339
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- The description of the masking health report.
- display
Name String - A filter to return only resources that match the specified display name.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- id String
- The OCID of the health report.
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- state String
- A filter to return only the resources that match the specified lifecycle states.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created String - The date and time the report was created, in the format defined by RFC3339.
- time
Updated String - The date and time the report was last updated, in the format defined by RFC3339
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- The description of the masking health report.
- display
Name string - A filter to return only resources that match the specified display name.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- id string
- The OCID of the health report.
- masking
Policy stringId - A filter to return only the resources that match the specified masking policy OCID.
- state string
- A filter to return only the resources that match the specified lifecycle states.
- target
Id string - A filter to return only items related to a specific target OCID.
- time
Created string - The date and time the report was created, in the format defined by RFC3339.
- time
Updated string - The date and time the report was last updated, in the format defined by RFC3339
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- The description of the masking health report.
- display_
name str - A filter to return only resources that match the specified display name.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- id str
- The OCID of the health report.
- masking_
policy_ strid - A filter to return only the resources that match the specified masking policy OCID.
- state str
- A filter to return only the resources that match the specified lifecycle states.
- target_
id str - A filter to return only items related to a specific target OCID.
- time_
created str - The date and time the report was created, in the format defined by RFC3339.
- time_
updated str - The date and time the report was last updated, in the format defined by RFC3339
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- The description of the masking health report.
- display
Name String - A filter to return only resources that match the specified display name.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- id String
- The OCID of the health report.
- masking
Policy StringId - A filter to return only the resources that match the specified masking policy OCID.
- state String
- A filter to return only the resources that match the specified lifecycle states.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created String - The date and time the report was created, in the format defined by RFC3339.
- time
Updated String - The date and time the report was last updated, in the format defined by RFC3339
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.