oci.DataSafe.getAuditProfileAvailableAuditVolume
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAuditProfileAvailableAuditVolume = oci.DataSafe.getAuditProfileAvailableAuditVolume({
auditProfileId: testAuditProfile.id,
workRequestId: testWorkRequest.id,
monthInConsiderationGreaterThan: auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan,
monthInConsiderationLessThan: auditProfileAvailableAuditVolumeMonthInConsiderationLessThan,
trailLocation: auditProfileAvailableAuditVolumeTrailLocation,
});
import pulumi
import pulumi_oci as oci
test_audit_profile_available_audit_volume = oci.DataSafe.get_audit_profile_available_audit_volume(audit_profile_id=test_audit_profile["id"],
work_request_id=test_work_request["id"],
month_in_consideration_greater_than=audit_profile_available_audit_volume_month_in_consideration_greater_than,
month_in_consideration_less_than=audit_profile_available_audit_volume_month_in_consideration_less_than,
trail_location=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: testAuditProfile.Id,
WorkRequestId: testWorkRequest.Id,
MonthInConsiderationGreaterThan: pulumi.StringRef(auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan),
MonthInConsiderationLessThan: pulumi.StringRef(auditProfileAvailableAuditVolumeMonthInConsiderationLessThan),
TrailLocation: pulumi.StringRef(auditProfileAvailableAuditVolumeTrailLocation),
}, 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 testAuditProfileAvailableAuditVolume = Oci.DataSafe.GetAuditProfileAvailableAuditVolume.Invoke(new()
{
AuditProfileId = testAuditProfile.Id,
WorkRequestId = testWorkRequest.Id,
MonthInConsiderationGreaterThan = auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan,
MonthInConsiderationLessThan = auditProfileAvailableAuditVolumeMonthInConsiderationLessThan,
TrailLocation = auditProfileAvailableAuditVolumeTrailLocation,
});
});
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.GetAuditProfileAvailableAuditVolumeArgs;
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 testAuditProfileAvailableAuditVolume = DataSafeFunctions.getAuditProfileAvailableAuditVolume(GetAuditProfileAvailableAuditVolumeArgs.builder()
.auditProfileId(testAuditProfile.id())
.workRequestId(testWorkRequest.id())
.monthInConsiderationGreaterThan(auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan)
.monthInConsiderationLessThan(auditProfileAvailableAuditVolumeMonthInConsiderationLessThan)
.trailLocation(auditProfileAvailableAuditVolumeTrailLocation)
.build());
}
}
variables:
testAuditProfileAvailableAuditVolume:
fn::invoke:
Function: oci:DataSafe:getAuditProfileAvailableAuditVolume
Arguments:
auditProfileId: ${testAuditProfile.id}
workRequestId: ${testWorkRequest.id}
monthInConsiderationGreaterThan: ${auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan}
monthInConsiderationLessThan: ${auditProfileAvailableAuditVolumeMonthInConsiderationLessThan}
trailLocation: ${auditProfileAvailableAuditVolumeTrailLocation}
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:
- Audit
Profile stringId - The OCID of the audit.
- Work
Request stringId - The OCID of the work request.
- Month
In stringConsideration Greater Than 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.Example: 2016-12-19T00:00:00.000Z
- Month
In stringConsideration Less Than 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.Example: 2016-12-19T00:00:00.000Z
- Trail
Location string - The audit trail location.
- Audit
Profile stringId - The OCID of the audit.
- Work
Request stringId - The OCID of the work request.
- Month
In stringConsideration Greater Than 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.Example: 2016-12-19T00:00:00.000Z
- Month
In stringConsideration Less Than 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.Example: 2016-12-19T00:00:00.000Z
- Trail
Location string - The audit trail location.
- audit
Profile StringId - The OCID of the audit.
- work
Request StringId - The OCID of the work request.
- month
In StringConsideration Greater Than 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.Example: 2016-12-19T00:00:00.000Z
- month
In StringConsideration Less Than 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.Example: 2016-12-19T00:00:00.000Z
- trail
Location String - The audit trail location.
- audit
Profile stringId - The OCID of the audit.
- work
Request stringId - The OCID of the work request.
- month
In stringConsideration Greater Than 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.Example: 2016-12-19T00:00:00.000Z
- month
In stringConsideration Less Than 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.Example: 2016-12-19T00:00:00.000Z
- trail
Location string - The audit trail location.
- audit_
profile_ strid - The OCID of the audit.
- work_
request_ strid - The OCID of the work request.
- month_
in_ strconsideration_ greater_ than 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.Example: 2016-12-19T00:00:00.000Z
- month_
in_ strconsideration_ less_ than 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.Example: 2016-12-19T00:00:00.000Z
- trail_
location str - The audit trail location.
- audit
Profile StringId - The OCID of the audit.
- work
Request StringId - The OCID of the work request.
- month
In StringConsideration Greater Than 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.Example: 2016-12-19T00:00:00.000Z
- month
In StringConsideration Less Than 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.Example: 2016-12-19T00:00:00.000Z
- trail
Location String - The audit trail location.
getAuditProfileAvailableAuditVolume Result
The following output properties are available:
- Audit
Profile stringId - The OCID of the audit profile resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Audit Profile Available Audit Volume Item> - Array of available audit volume summary.
- Work
Request stringId - Month
In stringConsideration Greater Than - Month
In stringConsideration Less Than - Trail
Location string - Audit trail location on the target database from where the audit data is being collected by Data Safe.
- Audit
Profile stringId - The OCID of the audit profile resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Audit Profile Available Audit Volume Item - Array of available audit volume summary.
- Work
Request stringId - Month
In stringConsideration Greater Than - Month
In stringConsideration Less Than - Trail
Location string - Audit trail location on the target database from where the audit data is being collected by Data Safe.
- audit
Profile StringId - The OCID of the audit profile resource.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Audit Profile Available Audit Volume Item> - Array of available audit volume summary.
- work
Request StringId - month
In StringConsideration Greater Than - month
In StringConsideration Less Than - trail
Location String - Audit trail location on the target database from where the audit data is being collected by Data Safe.
- audit
Profile stringId - The OCID of the audit profile resource.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Audit Profile Available Audit Volume Item[] - Array of available audit volume summary.
- work
Request stringId - month
In stringConsideration Greater Than - month
In stringConsideration Less Than - trail
Location string - Audit trail location on the target database from where the audit data is being collected by Data Safe.
- audit_
profile_ strid - The OCID of the audit profile resource.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[datasafe.
Get Audit Profile Available Audit Volume Item] - Array of available audit volume summary.
- work_
request_ strid - month_
in_ strconsideration_ greater_ than - month_
in_ strconsideration_ less_ than - trail_
location str - Audit trail location on the target database from where the audit data is being collected by Data Safe.
- audit
Profile StringId - 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.
- work
Request StringId - month
In StringConsideration Greater Than - month
In StringConsideration Less Than - trail
Location String - Audit trail location on the target database from where the audit data is being collected by Data Safe.
Supporting Types
GetAuditProfileAvailableAuditVolumeItem
- Audit
Profile stringId - The OCID of the audit.
- Month
In stringConsideration - 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 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 stringId - The OCID of the audit.
- Month
In stringConsideration - 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 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 StringId - The OCID of the audit.
- month
In StringConsideration - 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 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 stringId - The OCID of the audit.
- month
In stringConsideration - 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 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_ strid - The OCID of the audit.
- month_
in_ strconsideration - 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.
- audit
Profile StringId - The OCID of the audit.
- month
In StringConsideration - 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 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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.