1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getMaskingPolicyHealthReportLogs
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.DataSafe.getMaskingPolicyHealthReportLogs

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Masking Policy Health Report Logs in Oracle Cloud Infrastructure Data Safe service.

Gets a list of errors and warnings from a masking policy health check.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMaskingPolicyHealthReportLogs = oci.DataSafe.getMaskingPolicyHealthReportLogs({
    maskingPolicyHealthReportId: testMaskingPolicyHealthReport.id,
    messageType: maskingPolicyHealthReportLogMessageType,
});
Copy
import pulumi
import pulumi_oci as oci

test_masking_policy_health_report_logs = oci.DataSafe.get_masking_policy_health_report_logs(masking_policy_health_report_id=test_masking_policy_health_report["id"],
    message_type=masking_policy_health_report_log_message_type)
Copy
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.GetMaskingPolicyHealthReportLogs(ctx, &datasafe.GetMaskingPolicyHealthReportLogsArgs{
			MaskingPolicyHealthReportId: testMaskingPolicyHealthReport.Id,
			MessageType:                 pulumi.StringRef(maskingPolicyHealthReportLogMessageType),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMaskingPolicyHealthReportLogs = Oci.DataSafe.GetMaskingPolicyHealthReportLogs.Invoke(new()
    {
        MaskingPolicyHealthReportId = testMaskingPolicyHealthReport.Id,
        MessageType = maskingPolicyHealthReportLogMessageType,
    });

});
Copy
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.GetMaskingPolicyHealthReportLogsArgs;
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 testMaskingPolicyHealthReportLogs = DataSafeFunctions.getMaskingPolicyHealthReportLogs(GetMaskingPolicyHealthReportLogsArgs.builder()
            .maskingPolicyHealthReportId(testMaskingPolicyHealthReport.id())
            .messageType(maskingPolicyHealthReportLogMessageType)
            .build());

    }
}
Copy
variables:
  testMaskingPolicyHealthReportLogs:
    fn::invoke:
      function: oci:DataSafe:getMaskingPolicyHealthReportLogs
      arguments:
        maskingPolicyHealthReportId: ${testMaskingPolicyHealthReport.id}
        messageType: ${maskingPolicyHealthReportLogMessageType}
Copy

Using getMaskingPolicyHealthReportLogs

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 getMaskingPolicyHealthReportLogs(args: GetMaskingPolicyHealthReportLogsArgs, opts?: InvokeOptions): Promise<GetMaskingPolicyHealthReportLogsResult>
function getMaskingPolicyHealthReportLogsOutput(args: GetMaskingPolicyHealthReportLogsOutputArgs, opts?: InvokeOptions): Output<GetMaskingPolicyHealthReportLogsResult>
Copy
def get_masking_policy_health_report_logs(filters: Optional[Sequence[_datasafe.GetMaskingPolicyHealthReportLogsFilter]] = None,
                                          masking_policy_health_report_id: Optional[str] = None,
                                          message_type: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetMaskingPolicyHealthReportLogsResult
def get_masking_policy_health_report_logs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetMaskingPolicyHealthReportLogsFilterArgs]]]] = None,
                                          masking_policy_health_report_id: Optional[pulumi.Input[str]] = None,
                                          message_type: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetMaskingPolicyHealthReportLogsResult]
Copy
func GetMaskingPolicyHealthReportLogs(ctx *Context, args *GetMaskingPolicyHealthReportLogsArgs, opts ...InvokeOption) (*GetMaskingPolicyHealthReportLogsResult, error)
func GetMaskingPolicyHealthReportLogsOutput(ctx *Context, args *GetMaskingPolicyHealthReportLogsOutputArgs, opts ...InvokeOption) GetMaskingPolicyHealthReportLogsResultOutput
Copy

> Note: This function is named GetMaskingPolicyHealthReportLogs in the Go SDK.

