1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataSafe
  6. getRegistrationPolicy
Viewing docs for Oracle Cloud Infrastructure v5.5.0
published on Thursday, Oct 22, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.5.0
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 dictionary
    data "oci_data_safe_get_registration_policy" "name" {
        # arguments
    }

    The following arguments are supported:

    RegistrationPolicyId string
    The OCID of the registration policy to be used for identification
    RegistrationPolicyId string
    The OCID of the registration policy to be used for identification
    registration_policy_id string
    The OCID of the registration policy to be used for identification
    registrationPolicyId String
    The OCID of the registration policy to be used for identification
    registrationPolicyId string
    The OCID of the registration policy to be used for identification
    registration_policy_id str
    The OCID of the registration policy to be used for identification
    registrationPolicyId String
    The OCID of the registration policy to be used for identification

    getRegistrationPolicy Result

    The following output properties are available:

    CanOverrideFeatures bool
    Indicates whether features will be overridden.
    CompartmentId string
    The OCID for the compartment containing the registration policy.
    ConnectionOptions List<GetRegistrationPolicyConnectionOption>
    Types of connection supported by Data Safe.
    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
    A description of the registration policy.
    DisplayName string
    The display name of the registration policy.
    EnablementLevel 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.
    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 registration policy.
    LifecycleStateDetails string
    Details about the lifecycle state of the registration policy
    OpcDryRun bool
    RegistrationPolicyId string
    ResourceId 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.
    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 date and time when the registration policy was created.
    TimeUpdated string
    The date and time when the registration policy was last updated.
    XClusterId string
    CanOverrideFeatures bool
    Indicates whether features will be overridden.
    CompartmentId string
    The OCID for the compartment containing the registration policy.
    ConnectionOptions []GetRegistrationPolicyConnectionOption
    Types of connection supported by Data Safe.
    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
    A description of the registration policy.
    DisplayName string
    The display name of the registration policy.
    EnablementLevel 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.
    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 registration policy.
    LifecycleStateDetails string
    Details about the lifecycle state of the registration policy
    OpcDryRun bool
    RegistrationPolicyId string
    ResourceId 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.
    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 date and time when the registration policy was created.
    TimeUpdated string
    The date and time when the registration policy was last updated.
    XClusterId string
    can_override_features bool
    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.
    defined_tags 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.
    freeform_tags 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_details string
    Details about the lifecycle state of the registration policy
    opc_dry_run bool
    registration_policy_id string
    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.
    system_tags 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_id string
    canOverrideFeatures Boolean
    Indicates whether features will be overridden.
    compartmentId String
    The OCID for the compartment containing the registration policy.
    connectionOptions List<GetRegistrationPolicyConnectionOption>
    Types of connection supported by Data Safe.
    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
    A description of the registration policy.
    displayName String
    The display name of the registration policy.
    enablementLevel 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.
    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 registration policy.
    lifecycleStateDetails String
    Details about the lifecycle state of the registration policy
    opcDryRun Boolean
    registrationPolicyId String
    resourceId 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.
    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 date and time when the registration policy was created.
    timeUpdated String
    The date and time when the registration policy was last updated.
    xClusterId String
    canOverrideFeatures boolean
    Indicates whether features will be overridden.
    compartmentId string
    The OCID for the compartment containing the registration policy.
    connectionOptions GetRegistrationPolicyConnectionOption[]
    Types of connection supported by Data Safe.
    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
    A description of the registration policy.
    displayName string
    The display name of the registration policy.
    enablementLevel 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.
    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 registration policy.
    lifecycleStateDetails string
    Details about the lifecycle state of the registration policy
    opcDryRun boolean
    registrationPolicyId string
    resourceId 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.
    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 date and time when the registration policy was created.
    timeUpdated string
    The date and time when the registration policy was last updated.
    xClusterId string
    can_override_features bool
    Indicates whether features will be overridden.
    compartment_id str
    The OCID for the compartment containing the registration policy.
    connection_options Sequence[GetRegistrationPolicyConnectionOption]
    Types of connection supported by Data Safe.
    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
    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.
    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 registration policy.
    lifecycle_state_details str
    Details about the lifecycle state of the registration policy
    opc_dry_run bool
    registration_policy_id str
    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.
    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 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_id str
    canOverrideFeatures Boolean
    Indicates whether features will be overridden.
    compartmentId String
    The OCID for the compartment containing the registration policy.
    connectionOptions List<Property Map>
    Types of connection supported by Data Safe.
    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
    A description of the registration policy.
    displayName String
    The display name of the registration policy.
    enablementLevel 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.
    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 registration policy.
    lifecycleStateDetails String
    Details about the lifecycle state of the registration policy
    opcDryRun Boolean
    registrationPolicyId String
    resourceId 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.
    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 date and time when the registration policy was created.
    timeUpdated String
    The date and time when the registration policy was last updated.
    xClusterId String

    Supporting Types

    GetRegistrationPolicyConnectionOption

    ConnectionType 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).
    ConnectionType 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).
    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).
    connectionType 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).
    connectionType 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).
    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).
    connectionType 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).

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.5.0
    published on Thursday, Oct 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial