Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DataSafe.getUnifiedAuditPolicy
Explore with Pulumi AI
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:
- Unified
Audit stringPolicy Id - The OCID of the Unified Audit policy resource.
- Unified
Audit stringPolicy Id - The OCID of the Unified Audit policy resource.
- unified
Audit StringPolicy Id - The OCID of the Unified Audit policy resource.
- unified
Audit stringPolicy Id - The OCID of the Unified Audit policy resource.
- unified_
audit_ strpolicy_ id - The OCID of the Unified Audit policy resource.
- unified
Audit StringPolicy Id - The OCID of the Unified Audit policy resource.
getUnifiedAuditPolicy Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the unified audit policy.
- Conditions
List<Get
Unified Audit Policy Condition> - Lists the audit policy provisioning conditions.
- 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.
- Display
Name string - The display name of the unified audit policy.
- Enabled
Entities string - Indicates on whom the audit policy is enabled.
- 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.
- Is
Seeded bool - Indicates whether the unified audit policy is seeded or not.
- Lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- Security
Policy stringId - 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.
- 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 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 - The OCID of the associated unified audit policy definition.
- Unified
Audit stringPolicy Id
- Compartment
Id string - The OCID of the compartment containing the unified audit policy.
- Conditions
[]Get
Unified Audit Policy Condition - Lists the audit policy provisioning conditions.
- 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.
- Display
Name string - The display name of the unified audit policy.
- Enabled
Entities string - Indicates on whom the audit policy is enabled.
- 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.
- Is
Seeded bool - Indicates whether the unified audit policy is seeded or not.
- Lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- Security
Policy stringId - 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.
- 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 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 - The OCID of the associated unified audit policy definition.
- Unified
Audit stringPolicy Id
- compartment
Id String - The OCID of the compartment containing the unified audit policy.
- conditions
List<Get
Unified Audit Policy Condition> - Lists the audit policy provisioning conditions.
- 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.
- display
Name String - The display name of the unified audit policy.
- enabled
Entities String - Indicates on whom the audit policy is enabled.
- 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.
- is
Seeded Boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details String - The details of the current state of the unified audit policy in Data Safe.
- security
Policy StringId - 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.
- 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 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 - The OCID of the associated unified audit policy definition.
- unified
Audit StringPolicy Id
- compartment
Id string - The OCID of the compartment containing the unified audit policy.
- conditions
Get
Unified Audit Policy Condition[] - Lists the audit policy provisioning conditions.
- {[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.
- display
Name string - The display name of the unified audit policy.
- enabled
Entities string - Indicates on whom the audit policy is enabled.
- {[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.
- is
Seeded boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- security
Policy stringId - 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.
- {[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 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 - The OCID of the associated unified audit policy definition.
- unified
Audit stringPolicy Id
- compartment_
id str - The OCID of the compartment containing the unified audit policy.
- conditions
Sequence[Get
Unified Audit Policy Condition] - Lists the audit policy provisioning conditions.
- 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.
- 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_ strid - 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.
- 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_ strpolicy_ definition_ id - The OCID of the associated unified audit policy definition.
- unified_
audit_ strpolicy_ id
- compartment
Id String - The OCID of the compartment containing the unified audit policy.
- conditions List<Property Map>
- Lists the audit policy provisioning conditions.
- 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.
- display
Name String - The display name of the unified audit policy.
- enabled
Entities String - Indicates on whom the audit policy is enabled.
- 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.
- is
Seeded Boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details String - The details of the current state of the unified audit policy in Data Safe.
- security
Policy StringId - 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.
- 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 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 - The OCID of the associated unified audit policy definition.
- unified
Audit StringPolicy Id
Supporting Types
GetUnifiedAuditPolicyCondition
- Attribute
Set stringId - The OCID of the attribute set.
- Entity
Selection string - Specifies whether to include or exclude the specified users or roles.
- Entity
Type string - The type of users or roles that the unified audit policy is applied to.
- Operation
Status string - The operation status that the policy must be enabled for.
- Role
Names List<string> - List of roles that the policy must be enabled for.
- User
Names List<string> - The list of users that the unified audit policy is enabled for.
- Attribute
Set stringId - The OCID of the attribute set.
- Entity
Selection string - Specifies whether to include or exclude the specified users or roles.
- Entity
Type string - The type of users or roles that the unified audit policy is applied to.
- Operation
Status string - The operation status that the policy must be enabled for.
- Role
Names []string - List of roles that the policy must be enabled for.
- User
Names []string - The list of users that the unified audit policy is enabled for.
- attribute
Set StringId - The OCID of the attribute set.
- entity
Selection String - Specifies whether to include or exclude the specified users or roles.
- entity
Type String - The type of users or roles that the unified audit policy is applied to.
- operation
Status String - The operation status that the policy must be enabled for.
- role
Names List<String> - List of roles that the policy must be enabled for.
- user
Names List<String> - The list of users that the unified audit policy is enabled for.
- attribute
Set stringId - The OCID of the attribute set.
- entity
Selection string - Specifies whether to include or exclude the specified users or roles.
- entity
Type string - The type of users or roles that the unified audit policy is applied to.
- operation
Status string - The operation status that the policy must be enabled for.
- role
Names string[] - List of roles that the policy must be enabled for.
- user
Names string[] - The list of users that the unified audit policy is enabled for.
- attribute_
set_ strid - 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.
- attribute
Set StringId - The OCID of the attribute set.
- entity
Selection String - Specifies whether to include or exclude the specified users or roles.
- entity
Type String - The type of users or roles that the unified audit policy is applied to.
- operation
Status String - The operation status that the policy must be enabled for.
- role
Names List<String> - List of roles that the policy must be enabled for.
- user
Names 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.