public static class GetMaskingPolicyHealthReportLogs 
{
    public static Task<GetMaskingPolicyHealthReportLogsResult> InvokeAsync(GetMaskingPolicyHealthReportLogsArgs args, InvokeOptions? opts = null)
    public static Output<GetMaskingPolicyHealthReportLogsResult> Invoke(GetMaskingPolicyHealthReportLogsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMaskingPolicyHealthReportLogsResult> getMaskingPolicyHealthReportLogs(GetMaskingPolicyHealthReportLogsArgs args, InvokeOptions options)
public static Output<GetMaskingPolicyHealthReportLogsResult> getMaskingPolicyHealthReportLogs(GetMaskingPolicyHealthReportLogsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getMaskingPolicyHealthReportLogs:getMaskingPolicyHealthReportLogs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MaskingPolicyHealthReportId This property is required. string
The OCID of the masking health report.
Filters Changes to this property will trigger replacement. List<GetMaskingPolicyHealthReportLogsFilter>
MessageType string
A filter to return only the resources that match the specified log message type.
MaskingPolicyHealthReportId This property is required. string
The OCID of the masking health report.
Filters Changes to this property will trigger replacement. []GetMaskingPolicyHealthReportLogsFilter
MessageType string
A filter to return only the resources that match the specified log message type.
maskingPolicyHealthReportId This property is required. String
The OCID of the masking health report.
filters Changes to this property will trigger replacement. List<GetMaskingPolicyHealthReportLogsFilter>
messageType String
A filter to return only the resources that match the specified log message type.
maskingPolicyHealthReportId This property is required. string
The OCID of the masking health report.
filters Changes to this property will trigger replacement. GetMaskingPolicyHealthReportLogsFilter[]
messageType string
A filter to return only the resources that match the specified log message type.
masking_policy_health_report_id This property is required. str
The OCID of the masking health report.
filters Changes to this property will trigger replacement. Sequence[datasafe.GetMaskingPolicyHealthReportLogsFilter]
message_type str
A filter to return only the resources that match the specified log message type.
maskingPolicyHealthReportId This property is required. String
The OCID of the masking health report.
filters Changes to this property will trigger replacement. List<Property Map>
messageType String
A filter to return only the resources that match the specified log message type.

getMaskingPolicyHealthReportLogs Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
MaskingPolicyHealthReportId string
MaskingPolicyHealthReportLogCollections List<GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection>
The list of masking_policy_health_report_log_collection.
Filters List<GetMaskingPolicyHealthReportLogsFilter>
MessageType string
The log entry type.
Id string
The provider-assigned unique ID for this managed resource.
MaskingPolicyHealthReportId string
MaskingPolicyHealthReportLogCollections []GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection
The list of masking_policy_health_report_log_collection.
Filters []GetMaskingPolicyHealthReportLogsFilter
MessageType string
The log entry type.
id String
The provider-assigned unique ID for this managed resource.
maskingPolicyHealthReportId String
maskingPolicyHealthReportLogCollections List<GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection>
The list of masking_policy_health_report_log_collection.
filters List<GetMaskingPolicyHealthReportLogsFilter>
messageType String
The log entry type.
id string
The provider-assigned unique ID for this managed resource.
maskingPolicyHealthReportId string
maskingPolicyHealthReportLogCollections GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection[]
The list of masking_policy_health_report_log_collection.
filters GetMaskingPolicyHealthReportLogsFilter[]
messageType string
The log entry type.
id String
The provider-assigned unique ID for this managed resource.
maskingPolicyHealthReportId String
maskingPolicyHealthReportLogCollections List<Property Map>
The list of masking_policy_health_report_log_collection.
filters List<Property Map>
messageType String
The log entry type.

Supporting Types

GetMaskingPolicyHealthReportLogsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection

Items This property is required. List<GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem>
An array of masking policy health report objects.
Items This property is required. []GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem
An array of masking policy health report objects.
items This property is required. List<GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem>
An array of masking policy health report objects.
items This property is required. GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem[]
An array of masking policy health report objects.
items This property is required. Sequence[datasafe.GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem]
An array of masking policy health report objects.
items This property is required. List<Property Map>
An array of masking policy health report objects.

GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem

Description This property is required. string
A human-readable description for the log entry.
HealthCheckType This property is required. string
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
Message This property is required. string
A human-readable log entry.
MessageType This property is required. string
A filter to return only the resources that match the specified log message type.
Remediation This property is required. string
A human-readable log entry to remedy any error or warnings in the masking policy.
Timestamp This property is required. string
The date and time the log entry was created, in the format defined by RFC3339.
Description This property is required. string
A human-readable description for the log entry.
HealthCheckType This property is required. string
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
Message This property is required. string
A human-readable log entry.
MessageType This property is required. string
A filter to return only the resources that match the specified log message type.
Remediation This property is required. string
A human-readable log entry to remedy any error or warnings in the masking policy.
Timestamp This property is required. string
The date and time the log entry was created, in the format defined by RFC3339.
description This property is required. String
A human-readable description for the log entry.
healthCheckType This property is required. String
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
message This property is required. String
A human-readable log entry.
messageType This property is required. String
A filter to return only the resources that match the specified log message type.
remediation This property is required. String
A human-readable log entry to remedy any error or warnings in the masking policy.
timestamp This property is required. String
The date and time the log entry was created, in the format defined by RFC3339.
description This property is required. string
A human-readable description for the log entry.
healthCheckType This property is required. string
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
message This property is required. string
A human-readable log entry.
messageType This property is required. string
A filter to return only the resources that match the specified log message type.
remediation This property is required. string
A human-readable log entry to remedy any error or warnings in the masking policy.
timestamp This property is required. string
The date and time the log entry was created, in the format defined by RFC3339.
description This property is required. str
A human-readable description for the log entry.
health_check_type This property is required. str
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
message This property is required. str
A human-readable log entry.
message_type This property is required. str
A filter to return only the resources that match the specified log message type.
remediation This property is required. str
A human-readable log entry to remedy any error or warnings in the masking policy.
timestamp This property is required. str
The date and time the log entry was created, in the format defined by RFC3339.
description This property is required. String
A human-readable description for the log entry.
healthCheckType This property is required. String
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
message This property is required. String
A human-readable log entry.
messageType This property is required. String
A filter to return only the resources that match the specified log message type.
remediation This property is required. String
A human-readable log entry to remedy any error or warnings in the masking policy.
timestamp This property is required. String
The date and time the log entry was created, 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi