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

oci.OperatorAccessControl.getAccessRequestAuditLogReport

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Access Request Audit Log Report resource in Oracle Cloud Infrastructure Operator Access Control service.

    Gets the Audit Log Report for the given access requestId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAccessRequestAuditLogReport = oci.OperatorAccessControl.getAccessRequestAuditLogReport({
        accessRequestId: testAccessRequest.id,
        enableProcessTree: accessRequestAuditLogReportEnableProcessTree,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_access_request_audit_log_report = oci.OperatorAccessControl.get_access_request_audit_log_report(access_request_id=test_access_request["id"],
        enable_process_tree=access_request_audit_log_report_enable_process_tree)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OperatorAccessControl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OperatorAccessControl.GetAccessRequestAuditLogReport(ctx, &operatoraccesscontrol.GetAccessRequestAuditLogReportArgs{
    			AccessRequestId:   testAccessRequest.Id,
    			EnableProcessTree: pulumi.IntRef(accessRequestAuditLogReportEnableProcessTree),
    		}, 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 testAccessRequestAuditLogReport = Oci.OperatorAccessControl.GetAccessRequestAuditLogReport.Invoke(new()
        {
            AccessRequestId = testAccessRequest.Id,
            EnableProcessTree = accessRequestAuditLogReportEnableProcessTree,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OperatorAccessControl.OperatorAccessControlFunctions;
    import com.pulumi.oci.OperatorAccessControl.inputs.GetAccessRequestAuditLogReportArgs;
    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 testAccessRequestAuditLogReport = OperatorAccessControlFunctions.getAccessRequestAuditLogReport(GetAccessRequestAuditLogReportArgs.builder()
                .accessRequestId(testAccessRequest.id())
                .enableProcessTree(accessRequestAuditLogReportEnableProcessTree)
                .build());
    
        }
    }
    
    variables:
      testAccessRequestAuditLogReport:
        fn::invoke:
          Function: oci:OperatorAccessControl:getAccessRequestAuditLogReport
          Arguments:
            accessRequestId: ${testAccessRequest.id}
            enableProcessTree: ${accessRequestAuditLogReportEnableProcessTree}
    

    Using getAccessRequestAuditLogReport

    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 getAccessRequestAuditLogReport(args: GetAccessRequestAuditLogReportArgs, opts?: InvokeOptions): Promise<GetAccessRequestAuditLogReportResult>
    function getAccessRequestAuditLogReportOutput(args: GetAccessRequestAuditLogReportOutputArgs, opts?: InvokeOptions): Output<GetAccessRequestAuditLogReportResult>
    def get_access_request_audit_log_report(access_request_id: Optional[str] = None,
                                            enable_process_tree: Optional[int] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetAccessRequestAuditLogReportResult
    def get_access_request_audit_log_report_output(access_request_id: Optional[pulumi.Input[str]] = None,
                                            enable_process_tree: Optional[pulumi.Input[int]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetAccessRequestAuditLogReportResult]
    func GetAccessRequestAuditLogReport(ctx *Context, args *GetAccessRequestAuditLogReportArgs, opts ...InvokeOption) (*GetAccessRequestAuditLogReportResult, error)
    func GetAccessRequestAuditLogReportOutput(ctx *Context, args *GetAccessRequestAuditLogReportOutputArgs, opts ...InvokeOption) GetAccessRequestAuditLogReportResultOutput

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

    public static class GetAccessRequestAuditLogReport 
    {
        public static Task<GetAccessRequestAuditLogReportResult> InvokeAsync(GetAccessRequestAuditLogReportArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessRequestAuditLogReportResult> Invoke(GetAccessRequestAuditLogReportInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccessRequestAuditLogReportResult> getAccessRequestAuditLogReport(GetAccessRequestAuditLogReportArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OperatorAccessControl/getAccessRequestAuditLogReport:getAccessRequestAuditLogReport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessRequestId string
    unique AccessRequest identifier
    EnableProcessTree int
    To enable process tree computation in audit report
    AccessRequestId string
    unique AccessRequest identifier
    EnableProcessTree int
    To enable process tree computation in audit report
    accessRequestId String
    unique AccessRequest identifier
    enableProcessTree Integer
    To enable process tree computation in audit report
    accessRequestId string
    unique AccessRequest identifier
    enableProcessTree number
    To enable process tree computation in audit report
    access_request_id str
    unique AccessRequest identifier
    enable_process_tree int
    To enable process tree computation in audit report
    accessRequestId String
    unique AccessRequest identifier
    enableProcessTree Number
    To enable process tree computation in audit report

    getAccessRequestAuditLogReport Result

    The following output properties are available:

    AccessRequestId string
    AuditReportStatus string
    auditReportStatus for the accessRequestId
    Id string
    The provider-assigned unique ID for this managed resource.
    ProcessTree string
    Contains the process tree data
    Report string
    Contains the report data.
    TimeOfReportGeneration string
    Time when the audit report was generated RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
    EnableProcessTree int
    AccessRequestId string
    AuditReportStatus string
    auditReportStatus for the accessRequestId
    Id string
    The provider-assigned unique ID for this managed resource.
    ProcessTree string
    Contains the process tree data
    Report string
    Contains the report data.
    TimeOfReportGeneration string
    Time when the audit report was generated RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
    EnableProcessTree int
    accessRequestId String
    auditReportStatus String
    auditReportStatus for the accessRequestId
    id String
    The provider-assigned unique ID for this managed resource.
    processTree String
    Contains the process tree data
    report String
    Contains the report data.
    timeOfReportGeneration String
    Time when the audit report was generated RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
    enableProcessTree Integer
    accessRequestId string
    auditReportStatus string
    auditReportStatus for the accessRequestId
    id string
    The provider-assigned unique ID for this managed resource.
    processTree string
    Contains the process tree data
    report string
    Contains the report data.
    timeOfReportGeneration string
    Time when the audit report was generated RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
    enableProcessTree number
    access_request_id str
    audit_report_status str
    auditReportStatus for the accessRequestId
    id str
    The provider-assigned unique ID for this managed resource.
    process_tree str
    Contains the process tree data
    report str
    Contains the report data.
    time_of_report_generation str
    Time when the audit report was generated RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
    enable_process_tree int
    accessRequestId String
    auditReportStatus String
    auditReportStatus for the accessRequestId
    id String
    The provider-assigned unique ID for this managed resource.
    processTree String
    Contains the process tree data
    report String
    Contains the report data.
    timeOfReportGeneration String
    Time when the audit report was generated RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
    enableProcessTree Number

    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