1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getMaskingPolicyHealthReportLogs
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.getMaskingPolicyHealthReportLogs

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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:

    MaskingPolicyHealthReportId string
    The OCID of the masking health report.
    Filters List<GetMaskingPolicyHealthReportLogsFilter>
    MessageType string
    A filter to return only the resources that match the specified log message type.
    MaskingPolicyHealthReportId string
    The OCID of the masking health report.
    Filters []GetMaskingPolicyHealthReportLogsFilter
    MessageType string
    A filter to return only the resources that match the specified log message type.
    maskingPolicyHealthReportId String
    The OCID of the masking health report.
    filters List<GetMaskingPolicyHealthReportLogsFilter>
    messageType String
    A filter to return only the resources that match the specified log message type.
    maskingPolicyHealthReportId string
    The OCID of the masking health report.
    filters GetMaskingPolicyHealthReportLogsFilter[]
    messageType string
    A filter to return only the resources that match the specified log message type.
    masking_policy_health_report_id str
    The OCID of the masking health report.
    filters Sequence[datasafe.GetMaskingPolicyHealthReportLogsFilter]
    message_type str
    A filter to return only the resources that match the specified log message type.
    maskingPolicyHealthReportId String
    The OCID of the masking health report.
    filters 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetMaskingPolicyHealthReportLogsMaskingPolicyHealthReportLogCollection

    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.
    MessageType 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.
    MessageType 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.
    messageType 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.
    messageType 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.
    messageType 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi