Viewing docs for Oracle Cloud Infrastructure v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
This data source provides details about a specific Registration Policy resource in Oracle Cloud Infrastructure Data Safe service.
Returns the details of the specified Registration Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRegistrationPolicy = oci.datasafe.getRegistrationPolicy({
registrationPolicyId: testRegistrationPolicyOciDataSafeRegistrationPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_registration_policy = oci.datasafe.get_registration_policy(registration_policy_id=test_registration_policy_oci_data_safe_registration_policy["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetRegistrationPolicy(ctx, &datasafe.GetRegistrationPolicyArgs{
RegistrationPolicyId: testRegistrationPolicyOciDataSafeRegistrationPolicy.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 testRegistrationPolicy = Oci.DataSafe.GetRegistrationPolicy.Invoke(new()
{
RegistrationPolicyId = testRegistrationPolicyOciDataSafeRegistrationPolicy.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.GetRegistrationPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 testRegistrationPolicy = DataSafeFunctions.getRegistrationPolicy(GetRegistrationPolicyArgs.builder()
.registrationPolicyId(testRegistrationPolicyOciDataSafeRegistrationPolicy.get("id"))
.build());
}
}
variables:
testRegistrationPolicy:
fn::invoke:
function: oci:DataSafe:getRegistrationPolicy
arguments:
registrationPolicyId: ${testRegistrationPolicyOciDataSafeRegistrationPolicy.id}
terraform {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_data_safe_registration_policy" "testRegistrationPolicy" {
registration_policy_id = testRegistrationPolicyOciDataSafeRegistrationPolicy.id
}
Using getRegistrationPolicy
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 getRegistrationPolicy(args: GetRegistrationPolicyArgs, opts?: InvokeOptions): Promise<GetRegistrationPolicyResult>
function getRegistrationPolicyOutput(args: GetRegistrationPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetRegistrationPolicyResult>def get_registration_policy(registration_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegistrationPolicyResult
def get_registration_policy_output(registration_policy_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetRegistrationPolicyResult]func LookupRegistrationPolicy(ctx *Context, args *LookupRegistrationPolicyArgs, opts ...InvokeOption) (*LookupRegistrationPolicyResult, error)
func LookupRegistrationPolicyOutput(ctx *Context, args *LookupRegistrationPolicyOutputArgs, opts ...InvokeOption) LookupRegistrationPolicyResultOutput> Note: This function is named LookupRegistrationPolicy in the Go SDK.
public static class GetRegistrationPolicy
{
public static Task<GetRegistrationPolicyResult> InvokeAsync(GetRegistrationPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetRegistrationPolicyResult> Invoke(GetRegistrationPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetRegistrationPolicyResult> Invoke(GetRegistrationPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetRegistrationPolicyResult> getRegistrationPolicy(GetRegistrationPolicyArgs args, InvokeOptions options)
public static Output<GetRegistrationPolicyResult> getRegistrationPolicy(GetRegistrationPolicyArgs args, InvokeOptions options)
public static Output<GetRegistrationPolicyResult> getRegistrationPolicy(GetRegistrationPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:DataSafe/getRegistrationPolicy:getRegistrationPolicy
arguments:
# arguments dictionarydata "oci_data_safe_get_registration_policy" "name" {
# arguments
}The following arguments are supported:
- Registration
Policy stringId - The OCID of the registration policy to be used for identification
- Registration
Policy stringId - The OCID of the registration policy to be used for identification
- registration_
policy_ stringid - The OCID of the registration policy to be used for identification
- registration
Policy StringId - The OCID of the registration policy to be used for identification
- registration
Policy stringId - The OCID of the registration policy to be used for identification
- registration_
policy_ strid - The OCID of the registration policy to be used for identification
- registration
Policy StringId - The OCID of the registration policy to be used for identification
getRegistrationPolicy Result
The following output properties are available:
- Can
Override boolFeatures - Indicates whether features will be overridden.
- Compartment
Id string - The OCID for the compartment containing the registration policy.
- Connection
Options List<GetRegistration Policy Connection Option> - Types of connection supported by Data Safe.
- 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
- A description of the registration policy.
- Display
Name string - The display name of the registration policy.
- Enablement
Level string - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- Features List<string>
- The Data Safe features granted to the databases registering under the registration policy.
- 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 registration policy.
- Lifecycle
State stringDetails - Details about the lifecycle state of the registration policy
- Opc
Dry boolRun - Registration
Policy stringId - Resource
Id string - The OCID of the resource used in the registration policy.
- State string
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- 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 date and time when the registration policy was created.
- Time
Updated string - The date and time when the registration policy was last updated.
- XCluster
Id string
- Can
Override boolFeatures - Indicates whether features will be overridden.
- Compartment
Id string - The OCID for the compartment containing the registration policy.
- Connection
Options []GetRegistration Policy Connection Option - Types of connection supported by Data Safe.
- 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
- A description of the registration policy.
- Display
Name string - The display name of the registration policy.
- Enablement
Level string - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- Features []string
- The Data Safe features granted to the databases registering under the registration policy.
- 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 registration policy.
- Lifecycle
State stringDetails - Details about the lifecycle state of the registration policy
- Opc
Dry boolRun - Registration
Policy stringId - Resource
Id string - The OCID of the resource used in the registration policy.
- State string
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- 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 date and time when the registration policy was created.
- Time
Updated string - The date and time when the registration policy was last updated.
- XCluster
Id string
- can_
override_ boolfeatures - Indicates whether features will be overridden.
- compartment_
id string - The OCID for the compartment containing the registration policy.
- connection_
options list(object) - Types of connection supported by Data Safe.
- 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
- A description of the registration policy.
- display_
name string - The display name of the registration policy.
- enablement_
level string - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- features list(string)
- The Data Safe features granted to the databases registering under the registration policy.
- 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 registration policy.
- lifecycle_
state_ stringdetails - Details about the lifecycle state of the registration policy
- opc_
dry_ boolrun - registration_
policy_ stringid - resource_
id string - The OCID of the resource used in the registration policy.
- state string
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- 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 date and time when the registration policy was created.
- time_
updated string - The date and time when the registration policy was last updated.
- x_
cluster_ stringid
- can
Override BooleanFeatures - Indicates whether features will be overridden.
- compartment
Id String - The OCID for the compartment containing the registration policy.
- connection
Options List<GetRegistration Policy Connection Option> - Types of connection supported by Data Safe.
- 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
- A description of the registration policy.
- display
Name String - The display name of the registration policy.
- enablement
Level String - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- features List<String>
- The Data Safe features granted to the databases registering under the registration policy.
- 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 registration policy.
- lifecycle
State StringDetails - Details about the lifecycle state of the registration policy
- opc
Dry BooleanRun - registration
Policy StringId - resource
Id String - The OCID of the resource used in the registration policy.
- state String
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- 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 date and time when the registration policy was created.
- time
Updated String - The date and time when the registration policy was last updated.
- x
Cluster StringId
- can
Override booleanFeatures - Indicates whether features will be overridden.
- compartment
Id string - The OCID for the compartment containing the registration policy.
- connection
Options GetRegistration Policy Connection Option[] - Types of connection supported by Data Safe.
- {[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
- A description of the registration policy.
- display
Name string - The display name of the registration policy.
- enablement
Level string - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- features string[]
- The Data Safe features granted to the databases registering under the registration policy.
- {[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 registration policy.
- lifecycle
State stringDetails - Details about the lifecycle state of the registration policy
- opc
Dry booleanRun - registration
Policy stringId - resource
Id string - The OCID of the resource used in the registration policy.
- state string
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- {[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 date and time when the registration policy was created.
- time
Updated string - The date and time when the registration policy was last updated.
- x
Cluster stringId
- can_
override_ boolfeatures - Indicates whether features will be overridden.
- compartment_
id str - The OCID for the compartment containing the registration policy.
- connection_
options Sequence[GetRegistration Policy Connection Option] - Types of connection supported by Data Safe.
- 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
- A description of the registration policy.
- display_
name str - The display name of the registration policy.
- enablement_
level str - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- features Sequence[str]
- The Data Safe features granted to the databases registering under the registration policy.
- 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 registration policy.
- lifecycle_
state_ strdetails - Details about the lifecycle state of the registration policy
- opc_
dry_ boolrun - registration_
policy_ strid - resource_
id str - The OCID of the resource used in the registration policy.
- state str
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- 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 date and time when the registration policy was created.
- time_
updated str - The date and time when the registration policy was last updated.
- x_
cluster_ strid
- can
Override BooleanFeatures - Indicates whether features will be overridden.
- compartment
Id String - The OCID for the compartment containing the registration policy.
- connection
Options List<Property Map> - Types of connection supported by Data Safe.
- 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
- A description of the registration policy.
- display
Name String - The display name of the registration policy.
- enablement
Level String - The resource type which has been opted in for the registration policy.
- DATABASE - The registration policy will be opted in at the Container Database level.
- features List<String>
- The Data Safe features granted to the databases registering under the registration policy.
- 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 registration policy.
- lifecycle
State StringDetails - Details about the lifecycle state of the registration policy
- opc
Dry BooleanRun - registration
Policy StringId - resource
Id String - The OCID of the resource used in the registration policy.
- state String
- The lifecycle state of the registration policy.
- CREATING - The registration policy is getting created.
- ACTIVE - The registration policy has been successfully created.
- UPDATING - The registration policy is getting updated.
- NEEDS_ATTENTION - The registration policy needs attention.
- FAILED - The registration policy creation or update has failed.
- DELETING - The registration policy is getting deleted.
- 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 date and time when the registration policy was created.
- time
Updated String - The date and time when the registration policy was last updated.
- x
Cluster StringId
Supporting Types
GetRegistrationPolicyConnectionOption
- Connection
Type string - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- Identifiers List<string>
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
- Connection
Type string - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- Identifiers []string
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
- connection_
type string - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- identifiers list(string)
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
- connection
Type String - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- identifiers List<String>
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
- connection
Type string - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- identifiers string[]
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
- connection_
type str - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- identifiers Sequence[str]
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
- connection
Type String - The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- identifiers List<String>
- List of OCIDs required to establish the connection.
- For
PRIVATE_ENDPOINT, provide the OCID(s) of Data Safe private endpoint(s). - For
ONPREM_CONNECTOR, provide the OCID(s) of on-premises connector(s).
- For
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 v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi