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

oci.DataSafe.getUnifiedAuditPolicy

Explore with Pulumi AI

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

    This data source provides details about a specific Unified Audit Policy resource in Oracle Cloud Infrastructure Data Safe service.

    Gets a Unified Audit policy by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUnifiedAuditPolicy = oci.DataSafe.getUnifiedAuditPolicy({
        unifiedAuditPolicyId: testUnifiedAuditPolicyOciDataSafeUnifiedAuditPolicy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_unified_audit_policy = oci.DataSafe.get_unified_audit_policy(unified_audit_policy_id=test_unified_audit_policy_oci_data_safe_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.GetUnifiedAuditPolicy(ctx, &datasafe.GetUnifiedAuditPolicyArgs{
    			UnifiedAuditPolicyId: testUnifiedAuditPolicyOciDataSafeUnifiedAuditPolicy.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 testUnifiedAuditPolicy = Oci.DataSafe.GetUnifiedAuditPolicy.Invoke(new()
        {
            UnifiedAuditPolicyId = testUnifiedAuditPolicyOciDataSafeUnifiedAuditPolicy.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.GetUnifiedAuditPolicyArgs;
    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 testUnifiedAuditPolicy = DataSafeFunctions.getUnifiedAuditPolicy(GetUnifiedAuditPolicyArgs.builder()
                .unifiedAuditPolicyId(testUnifiedAuditPolicyOciDataSafeUnifiedAuditPolicy.id())
                .build());
    
        }
    }
    
    variables:
      testUnifiedAuditPolicy:
        fn::invoke:
          function: oci:DataSafe:getUnifiedAuditPolicy
          arguments:
            unifiedAuditPolicyId: ${testUnifiedAuditPolicyOciDataSafeUnifiedAuditPolicy.id}
    

    Using getUnifiedAuditPolicy

    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 getUnifiedAuditPolicy(args: GetUnifiedAuditPolicyArgs, opts?: InvokeOptions): Promise<GetUnifiedAuditPolicyResult>
    function getUnifiedAuditPolicyOutput(args: GetUnifiedAuditPolicyOutputArgs, opts?: InvokeOptions): Output<GetUnifiedAuditPolicyResult>
    def get_unified_audit_policy(unified_audit_policy_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetUnifiedAuditPolicyResult
    def get_unified_audit_policy_output(unified_audit_policy_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetUnifiedAuditPolicyResult]
    func LookupUnifiedAuditPolicy(ctx *Context, args *LookupUnifiedAuditPolicyArgs, opts ...InvokeOption) (*LookupUnifiedAuditPolicyResult, error)
    func LookupUnifiedAuditPolicyOutput(ctx *Context, args *LookupUnifiedAuditPolicyOutputArgs, opts ...InvokeOption) LookupUnifiedAuditPolicyResultOutput

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

    public static class GetUnifiedAuditPolicy 
    {
        public static Task<GetUnifiedAuditPolicyResult> InvokeAsync(GetUnifiedAuditPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetUnifiedAuditPolicyResult> Invoke(GetUnifiedAuditPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUnifiedAuditPolicyResult> getUnifiedAuditPolicy(GetUnifiedAuditPolicyArgs args, InvokeOptions options)
    public static Output<GetUnifiedAuditPolicyResult> getUnifiedAuditPolicy(GetUnifiedAuditPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getUnifiedAuditPolicy:getUnifiedAuditPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UnifiedAuditPolicyId string
    The OCID of the Unified Audit policy resource.
    UnifiedAuditPolicyId string
    The OCID of the Unified Audit policy resource.
    unifiedAuditPolicyId String
    The OCID of the Unified Audit policy resource.
    unifiedAuditPolicyId string
    The OCID of the Unified Audit policy resource.
    unified_audit_policy_id str
    The OCID of the Unified Audit policy resource.
    unifiedAuditPolicyId String
    The OCID of the Unified Audit policy resource.

    getUnifiedAuditPolicy Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the unified audit policy.
    Conditions List<GetUnifiedAuditPolicyCondition>
    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
    The display name of the unified audit policy.
    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
    Indicates whether the unified audit policy is seeded or not.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    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
    The OCID of the associated unified audit policy definition.
    UnifiedAuditPolicyId string
    CompartmentId string
    The OCID of the compartment containing the unified audit policy.
    Conditions []GetUnifiedAuditPolicyCondition
    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
    The display name of the unified audit policy.
    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
    Indicates whether the unified audit policy is seeded or not.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    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
    The OCID of the associated unified audit policy definition.
    UnifiedAuditPolicyId string
    compartmentId String
    The OCID of the compartment containing the unified audit policy.
    conditions List<GetUnifiedAuditPolicyCondition>
    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
    The display name of the unified audit policy.
    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
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    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
    The OCID of the associated unified audit policy definition.
    unifiedAuditPolicyId String
    compartmentId string
    The OCID of the compartment containing the unified audit policy.
    conditions GetUnifiedAuditPolicyCondition[]
    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
    The display name of the unified audit policy.
    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
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    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
    The OCID of the associated unified audit policy definition.
    unifiedAuditPolicyId string
    compartment_id str
    The OCID of the compartment containing the unified audit policy.
    conditions Sequence[GetUnifiedAuditPolicyCondition]
    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
    The display name of the unified audit policy.
    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
    Indicates whether the unified audit policy is seeded or not.
    lifecycle_details str
    The details of the current state of the unified audit policy in Data Safe.
    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.
    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
    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.
    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
    The display name of the unified audit policy.
    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
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    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
    The OCID of the associated unified audit policy definition.
    unifiedAuditPolicyId String

    Supporting Types

    GetUnifiedAuditPolicyCondition

    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