Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getAuditProfileAvailableAuditVolume

This data source provides details about a specific Audit Profile Available Audit Volume resource in Oracle Cloud Infrastructure Data Safe service.

Retrieves a list of audit trails, and associated audit event volume for each trail up to defined start date.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testAuditProfileAvailableAuditVolume = Output.Create(Oci.DataSafe.GetAuditProfileAvailableAuditVolume.InvokeAsync(new Oci.DataSafe.GetAuditProfileAvailableAuditVolumeArgs
        {
            AuditProfileId = oci_data_safe_audit_profile.Test_audit_profile.Id,
            WorkRequestId = oci_containerengine_work_request.Test_work_request.Id,
            MonthInConsiderationGreaterThan = @var.Audit_profile_available_audit_volume_month_in_consideration_greater_than,
            MonthInConsiderationLessThan = @var.Audit_profile_available_audit_volume_month_in_consideration_less_than,
            TrailLocation = @var.Audit_profile_available_audit_volume_trail_location,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataSafe.GetAuditProfileAvailableAuditVolume(ctx, &datasafe.GetAuditProfileAvailableAuditVolumeArgs{
			AuditProfileId:                  oci_data_safe_audit_profile.Test_audit_profile.Id,
			WorkRequestId:                   oci_containerengine_work_request.Test_work_request.Id,
			MonthInConsiderationGreaterThan: pulumi.StringRef(_var.Audit_profile_available_audit_volume_month_in_consideration_greater_than),
			MonthInConsiderationLessThan:    pulumi.StringRef(_var.Audit_profile_available_audit_volume_month_in_consideration_less_than),
			TrailLocation:                   pulumi.StringRef(_var.Audit_profile_available_audit_volume_trail_location),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_audit_profile_available_audit_volume = oci.DataSafe.get_audit_profile_available_audit_volume(audit_profile_id=oci_data_safe_audit_profile["test_audit_profile"]["id"],
    work_request_id=oci_containerengine_work_request["test_work_request"]["id"],
    month_in_consideration_greater_than=var["audit_profile_available_audit_volume_month_in_consideration_greater_than"],
    month_in_consideration_less_than=var["audit_profile_available_audit_volume_month_in_consideration_less_than"],
    trail_location=var["audit_profile_available_audit_volume_trail_location"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAuditProfileAvailableAuditVolume = oci.DataSafe.getAuditProfileAvailableAuditVolume({
    auditProfileId: oci_data_safe_audit_profile.test_audit_profile.id,
    workRequestId: oci_containerengine_work_request.test_work_request.id,
    monthInConsiderationGreaterThan: _var.audit_profile_available_audit_volume_month_in_consideration_greater_than,
    monthInConsiderationLessThan: _var.audit_profile_available_audit_volume_month_in_consideration_less_than,
    trailLocation: _var.audit_profile_available_audit_volume_trail_location,
});

Coming soon!

Using getAuditProfileAvailableAuditVolume

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 getAuditProfileAvailableAuditVolume(args: GetAuditProfileAvailableAuditVolumeArgs, opts?: InvokeOptions): Promise<GetAuditProfileAvailableAuditVolumeResult>
function getAuditProfileAvailableAuditVolumeOutput(args: GetAuditProfileAvailableAuditVolumeOutputArgs, opts?: InvokeOptions): Output<GetAuditProfileAvailableAuditVolumeResult>
def get_audit_profile_available_audit_volume(audit_profile_id: Optional[str] = None,
                                             month_in_consideration_greater_than: Optional[str] = None,
                                             month_in_consideration_less_than: Optional[str] = None,
                                             trail_location: Optional[str] = None,
                                             work_request_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetAuditProfileAvailableAuditVolumeResult
def get_audit_profile_available_audit_volume_output(audit_profile_id: Optional[pulumi.Input[str]] = None,
                                             month_in_consideration_greater_than: Optional[pulumi.Input[str]] = None,
                                             month_in_consideration_less_than: Optional[pulumi.Input[str]] = None,
                                             trail_location: Optional[pulumi.Input[str]] = None,
                                             work_request_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetAuditProfileAvailableAuditVolumeResult]
func GetAuditProfileAvailableAuditVolume(ctx *Context, args *GetAuditProfileAvailableAuditVolumeArgs, opts ...InvokeOption) (*GetAuditProfileAvailableAuditVolumeResult, error)
func GetAuditProfileAvailableAuditVolumeOutput(ctx *Context, args *GetAuditProfileAvailableAuditVolumeOutputArgs, opts ...InvokeOption) GetAuditProfileAvailableAuditVolumeResultOutput

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

public static class GetAuditProfileAvailableAuditVolume 
{
    public static Task<GetAuditProfileAvailableAuditVolumeResult> InvokeAsync(GetAuditProfileAvailableAuditVolumeArgs args, InvokeOptions? opts = null)
    public static Output<GetAuditProfileAvailableAuditVolumeResult> Invoke(GetAuditProfileAvailableAuditVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuditProfileAvailableAuditVolumeResult> getAuditProfileAvailableAuditVolume(GetAuditProfileAvailableAuditVolumeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DataSafe/getAuditProfileAvailableAuditVolume:getAuditProfileAvailableAuditVolume
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AuditProfileId string

The OCID of the audit.

WorkRequestId string

The OCID of the work request.

MonthInConsiderationGreaterThan string

Specifying monthInConsiderationGreaterThan parameter will retrieve all items for which the event month is greater than the date and time specified, in the format defined by RFC3339.

MonthInConsiderationLessThan string

Specifying monthInConsiderationLessThan parameter will retrieve all items for which the event month is less than the date and time specified, in the format defined by RFC3339.

TrailLocation string

The audit trail location.

AuditProfileId string

The OCID of the audit.

WorkRequestId string

The OCID of the work request.

MonthInConsiderationGreaterThan string

Specifying monthInConsiderationGreaterThan parameter will retrieve all items for which the event month is greater than the date and time specified, in the format defined by RFC3339.

MonthInConsiderationLessThan string

Specifying monthInConsiderationLessThan parameter will retrieve all items for which the event month is less than the date and time specified, in the format defined by RFC3339.

TrailLocation string

The audit trail location.

auditProfileId String

The OCID of the audit.

workRequestId String

The OCID of the work request.

monthInConsiderationGreaterThan String

Specifying monthInConsiderationGreaterThan parameter will retrieve all items for which the event month is greater than the date and time specified, in the format defined by RFC3339.

monthInConsiderationLessThan String

Specifying monthInConsiderationLessThan parameter will retrieve all items for which the event month is less than the date and time specified, in the format defined by RFC3339.

trailLocation String

The audit trail location.

auditProfileId string

The OCID of the audit.

workRequestId string

The OCID of the work request.

monthInConsiderationGreaterThan string

Specifying monthInConsiderationGreaterThan parameter will retrieve all items for which the event month is greater than the date and time specified, in the format defined by RFC3339.

monthInConsiderationLessThan string

Specifying monthInConsiderationLessThan parameter will retrieve all items for which the event month is less than the date and time specified, in the format defined by RFC3339.

trailLocation string

The audit trail location.

audit_profile_id str

The OCID of the audit.

work_request_id str

The OCID of the work request.

month_in_consideration_greater_than str

Specifying monthInConsiderationGreaterThan parameter will retrieve all items for which the event month is greater than the date and time specified, in the format defined by RFC3339.

month_in_consideration_less_than str

Specifying monthInConsiderationLessThan parameter will retrieve all items for which the event month is less than the date and time specified, in the format defined by RFC3339.

trail_location str

The audit trail location.

auditProfileId String

The OCID of the audit.

workRequestId String

The OCID of the work request.

monthInConsiderationGreaterThan String

Specifying monthInConsiderationGreaterThan parameter will retrieve all items for which the event month is greater than the date and time specified, in the format defined by RFC3339.

monthInConsiderationLessThan String

Specifying monthInConsiderationLessThan parameter will retrieve all items for which the event month is less than the date and time specified, in the format defined by RFC3339.

trailLocation String

The audit trail location.

getAuditProfileAvailableAuditVolume Result

The following output properties are available:

AuditProfileId string

The OCID of the audit profile resource.

Id string

The provider-assigned unique ID for this managed resource.

Items List<GetAuditProfileAvailableAuditVolumeItem>

Array of available audit volume summary.

WorkRequestId string
MonthInConsiderationGreaterThan string
MonthInConsiderationLessThan string
TrailLocation string

Audit trail location on the target database from where the audit data is being collected by Data Safe.

AuditProfileId string

The OCID of the audit profile resource.

Id string

The provider-assigned unique ID for this managed resource.

Items []GetAuditProfileAvailableAuditVolumeItem

Array of available audit volume summary.

WorkRequestId string
MonthInConsiderationGreaterThan string
MonthInConsiderationLessThan string
TrailLocation string

Audit trail location on the target database from where the audit data is being collected by Data Safe.

auditProfileId String

The OCID of the audit profile resource.

id String

The provider-assigned unique ID for this managed resource.

items List<GetAuditProfileAvailableAuditVolumeItem>

Array of available audit volume summary.

workRequestId String
monthInConsiderationGreaterThan String
monthInConsiderationLessThan String
trailLocation String

Audit trail location on the target database from where the audit data is being collected by Data Safe.

auditProfileId string

The OCID of the audit profile resource.

id string

The provider-assigned unique ID for this managed resource.

items GetAuditProfileAvailableAuditVolumeItem[]

Array of available audit volume summary.

workRequestId string
monthInConsiderationGreaterThan string
monthInConsiderationLessThan string
trailLocation string

Audit trail location on the target database from where the audit data is being collected by Data Safe.

audit_profile_id str

The OCID of the audit profile resource.

id str

The provider-assigned unique ID for this managed resource.

items GetAuditProfileAvailableAuditVolumeItem]

Array of available audit volume summary.

work_request_id str
month_in_consideration_greater_than str
month_in_consideration_less_than str
trail_location str

Audit trail location on the target database from where the audit data is being collected by Data Safe.

auditProfileId String

The OCID of the audit profile resource.

id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

Array of available audit volume summary.

workRequestId String
monthInConsiderationGreaterThan String
monthInConsiderationLessThan String
trailLocation String

Audit trail location on the target database from where the audit data is being collected by Data Safe.

Supporting Types

GetAuditProfileAvailableAuditVolumeItem

AuditProfileId string

The OCID of the audit.

MonthInConsideration string

Represents the month under consideration for which aggregated audit data volume available at the target is computed. This field will be the UTC start of the day of the first day of the month for which the aggregate count corresponds to, in the format defined by RFC3339.. For instance, the value of 01-01-2021T00:00:00Z represents Jan 2021.

TrailLocation string

The audit trail location.

Volume string

Represents the aggregated audit data volume available in the audit trails on the target database which is yet to be collected by Data Safe for the specified month.

AuditProfileId string

The OCID of the audit.

MonthInConsideration string

Represents the month under consideration for which aggregated audit data volume available at the target is computed. This field will be the UTC start of the day of the first day of the month for which the aggregate count corresponds to, in the format defined by RFC3339.. For instance, the value of 01-01-2021T00:00:00Z represents Jan 2021.

TrailLocation string

The audit trail location.

Volume string

Represents the aggregated audit data volume available in the audit trails on the target database which is yet to be collected by Data Safe for the specified month.

auditProfileId String

The OCID of the audit.

monthInConsideration String

Represents the month under consideration for which aggregated audit data volume available at the target is computed. This field will be the UTC start of the day of the first day of the month for which the aggregate count corresponds to, in the format defined by RFC3339.. For instance, the value of 01-01-2021T00:00:00Z represents Jan 2021.

trailLocation String

The audit trail location.

volume String

Represents the aggregated audit data volume available in the audit trails on the target database which is yet to be collected by Data Safe for the specified month.

auditProfileId string

The OCID of the audit.

monthInConsideration string

Represents the month under consideration for which aggregated audit data volume available at the target is computed. This field will be the UTC start of the day of the first day of the month for which the aggregate count corresponds to, in the format defined by RFC3339.. For instance, the value of 01-01-2021T00:00:00Z represents Jan 2021.

trailLocation string

The audit trail location.

volume string

Represents the aggregated audit data volume available in the audit trails on the target database which is yet to be collected by Data Safe for the specified month.

audit_profile_id str

The OCID of the audit.

month_in_consideration str

Represents the month under consideration for which aggregated audit data volume available at the target is computed. This field will be the UTC start of the day of the first day of the month for which the aggregate count corresponds to, in the format defined by RFC3339.. For instance, the value of 01-01-2021T00:00:00Z represents Jan 2021.

trail_location str

The audit trail location.

volume str

Represents the aggregated audit data volume available in the audit trails on the target database which is yet to be collected by Data Safe for the specified month.

auditProfileId String

The OCID of the audit.

monthInConsideration String

Represents the month under consideration for which aggregated audit data volume available at the target is computed. This field will be the UTC start of the day of the first day of the month for which the aggregate count corresponds to, in the format defined by RFC3339.. For instance, the value of 01-01-2021T00:00:00Z represents Jan 2021.

trailLocation String

The audit trail location.

volume String

Represents the aggregated audit data volume available in the audit trails on the target database which is yet to be collected by Data Safe for the specified month.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.