Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.DataSafe.getMaskingPolicyHealthReport
Explore with Pulumi AI
This data source provides details about a specific Masking Policy Health Report resource in Oracle Cloud Infrastructure Data Safe service.
Gets the details of the specified masking policy health report.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaskingPolicyHealthReport = oci.DataSafe.getMaskingPolicyHealthReport({
    maskingPolicyHealthReportId: testMaskingPolicyHealthReportOciDataSafeMaskingPolicyHealthReport.id,
});
import pulumi
import pulumi_oci as oci
test_masking_policy_health_report = oci.DataSafe.get_masking_policy_health_report(masking_policy_health_report_id=test_masking_policy_health_report_oci_data_safe_masking_policy_health_report["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.GetMaskingPolicyHealthReport(ctx, &datasafe.GetMaskingPolicyHealthReportArgs{
			MaskingPolicyHealthReportId: testMaskingPolicyHealthReportOciDataSafeMaskingPolicyHealthReport.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 testMaskingPolicyHealthReport = Oci.DataSafe.GetMaskingPolicyHealthReport.Invoke(new()
    {
        MaskingPolicyHealthReportId = testMaskingPolicyHealthReportOciDataSafeMaskingPolicyHealthReport.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.GetMaskingPolicyHealthReportArgs;
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 testMaskingPolicyHealthReport = DataSafeFunctions.getMaskingPolicyHealthReport(GetMaskingPolicyHealthReportArgs.builder()
            .maskingPolicyHealthReportId(testMaskingPolicyHealthReportOciDataSafeMaskingPolicyHealthReport.id())
            .build());
    }
}
variables:
  testMaskingPolicyHealthReport:
    fn::invoke:
      function: oci:DataSafe:getMaskingPolicyHealthReport
      arguments:
        maskingPolicyHealthReportId: ${testMaskingPolicyHealthReportOciDataSafeMaskingPolicyHealthReport.id}
Using getMaskingPolicyHealthReport
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 getMaskingPolicyHealthReport(args: GetMaskingPolicyHealthReportArgs, opts?: InvokeOptions): Promise<GetMaskingPolicyHealthReportResult>
function getMaskingPolicyHealthReportOutput(args: GetMaskingPolicyHealthReportOutputArgs, opts?: InvokeOptions): Output<GetMaskingPolicyHealthReportResult>def get_masking_policy_health_report(masking_policy_health_report_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetMaskingPolicyHealthReportResult
def get_masking_policy_health_report_output(masking_policy_health_report_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetMaskingPolicyHealthReportResult]func GetMaskingPolicyHealthReport(ctx *Context, args *GetMaskingPolicyHealthReportArgs, opts ...InvokeOption) (*GetMaskingPolicyHealthReportResult, error)
func GetMaskingPolicyHealthReportOutput(ctx *Context, args *GetMaskingPolicyHealthReportOutputArgs, opts ...InvokeOption) GetMaskingPolicyHealthReportResultOutput> Note: This function is named GetMaskingPolicyHealthReport in the Go SDK.
public static class GetMaskingPolicyHealthReport 
{
    public static Task<GetMaskingPolicyHealthReportResult> InvokeAsync(GetMaskingPolicyHealthReportArgs args, InvokeOptions? opts = null)
    public static Output<GetMaskingPolicyHealthReportResult> Invoke(GetMaskingPolicyHealthReportInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMaskingPolicyHealthReportResult> getMaskingPolicyHealthReport(GetMaskingPolicyHealthReportArgs args, InvokeOptions options)
public static Output<GetMaskingPolicyHealthReportResult> getMaskingPolicyHealthReport(GetMaskingPolicyHealthReportArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getMaskingPolicyHealthReport:getMaskingPolicyHealthReport
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MaskingPolicy stringHealth Report Id 
- The OCID of the masking health report.
- MaskingPolicy stringHealth Report Id 
- The OCID of the masking health report.
- maskingPolicy StringHealth Report Id 
- The OCID of the masking health report.
- maskingPolicy stringHealth Report Id 
- The OCID of the masking health report.
- masking_policy_ strhealth_ report_ id 
- The OCID of the masking health report.
- maskingPolicy StringHealth Report Id 
- The OCID of the masking health report.
getMaskingPolicyHealthReport Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the health report.
- 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.
- DisplayName string
- The display name of the health report.
- ErrorCount string
- The count of errors in the masking health report.
- 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 provider-assigned unique ID for this managed resource.
- MaskingPolicy stringHealth Report Id 
- MaskingPolicy stringId 
- The OCID of the masking policy.
- State string
- The current state of the health report.
- TargetId string
- The OCID of the target database for which this report was created.
- TimeCreated string
- The date and time the report was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the report was last updated, in the format defined by RFC3339
- WarningCount string
- The count of warnings in the masking health report.
- CompartmentId string
- The OCID of the compartment that contains the health report.
- 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.
- DisplayName string
- The display name of the health report.
- ErrorCount string
- The count of errors in the masking health report.
- 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 provider-assigned unique ID for this managed resource.
- MaskingPolicy stringHealth Report Id 
- MaskingPolicy stringId 
- The OCID of the masking policy.
- State string
- The current state of the health report.
- TargetId string
- The OCID of the target database for which this report was created.
- TimeCreated string
- The date and time the report was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the report was last updated, in the format defined by RFC3339
- WarningCount string
- The count of warnings in the masking health report.
- compartmentId String
- The OCID of the compartment that contains the health report.
- 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.
- displayName String
- The display name of the health report.
- errorCount String
- The count of errors in the masking health report.
- 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 provider-assigned unique ID for this managed resource.
- maskingPolicy StringHealth Report Id 
- maskingPolicy StringId 
- The OCID of the masking policy.
- state String
- The current state of the health report.
- targetId String
- The OCID of the target database for which this report was created.
- timeCreated String
- The date and time the report was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the report was last updated, in the format defined by RFC3339
- warningCount String
- The count of warnings in the masking health report.
- compartmentId string
- The OCID of the compartment that contains the health report.
- {[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.
- displayName string
- The display name of the health report.
- errorCount string
- The count of errors in the masking health report.
- {[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 provider-assigned unique ID for this managed resource.
- maskingPolicy stringHealth Report Id 
- maskingPolicy stringId 
- The OCID of the masking policy.
- state string
- The current state of the health report.
- targetId string
- The OCID of the target database for which this report was created.
- timeCreated string
- The date and time the report was created, in the format defined by RFC3339.
- timeUpdated string
- The date and time the report was last updated, in the format defined by RFC3339
- warningCount string
- The count of warnings in the masking health report.
- compartment_id str
- The OCID of the compartment that contains the health report.
- 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
- The display name of the health report.
- error_count str
- The count of errors in the masking health report.
- 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 provider-assigned unique ID for this managed resource.
- 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.
- 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
- warning_count str
- The count of warnings in the masking health report.
- compartmentId String
- The OCID of the compartment that contains the health report.
- 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.
- displayName String
- The display name of the health report.
- errorCount String
- The count of errors in the masking health report.
- 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 provider-assigned unique ID for this managed resource.
- maskingPolicy StringHealth Report Id 
- maskingPolicy StringId 
- The OCID of the masking policy.
- state String
- The current state of the health report.
- targetId String
- The OCID of the target database for which this report was created.
- timeCreated String
- The date and time the report was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the report was last updated, in the format defined by RFC3339
- warningCount String
- The count of warnings in the masking health report.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.