1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getAuditProfileTargetOverrides
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataSafe.getAuditProfileTargetOverrides

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides the list of Audit Profile Target Overrides in Oracle Cloud Infrastructure Data Safe service.

    Gets a list of all targets whose audit settings override the target group setting.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAuditProfileTargetOverrides = oci.DataSafe.getAuditProfileTargetOverrides({
        auditProfileId: testAuditProfile.id,
        displayName: auditProfileTargetOverrideDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_audit_profile_target_overrides = oci.DataSafe.get_audit_profile_target_overrides(audit_profile_id=test_audit_profile["id"],
        display_name=audit_profile_target_override_display_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.GetAuditProfileTargetOverrides(ctx, &datasafe.GetAuditProfileTargetOverridesArgs{
    			AuditProfileId: testAuditProfile.Id,
    			DisplayName:    pulumi.StringRef(auditProfileTargetOverrideDisplayName),
    		}, 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 testAuditProfileTargetOverrides = Oci.DataSafe.GetAuditProfileTargetOverrides.Invoke(new()
        {
            AuditProfileId = testAuditProfile.Id,
            DisplayName = auditProfileTargetOverrideDisplayName,
        });
    
    });
    
    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.GetAuditProfileTargetOverridesArgs;
    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 testAuditProfileTargetOverrides = DataSafeFunctions.getAuditProfileTargetOverrides(GetAuditProfileTargetOverridesArgs.builder()
                .auditProfileId(testAuditProfile.id())
                .displayName(auditProfileTargetOverrideDisplayName)
                .build());
    
        }
    }
    
    variables:
      testAuditProfileTargetOverrides:
        fn::invoke:
          function: oci:DataSafe:getAuditProfileTargetOverrides
          arguments:
            auditProfileId: ${testAuditProfile.id}
            displayName: ${auditProfileTargetOverrideDisplayName}
    

    Using getAuditProfileTargetOverrides

    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 getAuditProfileTargetOverrides(args: GetAuditProfileTargetOverridesArgs, opts?: InvokeOptions): Promise<GetAuditProfileTargetOverridesResult>
    function getAuditProfileTargetOverridesOutput(args: GetAuditProfileTargetOverridesOutputArgs, opts?: InvokeOptions): Output<GetAuditProfileTargetOverridesResult>
    def get_audit_profile_target_overrides(audit_profile_id: Optional[str] = None,
                                           display_name: Optional[str] = None,
                                           filters: Optional[Sequence[GetAuditProfileTargetOverridesFilter]] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAuditProfileTargetOverridesResult
    def get_audit_profile_target_overrides_output(audit_profile_id: Optional[pulumi.Input[str]] = None,
                                           display_name: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuditProfileTargetOverridesFilterArgs]]]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetAuditProfileTargetOverridesResult]
    func GetAuditProfileTargetOverrides(ctx *Context, args *GetAuditProfileTargetOverridesArgs, opts ...InvokeOption) (*GetAuditProfileTargetOverridesResult, error)
    func GetAuditProfileTargetOverridesOutput(ctx *Context, args *GetAuditProfileTargetOverridesOutputArgs, opts ...InvokeOption) GetAuditProfileTargetOverridesResultOutput

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

    public static class GetAuditProfileTargetOverrides 
    {
        public static Task<GetAuditProfileTargetOverridesResult> InvokeAsync(GetAuditProfileTargetOverridesArgs args, InvokeOptions? opts = null)
        public static Output<GetAuditProfileTargetOverridesResult> Invoke(GetAuditProfileTargetOverridesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAuditProfileTargetOverridesResult> getAuditProfileTargetOverrides(GetAuditProfileTargetOverridesArgs args, InvokeOptions options)
    public static Output<GetAuditProfileTargetOverridesResult> getAuditProfileTargetOverrides(GetAuditProfileTargetOverridesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getAuditProfileTargetOverrides:getAuditProfileTargetOverrides
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AuditProfileId string
    The OCID of the audit.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters List<GetAuditProfileTargetOverridesFilter>
    AuditProfileId string
    The OCID of the audit.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters []GetAuditProfileTargetOverridesFilter
    auditProfileId String
    The OCID of the audit.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<GetAuditProfileTargetOverridesFilter>
    auditProfileId string
    The OCID of the audit.
    displayName string
    A filter to return only resources that match the specified display name.
    filters GetAuditProfileTargetOverridesFilter[]
    audit_profile_id str
    The OCID of the audit.
    display_name str
    A filter to return only resources that match the specified display name.
    filters Sequence[GetAuditProfileTargetOverridesFilter]
    auditProfileId String
    The OCID of the audit.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<Property Map>

    getAuditProfileTargetOverrides Result

    The following output properties are available:

    AuditProfileId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetOverrideCollections List<GetAuditProfileTargetOverridesTargetOverrideCollection>
    The list of target_override_collection.
    DisplayName string
    Filters List<GetAuditProfileTargetOverridesFilter>
    AuditProfileId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetOverrideCollections []GetAuditProfileTargetOverridesTargetOverrideCollection
    The list of target_override_collection.
    DisplayName string
    Filters []GetAuditProfileTargetOverridesFilter
    auditProfileId String
    id String
    The provider-assigned unique ID for this managed resource.
    targetOverrideCollections List<GetAuditProfileTargetOverridesTargetOverrideCollection>
    The list of target_override_collection.
    displayName String
    filters List<GetAuditProfileTargetOverridesFilter>
    auditProfileId string
    id string
    The provider-assigned unique ID for this managed resource.
    targetOverrideCollections GetAuditProfileTargetOverridesTargetOverrideCollection[]
    The list of target_override_collection.
    displayName string
    filters GetAuditProfileTargetOverridesFilter[]
    auditProfileId String
    id String
    The provider-assigned unique ID for this managed resource.
    targetOverrideCollections List<Property Map>
    The list of target_override_collection.
    displayName String
    filters List<Property Map>

    Supporting Types

    GetAuditProfileTargetOverridesFilter

    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

    GetAuditProfileTargetOverridesTargetOverrideCollection

    Items List<GetAuditProfileTargetOverridesTargetOverrideCollectionItem>
    Array of target database override summary.
    TargetsConformingCount int
    Number of target databases within the target database group that conform with the audit profile of the target database group.
    TargetsCount int
    Number of target databases within the target database group.
    TargetsOverridingCount int
    Number of target databases within the target database group that override the audit profile of the target database group.
    TargetsOverridingOfflineMonthsCount int
    Number of target databases within the group that override the offline retention setting of the audit profile for the target database group.
    TargetsOverridingOnlineMonthsCount int
    Number of target databases within the group that override the online retention setting of the audit profile for the target database group.
    TargetsOverridingPaidUsageCount int
    Number of target databases within the group that override the paid usage setting of the audit profile for the target database group.
    Items []GetAuditProfileTargetOverridesTargetOverrideCollectionItem
    Array of target database override summary.
    TargetsConformingCount int
    Number of target databases within the target database group that conform with the audit profile of the target database group.
    TargetsCount int
    Number of target databases within the target database group.
    TargetsOverridingCount int
    Number of target databases within the target database group that override the audit profile of the target database group.
    TargetsOverridingOfflineMonthsCount int
    Number of target databases within the group that override the offline retention setting of the audit profile for the target database group.
    TargetsOverridingOnlineMonthsCount int
    Number of target databases within the group that override the online retention setting of the audit profile for the target database group.
    TargetsOverridingPaidUsageCount int
    Number of target databases within the group that override the paid usage setting of the audit profile for the target database group.
    items List<GetAuditProfileTargetOverridesTargetOverrideCollectionItem>
    Array of target database override summary.
    targetsConformingCount Integer
    Number of target databases within the target database group that conform with the audit profile of the target database group.
    targetsCount Integer
    Number of target databases within the target database group.
    targetsOverridingCount Integer
    Number of target databases within the target database group that override the audit profile of the target database group.
    targetsOverridingOfflineMonthsCount Integer
    Number of target databases within the group that override the offline retention setting of the audit profile for the target database group.
    targetsOverridingOnlineMonthsCount Integer
    Number of target databases within the group that override the online retention setting of the audit profile for the target database group.
    targetsOverridingPaidUsageCount Integer
    Number of target databases within the group that override the paid usage setting of the audit profile for the target database group.
    items GetAuditProfileTargetOverridesTargetOverrideCollectionItem[]
    Array of target database override summary.
    targetsConformingCount number
    Number of target databases within the target database group that conform with the audit profile of the target database group.
    targetsCount number
    Number of target databases within the target database group.
    targetsOverridingCount number
    Number of target databases within the target database group that override the audit profile of the target database group.
    targetsOverridingOfflineMonthsCount number
    Number of target databases within the group that override the offline retention setting of the audit profile for the target database group.
    targetsOverridingOnlineMonthsCount number
    Number of target databases within the group that override the online retention setting of the audit profile for the target database group.
    targetsOverridingPaidUsageCount number
    Number of target databases within the group that override the paid usage setting of the audit profile for the target database group.
    items Sequence[GetAuditProfileTargetOverridesTargetOverrideCollectionItem]
    Array of target database override summary.
    targets_conforming_count int
    Number of target databases within the target database group that conform with the audit profile of the target database group.
    targets_count int
    Number of target databases within the target database group.
    targets_overriding_count int
    Number of target databases within the target database group that override the audit profile of the target database group.
    targets_overriding_offline_months_count int
    Number of target databases within the group that override the offline retention setting of the audit profile for the target database group.
    targets_overriding_online_months_count int
    Number of target databases within the group that override the online retention setting of the audit profile for the target database group.
    targets_overriding_paid_usage_count int
    Number of target databases within the group that override the paid usage setting of the audit profile for the target database group.
    items List<Property Map>
    Array of target database override summary.
    targetsConformingCount Number
    Number of target databases within the target database group that conform with the audit profile of the target database group.
    targetsCount Number
    Number of target databases within the target database group.
    targetsOverridingCount Number
    Number of target databases within the target database group that override the audit profile of the target database group.
    targetsOverridingOfflineMonthsCount Number
    Number of target databases within the group that override the offline retention setting of the audit profile for the target database group.
    targetsOverridingOnlineMonthsCount Number
    Number of target databases within the group that override the online retention setting of the audit profile for the target database group.
    targetsOverridingPaidUsageCount Number
    Number of target databases within the group that override the paid usage setting of the audit profile for the target database group.

    GetAuditProfileTargetOverridesTargetOverrideCollectionItem

    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    IsPaidUsageEnabled bool
    Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. The default value is inherited from the global settings. You can change at the global level or at the target level.
    OfflineMonths int
    Number of months the audit records will be stored offline in the offline archive. Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support.
    OfflineMonthsSource string
    The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global.
    OnlineMonths int
    Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months
    OnlineMonthsSource string
    The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global.
    PaidUsageSource string
    The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDatabaseId string
    The OCID of the target database that overrides from the audit profile of the target database group.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    IsPaidUsageEnabled bool
    Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. The default value is inherited from the global settings. You can change at the global level or at the target level.
    OfflineMonths int
    Number of months the audit records will be stored offline in the offline archive. Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support.
    OfflineMonthsSource string
    The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global.
    OnlineMonths int
    Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months
    OnlineMonthsSource string
    The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global.
    PaidUsageSource string
    The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDatabaseId string
    The OCID of the target database that overrides from the audit profile of the target database group.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isPaidUsageEnabled Boolean
    Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. The default value is inherited from the global settings. You can change at the global level or at the target level.
    offlineMonths Integer
    Number of months the audit records will be stored offline in the offline archive. Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support.
    offlineMonthsSource String
    The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global.
    onlineMonths Integer
    Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months
    onlineMonthsSource String
    The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global.
    paidUsageSource String
    The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDatabaseId String
    The OCID of the target database that overrides from the audit profile of the target database group.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isPaidUsageEnabled boolean
    Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. The default value is inherited from the global settings. You can change at the global level or at the target level.
    offlineMonths number
    Number of months the audit records will be stored offline in the offline archive. Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support.
    offlineMonthsSource string
    The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global.
    onlineMonths number
    Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months
    onlineMonthsSource string
    The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global.
    paidUsageSource string
    The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDatabaseId string
    The OCID of the target database that overrides from the audit profile of the target database group.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    is_paid_usage_enabled bool
    Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. The default value is inherited from the global settings. You can change at the global level or at the target level.
    offline_months int
    Number of months the audit records will be stored offline in the offline archive. Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support.
    offline_months_source str
    The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global.
    online_months int
    Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months
    online_months_source str
    The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global.
    str
    The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_database_id str
    The OCID of the target database that overrides from the audit profile of the target database group.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isPaidUsageEnabled Boolean
    Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. The default value is inherited from the global settings. You can change at the global level or at the target level.
    offlineMonths Number
    Number of months the audit records will be stored offline in the offline archive. Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support.
    offlineMonthsSource String
    The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global.
    onlineMonths Number
    Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months
    onlineMonthsSource String
    The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global.
    paidUsageSource String
    The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDatabaseId String
    The OCID of the target database that overrides from the audit profile of the target database group.

    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 v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi