oci.DataSafe.getAuditProfileAvailableAuditVolumes
Explore with Pulumi AI
This data source provides the list of Audit Profile Available Audit Volumes 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 testAuditProfileAvailableAuditVolumes = oci.DataSafe.getAuditProfileAvailableAuditVolumes({
    auditProfileId: testAuditProfile.id,
    workRequestId: testWorkRequest.id,
    monthInConsiderationGreaterThan: auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan,
    monthInConsiderationLessThan: auditProfileAvailableAuditVolumeMonthInConsiderationLessThan,
    trailLocation: auditProfileAvailableAuditVolumeTrailLocation,
});
import pulumi
import pulumi_oci as oci
test_audit_profile_available_audit_volumes = oci.DataSafe.get_audit_profile_available_audit_volumes(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/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetAuditProfileAvailableAuditVolumes(ctx, &datasafe.GetAuditProfileAvailableAuditVolumesArgs{
			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 testAuditProfileAvailableAuditVolumes = Oci.DataSafe.GetAuditProfileAvailableAuditVolumes.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.GetAuditProfileAvailableAuditVolumesArgs;
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 testAuditProfileAvailableAuditVolumes = DataSafeFunctions.getAuditProfileAvailableAuditVolumes(GetAuditProfileAvailableAuditVolumesArgs.builder()
            .auditProfileId(testAuditProfile.id())
            .workRequestId(testWorkRequest.id())
            .monthInConsiderationGreaterThan(auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan)
            .monthInConsiderationLessThan(auditProfileAvailableAuditVolumeMonthInConsiderationLessThan)
            .trailLocation(auditProfileAvailableAuditVolumeTrailLocation)
            .build());
    }
}
variables:
  testAuditProfileAvailableAuditVolumes:
    fn::invoke:
      function: oci:DataSafe:getAuditProfileAvailableAuditVolumes
      arguments:
        auditProfileId: ${testAuditProfile.id}
        workRequestId: ${testWorkRequest.id}
        monthInConsiderationGreaterThan: ${auditProfileAvailableAuditVolumeMonthInConsiderationGreaterThan}
        monthInConsiderationLessThan: ${auditProfileAvailableAuditVolumeMonthInConsiderationLessThan}
        trailLocation: ${auditProfileAvailableAuditVolumeTrailLocation}
Using getAuditProfileAvailableAuditVolumes
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 getAuditProfileAvailableAuditVolumes(args: GetAuditProfileAvailableAuditVolumesArgs, opts?: InvokeOptions): Promise<GetAuditProfileAvailableAuditVolumesResult>
function getAuditProfileAvailableAuditVolumesOutput(args: GetAuditProfileAvailableAuditVolumesOutputArgs, opts?: InvokeOptions): Output<GetAuditProfileAvailableAuditVolumesResult>def get_audit_profile_available_audit_volumes(audit_profile_id: Optional[str] = None,
                                              filters: Optional[Sequence[GetAuditProfileAvailableAuditVolumesFilter]] = 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) -> GetAuditProfileAvailableAuditVolumesResult
def get_audit_profile_available_audit_volumes_output(audit_profile_id: Optional[pulumi.Input[str]] = None,
                                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuditProfileAvailableAuditVolumesFilterArgs]]]] = 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[GetAuditProfileAvailableAuditVolumesResult]func GetAuditProfileAvailableAuditVolumes(ctx *Context, args *GetAuditProfileAvailableAuditVolumesArgs, opts ...InvokeOption) (*GetAuditProfileAvailableAuditVolumesResult, error)
