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

oci.DataSafe.getUnifiedAuditPolicies

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 Unified Audit Policies in Oracle Cloud Infrastructure Data Safe service.

    Retrieves a list of all Unified Audit policies.

    The ListUnifiedAuditPolicies operation returns only the Unified Audit policies in the specified compartmentId.

    The parameter accessLevel specifies whether to return only those compartments for which the requester has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a sub-compartment) or to return Not Authorized if Principal doesn’t have access to even one of the child compartments. This is valid only when compartmentIdInSubtree is set to true.

    The parameter compartmentIdInSubtree applies when you perform ListUnifiedAuditPolicies on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and sub-compartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUnifiedAuditPolicies = oci.DataSafe.getUnifiedAuditPolicies({
        compartmentId: compartmentId,
        accessLevel: unifiedAuditPolicyAccessLevel,
        compartmentIdInSubtree: unifiedAuditPolicyCompartmentIdInSubtree,
        displayName: unifiedAuditPolicyDisplayName,
        isSeeded: unifiedAuditPolicyIsSeeded,
        securityPolicyId: testSecurityPolicy.id,
        state: unifiedAuditPolicyState,
        timeCreatedGreaterThanOrEqualTo: unifiedAuditPolicyTimeCreatedGreaterThanOrEqualTo,
        timeCreatedLessThan: unifiedAuditPolicyTimeCreatedLessThan,
        unifiedAuditPolicyDefinitionId: testUnifiedAuditPolicyDefinition.id,
        unifiedAuditPolicyId: testUnifiedAuditPolicy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_unified_audit_policies = oci.DataSafe.get_unified_audit_policies(compartment_id=compartment_id,
        access_level=unified_audit_policy_access_level,
        compartment_id_in_subtree=unified_audit_policy_compartment_id_in_subtree,
        display_name=unified_audit_policy_display_name,
        is_seeded=unified_audit_policy_is_seeded,
        security_policy_id=test_security_policy["id"],
        state=unified_audit_policy_state,
        time_created_greater_than_or_equal_to=unified_audit_policy_time_created_greater_than_or_equal_to,
        time_created_less_than=unified_audit_policy_time_created_less_than,
        unified_audit_policy_definition_id=test_unified_audit_policy_definition["id"],
        unified_audit_policy_id=test_unified_audit_policy["id"])
    
    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.GetUnifiedAuditPolicies(ctx, &datasafe.GetUnifiedAuditPoliciesArgs{
    			CompartmentId:                   compartmentId,
    			AccessLevel:                     pulumi.StringRef(unifiedAuditPolicyAccessLevel),
    			CompartmentIdInSubtree:          pulumi.BoolRef(unifiedAuditPolicyCompartmentIdInSubtree),
    			DisplayName:                     pulumi.StringRef(unifiedAuditPolicyDisplayName),
    			IsSeeded:                        pulumi.BoolRef(unifiedAuditPolicyIsSeeded),
    			SecurityPolicyId:                pulumi.StringRef(testSecurityPolicy.Id),
    			State:                           pulumi.StringRef(unifiedAuditPolicyState),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(unifiedAuditPolicyTimeCreatedGreaterThanOrEqualTo),
    			TimeCreatedLessThan:             pulumi.StringRef(unifiedAuditPolicyTimeCreatedLessThan),
    			UnifiedAuditPolicyDefinitionId:  pulumi.StringRef(testUnifiedAuditPolicyDefinition.Id),
    			UnifiedAuditPolicyId:            pulumi.StringRef(testUnifiedAuditPolicy.Id),
    		}, 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 testUnifiedAuditPolicies = Oci.DataSafe.GetUnifiedAuditPolicies.Invoke(new()
        {
            CompartmentId = compartmentId,
            AccessLevel = unifiedAuditPolicyAccessLevel,
            CompartmentIdInSubtree = unifiedAuditPolicyCompartmentIdInSubtree,
            DisplayName = unifiedAuditPolicyDisplayName,
            IsSeeded = unifiedAuditPolicyIsSeeded,
            SecurityPolicyId = testSecurityPolicy.Id,
            State = unifiedAuditPolicyState,
            TimeCreatedGreaterThanOrEqualTo = unifiedAuditPolicyTimeCreatedGreaterThanOrEqualTo,
            TimeCreatedLessThan = unifiedAuditPolicyTimeCreatedLessThan,
            UnifiedAuditPolicyDefinitionId = testUnifiedAuditPolicyDefinition.Id,
            UnifiedAuditPolicyId = testUnifiedAuditPolicy.Id,
        });
    
    });
    
    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.GetUnifiedAuditPoliciesArgs;
    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 testUnifiedAuditPolicies = DataSafeFunctions.getUnifiedAuditPolicies(GetUnifiedAuditPoliciesArgs.builder()
                .compartmentId(compartmentId)
                .accessLevel(unifiedAuditPolicyAccessLevel)
                .compartmentIdInSubtree(unifiedAuditPolicyCompartmentIdInSubtree)
                .displayName(unifiedAuditPolicyDisplayName)
                .isSeeded(unifiedAuditPolicyIsSeeded)
                .securityPolicyId(testSecurityPolicy.id())
                .state(unifiedAuditPolicyState)
                .timeCreatedGreaterThanOrEqualTo(unifiedAuditPolicyTimeCreatedGreaterThanOrEqualTo)
                .timeCreatedLessThan(unifiedAuditPolicyTimeCreatedLessThan)
                .unifiedAuditPolicyDefinitionId(testUnifiedAuditPolicyDefinition.id())
                .unifiedAuditPolicyId(testUnifiedAuditPolicy.id())
                .build());
    
        }
    }
    
    variables:
      testUnifiedAuditPolicies:
        fn::invoke:
          function: oci:DataSafe:getUnifiedAuditPolicies
          arguments:
            compartmentId: ${compartmentId}
            accessLevel: ${unifiedAuditPolicyAccessLevel}
            compartmentIdInSubtree: ${unifiedAuditPolicyCompartmentIdInSubtree}
            displayName: ${unifiedAuditPolicyDisplayName}
            isSeeded: ${unifiedAuditPolicyIsSeeded}
            securityPolicyId: ${testSecurityPolicy.id}
            state: ${unifiedAuditPolicyState}
            timeCreatedGreaterThanOrEqualTo: ${unifiedAuditPolicyTimeCreatedGreaterThanOrEqualTo}
            timeCreatedLessThan: ${unifiedAuditPolicyTimeCreatedLessThan}
            unifiedAuditPolicyDefinitionId: ${testUnifiedAuditPolicyDefinition.id}
            unifiedAuditPolicyId: ${testUnifiedAuditPolicy.id}
    

    Using getUnifiedAuditPolicies

    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 getUnifiedAuditPolicies(args: GetUnifiedAuditPoliciesArgs, opts?: InvokeOptions): Promise<GetUnifiedAuditPoliciesResult>
    function getUnifiedAuditPoliciesOutput(args: GetUnifiedAuditPoliciesOutputArgs, opts?: InvokeOptions): Output<GetUnifiedAuditPoliciesResult>
    def get_unified_audit_policies(access_level: Optional[str] = None,
                                   compartment_id: Optional[str] = None,
                                   compartment_id_in_subtree: Optional[bool] = None,
                                   display_name: Optional[str] = None,
                                   filters: Optional[Sequence[GetUnifiedAuditPoliciesFilter]] = None,
                                   is_seeded: Optional[bool] = None,
                                   security_policy_id: Optional[str] = None,
                                   state: Optional[str] = None,
                                   time_created_greater_than_or_equal_to: Optional[str] = None,
                                   time_created_less_than: Optional[str] = None,
                                   unified_audit_policy_definition_id: Optional[str] = None,
                                   unified_audit_policy_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetUnifiedAuditPoliciesResult
    def get_unified_audit_policies_output(access_level: Optional[pulumi.Input[str]] = None,
                                   compartment_id: Optional[pulumi.Input[str]] = None,
                                   compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                   display_name: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetUnifiedAuditPoliciesFilterArgs]]]] = None,
                                   is_seeded: Optional[pulumi.Input[bool]] = None,
                                   security_policy_id: Optional[pulumi.Input[str]] = None,
                                   state: Optional[pulumi.Input[str]] = None,
                                   time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                                   time_created_less_than: Optional[pulumi.Input[str]] = None,
                                   unified_audit_policy_definition_id: Optional[pulumi.Input[str]] = None,
                                   unified_audit_policy_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetUnifiedAuditPoliciesResult]
    func GetUnifiedAuditPolicies(ctx *Context, args *GetUnifiedAuditPoliciesArgs, opts ...InvokeOption) (*GetUnifiedAuditPoliciesResult, error)
    func GetUnifiedAuditPoliciesOutput(ctx *Context, args *GetUnifiedAuditPoliciesOutputArgs, opts ...InvokeOption) GetUnifiedAuditPoliciesResultOutput

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

    public static class GetUnifiedAuditPolicies 
    {
        public static Task<GetUnifiedAuditPoliciesResult> InvokeAsync(GetUnifiedAuditPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetUnifiedAuditPoliciesResult> Invoke(GetUnifiedAuditPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUnifiedAuditPoliciesResult> getUnifiedAuditPolicies(GetUnifiedAuditPoliciesArgs args, InvokeOptions options)
    public static Output<GetUnifiedAuditPoliciesResult> getUnifiedAuditPolicies(GetUnifiedAuditPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getUnifiedAuditPolicies:getUnifiedAuditPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters List<GetUnifiedAuditPoliciesFilter>
    IsSeeded bool
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    SecurityPolicyId string
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    State string
    The current state of the Unified Audit policy.
    TimeCreatedGreaterThanOrEqualTo string

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    TimeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    UnifiedAuditPolicyDefinitionId string
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    UnifiedAuditPolicyId string
    An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters []GetUnifiedAuditPoliciesFilter
    IsSeeded bool
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    SecurityPolicyId string
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    State string
    The current state of the Unified Audit policy.
    TimeCreatedGreaterThanOrEqualTo string

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    TimeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    UnifiedAuditPolicyDefinitionId string
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    UnifiedAuditPolicyId string
    An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<GetUnifiedAuditPoliciesFilter>
    isSeeded Boolean
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    securityPolicyId String
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state String
    The current state of the Unified Audit policy.
    timeCreatedGreaterThanOrEqualTo String

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan String

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    unifiedAuditPolicyDefinitionId String
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    unifiedAuditPolicyId String
    An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    accessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName string
    A filter to return only resources that match the specified display name.
    filters GetUnifiedAuditPoliciesFilter[]
    isSeeded boolean
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    securityPolicyId string
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state string
    The current state of the Unified Audit policy.
    timeCreatedGreaterThanOrEqualTo string

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    unifiedAuditPolicyDefinitionId string
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    unifiedAuditPolicyId string
    An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    access_level str
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartment_id_in_subtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    display_name str
    A filter to return only resources that match the specified display name.
    filters Sequence[GetUnifiedAuditPoliciesFilter]
    is_seeded bool
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    security_policy_id str
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state str
    The current state of the Unified Audit policy.
    time_created_greater_than_or_equal_to str

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    time_created_less_than str

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    unified_audit_policy_definition_id str
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    unified_audit_policy_id str
    An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<Property Map>
    isSeeded Boolean
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    securityPolicyId String
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state String
    The current state of the Unified Audit policy.
    timeCreatedGreaterThanOrEqualTo String

    A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan String

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    unifiedAuditPolicyDefinitionId String
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    unifiedAuditPolicyId String
    An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource.

    getUnifiedAuditPolicies Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the unified audit policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    UnifiedAuditPolicyCollections List<GetUnifiedAuditPoliciesUnifiedAuditPolicyCollection>
    The list of unified_audit_policy_collection.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the unified audit policy.
    Filters List<GetUnifiedAuditPoliciesFilter>
    IsSeeded bool
    Indicates whether the unified audit policy is seeded or not.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    State string
    The current state of the unified audit policy.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    UnifiedAuditPolicyDefinitionId string
    The OCID of the associated unified audit policy definition.
    UnifiedAuditPolicyId string
    CompartmentId string
    The OCID of the compartment containing the unified audit policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    UnifiedAuditPolicyCollections []GetUnifiedAuditPoliciesUnifiedAuditPolicyCollection
    The list of unified_audit_policy_collection.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the unified audit policy.
    Filters []GetUnifiedAuditPoliciesFilter
    IsSeeded bool
    Indicates whether the unified audit policy is seeded or not.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    State string
    The current state of the unified audit policy.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    UnifiedAuditPolicyDefinitionId string
    The OCID of the associated unified audit policy definition.
    UnifiedAuditPolicyId string
    compartmentId String
    The OCID of the compartment containing the unified audit policy.
    id String
    The provider-assigned unique ID for this managed resource.
    unifiedAuditPolicyCollections List<GetUnifiedAuditPoliciesUnifiedAuditPolicyCollection>
    The list of unified_audit_policy_collection.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the unified audit policy.
    filters List<GetUnifiedAuditPoliciesFilter>
    isSeeded Boolean
    Indicates whether the unified audit policy is seeded or not.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    state String
    The current state of the unified audit policy.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    unifiedAuditPolicyDefinitionId String
    The OCID of the associated unified audit policy definition.
    unifiedAuditPolicyId String
    compartmentId string
    The OCID of the compartment containing the unified audit policy.
    id string
    The provider-assigned unique ID for this managed resource.
    unifiedAuditPolicyCollections GetUnifiedAuditPoliciesUnifiedAuditPolicyCollection[]
    The list of unified_audit_policy_collection.
    accessLevel string
    compartmentIdInSubtree boolean
    displayName string
    The display name of the unified audit policy.
    filters GetUnifiedAuditPoliciesFilter[]
    isSeeded boolean
    Indicates whether the unified audit policy is seeded or not.
    securityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    state string
    The current state of the unified audit policy.
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    unifiedAuditPolicyDefinitionId string
    The OCID of the associated unified audit policy definition.
    unifiedAuditPolicyId string
    compartment_id str
    The OCID of the compartment containing the unified audit policy.
    id str
    The provider-assigned unique ID for this managed resource.
    unified_audit_policy_collections Sequence[GetUnifiedAuditPoliciesUnifiedAuditPolicyCollection]
    The list of unified_audit_policy_collection.
    access_level str
    compartment_id_in_subtree bool
    display_name str
    The display name of the unified audit policy.
    filters Sequence[GetUnifiedAuditPoliciesFilter]
    is_seeded bool
    Indicates whether the unified audit policy is seeded or not.
    security_policy_id str
    The OCID of the security policy corresponding to the unified audit policy.
    state str
    The current state of the unified audit policy.
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    unified_audit_policy_definition_id str
    The OCID of the associated unified audit policy definition.
    unified_audit_policy_id str
    compartmentId String
    The OCID of the compartment containing the unified audit policy.
    id String
    The provider-assigned unique ID for this managed resource.
    unifiedAuditPolicyCollections List<Property Map>
    The list of unified_audit_policy_collection.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the unified audit policy.
    filters List<Property Map>
    isSeeded Boolean
    Indicates whether the unified audit policy is seeded or not.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    state String
    The current state of the unified audit policy.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    unifiedAuditPolicyDefinitionId String
    The OCID of the associated unified audit policy definition.
    unifiedAuditPolicyId String

    Supporting Types

    GetUnifiedAuditPoliciesFilter

    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

    GetUnifiedAuditPoliciesUnifiedAuditPolicyCollection

    GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItem

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    Conditions List<GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItemCondition>
    Lists the audit policy provisioning conditions.
    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"}
    Description string
    The description of the unified audit policy.
    DisplayName string
    A filter to return only resources that match the specified display name.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    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"}
    Id string
    The OCID of the unified audit policy.
    IsSeeded bool
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    SecurityPolicyId string
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    State string
    The current state of the Unified Audit policy.
    Status string
    Indicates whether the policy has been enabled or disabled.
    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"}
    TimeCreated string
    The time the the unified audit policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    UnifiedAuditPolicyDefinitionId string
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    Conditions []GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItemCondition
    Lists the audit policy provisioning conditions.
    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"}
    Description string
    The description of the unified audit policy.
    DisplayName string
    A filter to return only resources that match the specified display name.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    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"}
    Id string
    The OCID of the unified audit policy.
    IsSeeded bool
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    SecurityPolicyId string
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    State string
    The current state of the Unified Audit policy.
    Status string
    Indicates whether the policy has been enabled or disabled.
    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"}
    TimeCreated string
    The time the the unified audit policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    UnifiedAuditPolicyDefinitionId string
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    conditions List<GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItemCondition>
    Lists the audit policy provisioning conditions.
    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"}
    description String
    The description of the unified audit policy.
    displayName String
    A filter to return only resources that match the specified display name.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    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"}
    id String
    The OCID of the unified audit policy.
    isSeeded Boolean
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId String
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state String
    The current state of the Unified Audit policy.
    status String
    Indicates whether the policy has been enabled or disabled.
    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"}
    timeCreated String
    The time the the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unifiedAuditPolicyDefinitionId String
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    conditions GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItemCondition[]
    Lists the audit policy provisioning conditions.
    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"}
    description string
    The description of the unified audit policy.
    displayName string
    A filter to return only resources that match the specified display name.
    enabledEntities string
    Indicates on whom the audit policy is enabled.
    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"}
    id string
    The OCID of the unified audit policy.
    isSeeded boolean
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    lifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId string
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state string
    The current state of the Unified Audit policy.
    status string
    Indicates whether the policy has been enabled or disabled.
    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"}
    timeCreated string
    The time the the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unifiedAuditPolicyDefinitionId string
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    conditions Sequence[GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItemCondition]
    Lists the audit policy provisioning conditions.
    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"}
    description str
    The description of the unified audit policy.
    display_name str
    A filter to return only resources that match the specified display name.
    enabled_entities str
    Indicates on whom the audit policy is enabled.
    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"}
    id str
    The OCID of the unified audit policy.
    is_seeded bool
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    lifecycle_details str
    The details of the current state of the unified audit policy in Data Safe.
    security_policy_id str
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state str
    The current state of the Unified Audit policy.
    status str
    Indicates whether the policy has been enabled or disabled.
    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"}
    time_created str
    The time the the unified audit policy was created, in the format defined by RFC3339.
    time_updated str
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unified_audit_policy_definition_id str
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    conditions List<Property Map>
    Lists the audit policy provisioning conditions.
    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"}
    description String
    The description of the unified audit policy.
    displayName String
    A filter to return only resources that match the specified display name.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    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"}
    id String
    The OCID of the unified audit policy.
    isSeeded Boolean
    A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId String
    An optional filter to return only resources that match the specified OCID of the security policy resource.
    state String
    The current state of the Unified Audit policy.
    status String
    Indicates whether the policy has been enabled or disabled.
    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"}
    timeCreated String
    The time the the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unifiedAuditPolicyDefinitionId String
    An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource.

    GetUnifiedAuditPoliciesUnifiedAuditPolicyCollectionItemCondition

    AttributeSetId string
    The OCID of the attribute set.
    EntitySelection string
    Specifies whether to include or exclude the specified users or roles.
    EntityType string
    The type of users or roles that the unified audit policy is applied to.
    OperationStatus string
    The operation status that the policy must be enabled for.
    RoleNames List<string>
    List of roles that the policy must be enabled for.
    UserNames List<string>
    The list of users that the unified audit policy is enabled for.
    AttributeSetId string
    The OCID of the attribute set.
    EntitySelection string
    Specifies whether to include or exclude the specified users or roles.
    EntityType string
    The type of users or roles that the unified audit policy is applied to.
    OperationStatus string
    The operation status that the policy must be enabled for.
    RoleNames []string
    List of roles that the policy must be enabled for.
    UserNames []string
    The list of users that the unified audit policy is enabled for.
    attributeSetId String
    The OCID of the attribute set.
    entitySelection String
    Specifies whether to include or exclude the specified users or roles.
    entityType String
    The type of users or roles that the unified audit policy is applied to.
    operationStatus String
    The operation status that the policy must be enabled for.
    roleNames List<String>
    List of roles that the policy must be enabled for.
    userNames List<String>
    The list of users that the unified audit policy is enabled for.
    attributeSetId string
    The OCID of the attribute set.
    entitySelection string
    Specifies whether to include or exclude the specified users or roles.
    entityType string
    The type of users or roles that the unified audit policy is applied to.
    operationStatus string
    The operation status that the policy must be enabled for.
    roleNames string[]
    List of roles that the policy must be enabled for.
    userNames string[]
    The list of users that the unified audit policy is enabled for.
    attribute_set_id str
    The OCID of the attribute set.
    entity_selection str
    Specifies whether to include or exclude the specified users or roles.
    entity_type str
    The type of users or roles that the unified audit policy is applied to.
    operation_status str
    The operation status that the policy must be enabled for.
    role_names Sequence[str]
    List of roles that the policy must be enabled for.
    user_names Sequence[str]
    The list of users that the unified audit policy is enabled for.
    attributeSetId String
    The OCID of the attribute set.
    entitySelection String
    Specifies whether to include or exclude the specified users or roles.
    entityType String
    The type of users or roles that the unified audit policy is applied to.
    operationStatus String
    The operation status that the policy must be enabled for.
    roleNames List<String>
    List of roles that the policy must be enabled for.
    userNames List<String>
    The list of users that the unified audit policy is enabled for.

    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