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

oci.DataSafe.getUnifiedAuditPolicyDefinition

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 Definition resource in Oracle Cloud Infrastructure Data Safe service.

    Gets a unified audit policy definition by the specified OCID of the unified audit policy definition resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUnifiedAuditPolicyDefinition = oci.DataSafe.getUnifiedAuditPolicyDefinition({
        unifiedAuditPolicyDefinitionId: testUnifiedAuditPolicyDefinitionOciDataSafeUnifiedAuditPolicyDefinition.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_unified_audit_policy_definition = oci.DataSafe.get_unified_audit_policy_definition(unified_audit_policy_definition_id=test_unified_audit_policy_definition_oci_data_safe_unified_audit_policy_definition["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.GetUnifiedAuditPolicyDefinition(ctx, &datasafe.GetUnifiedAuditPolicyDefinitionArgs{
    			UnifiedAuditPolicyDefinitionId: testUnifiedAuditPolicyDefinitionOciDataSafeUnifiedAuditPolicyDefinition.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 testUnifiedAuditPolicyDefinition = Oci.DataSafe.GetUnifiedAuditPolicyDefinition.Invoke(new()
        {
            UnifiedAuditPolicyDefinitionId = testUnifiedAuditPolicyDefinitionOciDataSafeUnifiedAuditPolicyDefinition.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.GetUnifiedAuditPolicyDefinitionArgs;
    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 testUnifiedAuditPolicyDefinition = DataSafeFunctions.getUnifiedAuditPolicyDefinition(GetUnifiedAuditPolicyDefinitionArgs.builder()
                .unifiedAuditPolicyDefinitionId(testUnifiedAuditPolicyDefinitionOciDataSafeUnifiedAuditPolicyDefinition.id())
                .build());
    
        }
    }
    
    variables:
      testUnifiedAuditPolicyDefinition:
        fn::invoke:
          function: oci:DataSafe:getUnifiedAuditPolicyDefinition
          arguments:
            unifiedAuditPolicyDefinitionId: ${testUnifiedAuditPolicyDefinitionOciDataSafeUnifiedAuditPolicyDefinition.id}
    

    Using getUnifiedAuditPolicyDefinition

    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 getUnifiedAuditPolicyDefinition(args: GetUnifiedAuditPolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetUnifiedAuditPolicyDefinitionResult>
    function getUnifiedAuditPolicyDefinitionOutput(args: GetUnifiedAuditPolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetUnifiedAuditPolicyDefinitionResult>
    def get_unified_audit_policy_definition(unified_audit_policy_definition_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetUnifiedAuditPolicyDefinitionResult
    def get_unified_audit_policy_definition_output(unified_audit_policy_definition_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetUnifiedAuditPolicyDefinitionResult]
    func LookupUnifiedAuditPolicyDefinition(ctx *Context, args *LookupUnifiedAuditPolicyDefinitionArgs, opts ...InvokeOption) (*LookupUnifiedAuditPolicyDefinitionResult, error)
    func LookupUnifiedAuditPolicyDefinitionOutput(ctx *Context, args *LookupUnifiedAuditPolicyDefinitionOutputArgs, opts ...InvokeOption) LookupUnifiedAuditPolicyDefinitionResultOutput

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

    public static class GetUnifiedAuditPolicyDefinition 
    {
        public static Task<GetUnifiedAuditPolicyDefinitionResult> InvokeAsync(GetUnifiedAuditPolicyDefinitionArgs args, InvokeOptions? opts = null)
        public static Output<GetUnifiedAuditPolicyDefinitionResult> Invoke(GetUnifiedAuditPolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUnifiedAuditPolicyDefinitionResult> getUnifiedAuditPolicyDefinition(GetUnifiedAuditPolicyDefinitionArgs args, InvokeOptions options)
    public static Output<GetUnifiedAuditPolicyDefinitionResult> getUnifiedAuditPolicyDefinition(GetUnifiedAuditPolicyDefinitionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getUnifiedAuditPolicyDefinition:getUnifiedAuditPolicyDefinition
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UnifiedAuditPolicyDefinitionId string
    The OCID of the unified audit policy definition resource.
    UnifiedAuditPolicyDefinitionId string
    The OCID of the unified audit policy definition resource.
    unifiedAuditPolicyDefinitionId String
    The OCID of the unified audit policy definition resource.
    unifiedAuditPolicyDefinitionId string
    The OCID of the unified audit policy definition resource.
    unified_audit_policy_definition_id str
    The OCID of the unified audit policy definition resource.
    unifiedAuditPolicyDefinitionId String
    The OCID of the unified audit policy definition resource.

    getUnifiedAuditPolicyDefinition Result

    The following output properties are available:

    AuditPolicyCategory string
    The category to which the unified audit policy belongs in the target database.
    CompartmentId string
    The OCID of the compartment containing the unified audit policy definition.
    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 definition.
    DisplayName string
    The display name of the unified audit policy definition.
    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 definition.
    IsSeeded bool
    Signifies whether the unified audit policy definition is seeded or not.
    LifecycleDetails string
    Details about the current state of the unified audit policy definition.
    PolicyDefinitionStatement string
    The definition of the unified audit policy to be provisioned in the target database.
    PolicyName string
    The unified audit policy name in the target database.
    State string
    The current state of the unified audit policy definition.
    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 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
    AuditPolicyCategory string
    The category to which the unified audit policy belongs in the target database.
    CompartmentId string
    The OCID of the compartment containing the unified audit policy definition.
    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 definition.
    DisplayName string
    The display name of the unified audit policy definition.
    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 definition.
    IsSeeded bool
    Signifies whether the unified audit policy definition is seeded or not.
    LifecycleDetails string
    Details about the current state of the unified audit policy definition.
    PolicyDefinitionStatement string
    The definition of the unified audit policy to be provisioned in the target database.
    PolicyName string
    The unified audit policy name in the target database.
    State string
    The current state of the unified audit policy definition.
    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 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
    auditPolicyCategory String
    The category to which the unified audit policy belongs in the target database.
    compartmentId String
    The OCID of the compartment containing the unified audit policy definition.
    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 definition.
    displayName String
    The display name of the unified audit policy definition.
    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 definition.
    isSeeded Boolean
    Signifies whether the unified audit policy definition is seeded or not.
    lifecycleDetails String
    Details about the current state of the unified audit policy definition.
    policyDefinitionStatement String
    The definition of the unified audit policy to be provisioned in the target database.
    policyName String
    The unified audit policy name in the target database.
    state String
    The current state of the unified audit policy definition.
    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 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
    auditPolicyCategory string
    The category to which the unified audit policy belongs in the target database.
    compartmentId string
    The OCID of the compartment containing the unified audit policy definition.
    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 definition.
    displayName string
    The display name of the unified audit policy definition.
    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 definition.
    isSeeded boolean
    Signifies whether the unified audit policy definition is seeded or not.
    lifecycleDetails string
    Details about the current state of the unified audit policy definition.
    policyDefinitionStatement string
    The definition of the unified audit policy to be provisioned in the target database.
    policyName string
    The unified audit policy name in the target database.
    state string
    The current state of the unified audit policy definition.
    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 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
    audit_policy_category str
    The category to which the unified audit policy belongs in the target database.
    compartment_id str
    The OCID of the compartment containing the unified audit policy definition.
    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 definition.
    display_name str
    The display name of the unified audit policy definition.
    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 definition.
    is_seeded bool
    Signifies whether the unified audit policy definition is seeded or not.
    lifecycle_details str
    Details about the current state of the unified audit policy definition.
    policy_definition_statement str
    The definition of the unified audit policy to be provisioned in the target database.
    policy_name str
    The unified audit policy name in the target database.
    state str
    The current state of the unified audit policy definition.
    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 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
    auditPolicyCategory String
    The category to which the unified audit policy belongs in the target database.
    compartmentId String
    The OCID of the compartment containing the unified audit policy definition.
    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 definition.
    displayName String
    The display name of the unified audit policy definition.
    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 definition.
    isSeeded Boolean
    Signifies whether the unified audit policy definition is seeded or not.
    lifecycleDetails String
    Details about the current state of the unified audit policy definition.
    policyDefinitionStatement String
    The definition of the unified audit policy to be provisioned in the target database.
    policyName String
    The unified audit policy name in the target database.
    state String
    The current state of the unified audit policy definition.
    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 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

    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