func GetAuditProfileAvailableAuditVolumesOutput(ctx *Context, args *GetAuditProfileAvailableAuditVolumesOutputArgs, opts ...InvokeOption) GetAuditProfileAvailableAuditVolumesResultOutput> Note: This function is named GetAuditProfileAvailableAuditVolumes in the Go SDK.
public static class GetAuditProfileAvailableAuditVolumes 
{
    public static Task<GetAuditProfileAvailableAuditVolumesResult> InvokeAsync(GetAuditProfileAvailableAuditVolumesArgs args, InvokeOptions? opts = null)
    public static Output<GetAuditProfileAvailableAuditVolumesResult> Invoke(GetAuditProfileAvailableAuditVolumesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAuditProfileAvailableAuditVolumesResult> getAuditProfileAvailableAuditVolumes(GetAuditProfileAvailableAuditVolumesArgs args, InvokeOptions options)
public static Output<GetAuditProfileAvailableAuditVolumesResult> getAuditProfileAvailableAuditVolumes(GetAuditProfileAvailableAuditVolumesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getAuditProfileAvailableAuditVolumes:getAuditProfileAvailableAuditVolumes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AuditProfile stringId 
- The OCID of the audit.
- WorkRequest stringId 
- The OCID of the work request.
- Filters
List<GetAudit Profile Available Audit Volumes Filter> 
- MonthIn stringConsideration Greater Than 
- Specifying - monthInConsiderationGreaterThanparameter 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 
- MonthIn stringConsideration Less Than 
- Specifying - monthInConsiderationLessThanparameter 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 
- TrailLocation string
- The audit trail location.
- AuditProfile stringId 
- The OCID of the audit.
- WorkRequest stringId 
- The OCID of the work request.
- Filters
[]GetAudit Profile Available Audit Volumes Filter 
- MonthIn stringConsideration Greater Than 
- Specifying - monthInConsiderationGreaterThanparameter 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 
- MonthIn stringConsideration Less Than 
- Specifying - monthInConsiderationLessThanparameter 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 
- TrailLocation string
- The audit trail location.
- auditProfile StringId 
- The OCID of the audit.
- workRequest StringId 
- The OCID of the work request.
- filters
List<GetAudit Profile Available Audit Volumes Filter> 
- monthIn StringConsideration Greater Than 
- Specifying - monthInConsiderationGreaterThanparameter 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 
- monthIn StringConsideration Less Than 
- Specifying - monthInConsiderationLessThanparameter 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 
- trailLocation String
- The audit trail location.
- auditProfile stringId 
- The OCID of the audit.
- workRequest stringId 
- The OCID of the work request.
- filters
GetAudit Profile Available Audit Volumes Filter[] 
- monthIn stringConsideration Greater Than 
- Specifying - monthInConsiderationGreaterThanparameter 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 
- monthIn stringConsideration Less Than 
- Specifying - monthInConsiderationLessThanparameter 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 
- trailLocation string
- The audit trail location.
- audit_profile_ strid 
- The OCID of the audit.
- work_request_ strid 
- The OCID of the work request.
- filters
Sequence[GetAudit Profile Available Audit Volumes Filter] 
- month_in_ strconsideration_ greater_ than 
- Specifying - monthInConsiderationGreaterThanparameter 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 - monthInConsiderationLessThanparameter 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.
- auditProfile StringId 
- The OCID of the audit.
- workRequest StringId 
- The OCID of the work request.
- filters List<Property Map>
- monthIn StringConsideration Greater Than 
- Specifying - monthInConsiderationGreaterThanparameter 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 
- monthIn StringConsideration Less Than 
- Specifying - monthInConsiderationLessThanparameter 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 
- trailLocation String
- The audit trail location.
getAuditProfileAvailableAuditVolumes Result
The following output properties are available:
- AuditProfile stringId 
- The OCID of the audit profile resource.
- AvailableAudit List<GetVolume Collections Audit Profile Available Audit Volumes Available Audit Volume Collection> 
- The list of available_audit_volume_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- WorkRequest stringId 
- Filters
List<GetAudit Profile Available Audit Volumes Filter> 
- MonthIn stringConsideration Greater Than 
- MonthIn stringConsideration Less Than 
- TrailLocation string
- Audit trail location on the target database from where the audit data is being collected by Data Safe.
- AuditProfile stringId 
- The OCID of the audit profile resource.
- AvailableAudit []GetVolume Collections Audit Profile Available Audit Volumes Available Audit Volume Collection 
- The list of available_audit_volume_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- WorkRequest stringId 
- Filters
[]GetAudit Profile Available Audit Volumes Filter 
- MonthIn stringConsideration Greater Than 
- MonthIn stringConsideration Less Than 
- TrailLocation string
- Audit trail location on the target database from where the audit data is being collected by Data Safe.
- auditProfile StringId 
- The OCID of the audit profile resource.
- availableAudit List<GetVolume Collections Audit Profile Available Audit Volumes Available Audit Volume Collection> 
- The list of available_audit_volume_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- workRequest StringId 
- filters
List<GetAudit Profile Available Audit Volumes Filter> 
- monthIn StringConsideration Greater Than 
- monthIn StringConsideration Less Than 
- trailLocation String
- Audit trail location on the target database from where the audit data is being collected by Data Safe.
- auditProfile stringId 
- The OCID of the audit profile resource.
- availableAudit GetVolume Collections Audit Profile Available Audit Volumes Available Audit Volume Collection[] 
- The list of available_audit_volume_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- workRequest stringId 
- filters
GetAudit Profile Available Audit Volumes Filter[] 
- monthIn stringConsideration Greater Than 
- monthIn stringConsideration Less Than 
- trailLocation 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.
- available_audit_ Sequence[Getvolume_ collections Audit Profile Available Audit Volumes Available Audit Volume Collection] 
- The list of available_audit_volume_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- work_request_ strid 
- filters
Sequence[GetAudit Profile Available Audit Volumes Filter] 
- 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.
- auditProfile StringId 
- The OCID of the audit profile resource.
- availableAudit List<Property Map>Volume Collections 
- The list of available_audit_volume_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- workRequest StringId 
- filters List<Property Map>
- monthIn StringConsideration Greater Than 
- monthIn StringConsideration Less Than 
- trailLocation String
- Audit trail location on the target database from where the audit data is being collected by Data Safe.
Supporting Types
GetAuditProfileAvailableAuditVolumesAvailableAuditVolumeCollection         
- Items
List<GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item> 
- Array of available audit volume summary.
- Items
[]GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item 
- Array of available audit volume summary.
- items
List<GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item> 
- Array of available audit volume summary.
- items
GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item[] 
- Array of available audit volume summary.
- items
Sequence[GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item] 
- Array of available audit volume summary.
- items List<Property Map>
- Array of available audit volume summary.
GetAuditProfileAvailableAuditVolumesAvailableAuditVolumeCollectionItem          
- Items
List<GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item Item> 
- Array of available audit volume summary.
- Items
[]GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item Item 
- Array of available audit volume summary.
- items
List<GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item Item> 
- Array of available audit volume summary.
- items
GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item Item[] 
- Array of available audit volume summary.
- items
Sequence[GetAudit Profile Available Audit Volumes Available Audit Volume Collection Item Item] 
- Array of available audit volume summary.
- items List<Property Map>
- Array of available audit volume summary.
GetAuditProfileAvailableAuditVolumesAvailableAuditVolumeCollectionItemItem           
- AuditProfile stringId 
- The OCID of the audit.
- AuditTrail stringId 
- The OCID of the audit trail.
- DatabaseUnique stringName 
- Unique name of the database associated to the peer target database.
- MonthIn 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.
- 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.
- AuditProfile stringId 
- The OCID of the audit.
- AuditTrail stringId 
- The OCID of the audit trail.
- DatabaseUnique stringName 
- Unique name of the database associated to the peer target database.
- MonthIn 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.
- 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.
- auditProfile StringId 
- The OCID of the audit.
- auditTrail StringId 
- The OCID of the audit trail.
- databaseUnique StringName 
- Unique name of the database associated to the peer target database.
- monthIn 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.
- 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.
- auditProfile stringId 
- The OCID of the audit.
- auditTrail stringId 
- The OCID of the audit trail.
- databaseUnique stringName 
- Unique name of the database associated to the peer target database.
- monthIn 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.
- 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_ strid 
- The OCID of the audit.
- audit_trail_ strid 
- The OCID of the audit trail.
- database_unique_ strname 
- Unique name of the database associated to the peer target database.
- 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.
- auditProfile StringId 
- The OCID of the audit.
- auditTrail StringId 
- The OCID of the audit trail.
- databaseUnique StringName 
- Unique name of the database associated to the peer target database.
- monthIn 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.
- 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.
GetAuditProfileAvailableAuditVolumesFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.