Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataSafe.getMaskingPolicyHealthReportLogs
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testMaskingPolicyHealthReportLogs:
fn::invoke:
Function: oci:DataSafe:getMaskingPolicyHealthReportLogs
Arguments:
maskingPolicyHealthReportId: ${testMaskingPolicyHealthReport.id}
messageType: ${maskingPolicyHealthReportLogMessageType}
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>
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]
func GetMaskingPolicyHealthReportLogs(ctx *Context, args *GetMaskingPolicyHealthReportLogsArgs, opts ...InvokeOption) (*GetMaskingPolicyHealthReportLogsResult, error)
func GetMaskingPolicyHealthReportLogsOutput(ctx *Context, args *GetMaskingPolicyHealthReportLogsOutputArgs, opts ...InvokeOption) GetMaskingPolicyHealthReportLogsResultOutput
> 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)
}
public static CompletableFuture<GetMaskingPolicyHealthReportLogsResult> getMaskingPolicyHealthReportLogs(GetMaskingPolicyHealthReportLogsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getMaskingPolicyHealthReportLogs:getMaskingPolicyHealthReportLogs
arguments:
# arguments dictionary
The following arguments are supported:
- Masking
Policy stringHealth Report Id - The OCID of the masking health report.
- Filters
List<Get
Masking Policy Health Report Logs Filter> - Message
Type string - A filter to return only the resources that match the specified log message type.
- Masking
Policy stringHealth Report Id - The OCID of the masking health report.
- Filters
[]Get
Masking Policy Health Report Logs Filter - Message
Type string - A filter to return only the resources that match the specified log message type.
- masking
Policy StringHealth Report Id - The OCID of the masking health report.
- filters
List<Get
Masking Policy Health Report Logs Filter> - message
Type String - A filter to return only the resources that match the specified log message type.
- masking
Policy stringHealth Report Id - The OCID of the masking health report.
- filters
Get
Masking Policy Health Report Logs Filter[] - message
Type string - A filter to return only the resources that match the specified log message type.
- masking_
policy_ strhealth_ report_ id - The OCID of the masking health report.
- filters
Sequence[datasafe.
Get Masking Policy Health Report Logs Filter] - message_
type str - A filter to return only the resources that match the specified log message type.
- masking
Policy StringHealth Report Id - The OCID of the masking health report.
- filters List<Property Map>
- message
Type 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.
- Masking
Policy stringHealth Report Id - Masking
Policy List<GetHealth Report Log Collections Masking Policy Health Report Logs Masking Policy Health Report Log Collection> - The list of masking_policy_health_report_log_collection.
- Filters
List<Get
Masking Policy Health Report Logs Filter> - Message
Type string - The log entry type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Masking
Policy stringHealth Report Id - Masking
Policy []GetHealth Report Log Collections Masking Policy Health Report Logs Masking Policy Health Report Log Collection - The list of masking_policy_health_report_log_collection.
- Filters
[]Get
Masking Policy Health Report Logs Filter - Message
Type string - The log entry type.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Policy StringHealth Report Id - masking
Policy List<GetHealth Report Log Collections Masking Policy Health Report Logs Masking Policy Health Report Log Collection> - The list of masking_policy_health_report_log_collection.
- filters
List<Get
Masking Policy Health Report Logs Filter> - message
Type String - The log entry type.
- id string
- The provider-assigned unique ID for this managed resource.
- masking
Policy stringHealth Report Id - masking
Policy GetHealth Report Log Collections Masking Policy Health Report Logs Masking Policy Health Report Log Collection[] - The list of masking_policy_health_report_log_collection.
- filters
Get
Masking Policy Health Report Logs Filter[] - message
Type string - The log entry type.
- id str
- The provider-assigned unique ID for this managed resource.
- masking_
policy_ strhealth_ report_ id - masking_
policy_ Sequence[datasafe.health_ report_ log_ collections Get Masking Policy Health Report Logs Masking Policy Health Report Log Collection] - The list of masking_policy_health_report_log_collection.
- filters
Sequence[datasafe.
Get Masking Policy Health Report Logs Filter] - message_
type str - The log entry type.
- id String
- The provider-assigned unique ID for this managed resource.
- masking
Policy StringHealth Report Id - masking
Policy List<Property Map>Health Report Log Collections - The list of masking_policy_health_report_log_collection.
- filters List<Property Map>
- message
Type String - The log entry type.
Supporting Types
GetMaskingPolicyHealthReportLogsFilter
GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection
- Items
List<Get
Masking Policy Health Report Logs Masking Policy Health Report Log Collection Item> - An array of masking policy health report objects.
- Items
[]Get
Masking Policy Health Report Logs Masking Policy Health Report Log Collection Item - An array of masking policy health report objects.
- items
List<Get
Masking Policy Health Report Logs Masking Policy Health Report Log Collection Item> - An array of masking policy health report objects.
- items
Get
Masking Policy Health Report Logs Masking Policy Health Report Log Collection Item[] - An array of masking policy health report objects.
- items
Sequence[datasafe.
Get Masking Policy Health Report Logs Masking Policy Health Report Log Collection Item] - An array of masking policy health report objects.
- items List<Property Map>
- An array of masking policy health report objects.
GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollectionItem
- Description string
- A human-readable description for the log entry.
- Message string
- A human-readable log entry.
- Message
Type string - A filter to return only the resources that match the specified log message type.
- Remediation string
- A human-readable log entry to remedy any error or warnings in the masking policy.
- Timestamp string
- The date and time the log entry was created, in the format defined by RFC3339.
- Description string
- A human-readable description for the log entry.
- Message string
- A human-readable log entry.
- Message
Type string - A filter to return only the resources that match the specified log message type.
- Remediation string
- A human-readable log entry to remedy any error or warnings in the masking policy.
- Timestamp string
- The date and time the log entry was created, in the format defined by RFC3339.
- description String
- A human-readable description for the log entry.
- message String
- A human-readable log entry.
- message
Type String - A filter to return only the resources that match the specified log message type.
- remediation String
- A human-readable log entry to remedy any error or warnings in the masking policy.
- timestamp String
- The date and time the log entry was created, in the format defined by RFC3339.
- description string
- A human-readable description for the log entry.
- message string
- A human-readable log entry.
- message
Type string - A filter to return only the resources that match the specified log message type.
- remediation string
- A human-readable log entry to remedy any error or warnings in the masking policy.
- timestamp string
- The date and time the log entry was created, in the format defined by RFC3339.
- description str
- A human-readable description for the log entry.
- message str
- A human-readable log entry.
- message_
type str - A filter to return only the resources that match the specified log message type.
- remediation str
- A human-readable log entry to remedy any error or warnings in the masking policy.
- timestamp str
- The date and time the log entry was created, in the format defined by RFC3339.
- description String
- A human-readable description for the log entry.
- message String
- A human-readable log entry.
- message
Type String - A filter to return only the resources that match the specified log message type.
- remediation String
- A human-readable log entry to remedy any error or warnings in the masking policy.
- timestamp 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.