Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 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/v4/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 dictionaryThe following arguments are supported:
- Unified
Audit stringPolicy Definition Id - The OCID of the unified audit policy definition resource.
- Unified
Audit stringPolicy Definition Id - The OCID of the unified audit policy definition resource.
- unified
Audit StringPolicy Definition Id - The OCID of the unified audit policy definition resource.
- unified
Audit stringPolicy Definition Id - The OCID of the unified audit policy definition resource.
- unified_
audit_ strpolicy_ definition_ id - The OCID of the unified audit policy definition resource.
- unified
Audit StringPolicy Definition Id - The OCID of the unified audit policy definition resource.
getUnifiedAuditPolicyDefinition Result
The following output properties are available:
- Audit
Policy stringCategory - The category to which the unified audit policy belongs in the target database.
- Compartment
Id string - The OCID of the compartment containing the unified audit policy definition.
- 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.
- Display
Name string - The display name of the unified audit policy definition.
- 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.
- Is
Seeded bool - Signifies whether the unified audit policy definition is seeded or not.
- Lifecycle
Details string - Details about the current state of the unified audit policy definition.
- Policy
Definition stringStatement - The definition of the unified audit policy to be provisioned in the target database.
- Policy
Name string - The unified audit policy name in the target database.
- State string
- The current state of the unified audit policy definition.
- 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"} - Time
Created string - The time the unified audit policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- Unified
Audit stringPolicy Definition Id
- Audit
Policy stringCategory - The category to which the unified audit policy belongs in the target database.
- Compartment
Id string - The OCID of the compartment containing the unified audit policy definition.
- 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.
- Display
Name string - The display name of the unified audit policy definition.
- 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.
- Is
Seeded bool - Signifies whether the unified audit policy definition is seeded or not.
- Lifecycle
Details string - Details about the current state of the unified audit policy definition.
- Policy
Definition stringStatement - The definition of the unified audit policy to be provisioned in the target database.
- Policy
Name string - The unified audit policy name in the target database.
- State string
- The current state of the unified audit policy definition.
- 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"} - Time
Created string - The time the unified audit policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- Unified
Audit stringPolicy Definition Id
- audit
Policy StringCategory - The category to which the unified audit policy belongs in the target database.
- compartment
Id String - The OCID of the compartment containing the unified audit policy definition.
- 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.
- display
Name String - The display name of the unified audit policy definition.
- 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.
- is
Seeded Boolean - Signifies whether the unified audit policy definition is seeded or not.
- lifecycle
Details String - Details about the current state of the unified audit policy definition.
- policy
Definition StringStatement - The definition of the unified audit policy to be provisioned in the target database.
- policy
Name String - The unified audit policy name in the target database.
- state String
- The current state of the unified audit policy definition.
- 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"} - time
Created String - The time the unified audit policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified
Audit StringPolicy Definition Id
- audit
Policy stringCategory - The category to which the unified audit policy belongs in the target database.
- compartment
Id string - The OCID of the compartment containing the unified audit policy definition.
- {[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.
- display
Name string - The display name of the unified audit policy definition.
- {[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.
- is
Seeded boolean - Signifies whether the unified audit policy definition is seeded or not.
- lifecycle
Details string - Details about the current state of the unified audit policy definition.
- policy
Definition stringStatement - The definition of the unified audit policy to be provisioned in the target database.
- policy
Name string - The unified audit policy name in the target database.
- state string
- The current state of the unified audit policy definition.
- {[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"} - time
Created string - The time the unified audit policy was created, in the format defined by RFC3339.
- time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified
Audit stringPolicy Definition Id
- audit_
policy_ strcategory - 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.
- 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.
- 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_ strstatement - 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.
- 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_ strpolicy_ definition_ id
- audit
Policy StringCategory - The category to which the unified audit policy belongs in the target database.
- compartment
Id String - The OCID of the compartment containing the unified audit policy definition.
- 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.
- display
Name String - The display name of the unified audit policy definition.
- 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.
- is
Seeded Boolean - Signifies whether the unified audit policy definition is seeded or not.
- lifecycle
Details String - Details about the current state of the unified audit policy definition.
- policy
Definition StringStatement - The definition of the unified audit policy to be provisioned in the target database.
- policy
Name String - The unified audit policy name in the target database.
- state String
- The current state of the unified audit policy definition.
- 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"} - time
Created String - The time the unified audit policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified
Audit StringPolicy Definition Id
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
