1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DisasterRecovery
  5. getAutomaticDrConfiguration
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.DisasterRecovery.getAutomaticDrConfiguration

Start a Neo task
Explain and create an oci.DisasterRecovery.getAutomaticDrConfiguration resource
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    This data source provides details about a specific Automatic Dr Configuration resource in Oracle Cloud Infrastructure Disaster Recovery service.

    Get details for the Automatic DR configuration identified by automaticDrConfigurationId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutomaticDrConfiguration = oci.DisasterRecovery.getAutomaticDrConfiguration({
        automaticDrConfigurationId: testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_automatic_dr_configuration = oci.DisasterRecovery.get_automatic_dr_configuration(automatic_dr_configuration_id=test_automatic_dr_configuration_oci_disaster_recovery_automatic_dr_configuration["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/disasterrecovery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := disasterrecovery.GetAutomaticDrConfiguration(ctx, &disasterrecovery.GetAutomaticDrConfigurationArgs{
    			AutomaticDrConfigurationId: testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.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 testAutomaticDrConfiguration = Oci.DisasterRecovery.GetAutomaticDrConfiguration.Invoke(new()
        {
            AutomaticDrConfigurationId = testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DisasterRecovery.DisasterRecoveryFunctions;
    import com.pulumi.oci.DisasterRecovery.inputs.GetAutomaticDrConfigurationArgs;
    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 testAutomaticDrConfiguration = DisasterRecoveryFunctions.getAutomaticDrConfiguration(GetAutomaticDrConfigurationArgs.builder()
                .automaticDrConfigurationId(testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.id())
                .build());
    
        }
    }
    
    variables:
      testAutomaticDrConfiguration:
        fn::invoke:
          function: oci:DisasterRecovery:getAutomaticDrConfiguration
          arguments:
            automaticDrConfigurationId: ${testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.id}
    

    Using getAutomaticDrConfiguration

    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 getAutomaticDrConfiguration(args: GetAutomaticDrConfigurationArgs, opts?: InvokeOptions): Promise<GetAutomaticDrConfigurationResult>
    function getAutomaticDrConfigurationOutput(args: GetAutomaticDrConfigurationOutputArgs, opts?: InvokeOptions): Output<GetAutomaticDrConfigurationResult>
    def get_automatic_dr_configuration(automatic_dr_configuration_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetAutomaticDrConfigurationResult
    def get_automatic_dr_configuration_output(automatic_dr_configuration_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetAutomaticDrConfigurationResult]
    func LookupAutomaticDrConfiguration(ctx *Context, args *LookupAutomaticDrConfigurationArgs, opts ...InvokeOption) (*LookupAutomaticDrConfigurationResult, error)
    func LookupAutomaticDrConfigurationOutput(ctx *Context, args *LookupAutomaticDrConfigurationOutputArgs, opts ...InvokeOption) LookupAutomaticDrConfigurationResultOutput

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

    public static class GetAutomaticDrConfiguration 
    {
        public static Task<GetAutomaticDrConfigurationResult> InvokeAsync(GetAutomaticDrConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetAutomaticDrConfigurationResult> Invoke(GetAutomaticDrConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAutomaticDrConfigurationResult> getAutomaticDrConfiguration(GetAutomaticDrConfigurationArgs args, InvokeOptions options)
    public static Output<GetAutomaticDrConfigurationResult> getAutomaticDrConfiguration(GetAutomaticDrConfigurationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DisasterRecovery/getAutomaticDrConfiguration:getAutomaticDrConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AutomaticDrConfigurationId string
    The OCID of the Automatic DR configuration. Example: ocid1.automaticDrConfiguration.oc1..uniqueID
    AutomaticDrConfigurationId string
    The OCID of the Automatic DR configuration. Example: ocid1.automaticDrConfiguration.oc1..uniqueID
    automaticDrConfigurationId String
    The OCID of the Automatic DR configuration. Example: ocid1.automaticDrConfiguration.oc1..uniqueID
    automaticDrConfigurationId string
    The OCID of the Automatic DR configuration. Example: ocid1.automaticDrConfiguration.oc1..uniqueID
    automatic_dr_configuration_id str
    The OCID of the Automatic DR configuration. Example: ocid1.automaticDrConfiguration.oc1..uniqueID
    automaticDrConfigurationId String
    The OCID of the Automatic DR configuration. Example: ocid1.automaticDrConfiguration.oc1..uniqueID

    getAutomaticDrConfiguration Result

    The following output properties are available:

    AutomaticDrConfigurationId string
    CompartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    DefaultFailoverDrPlanId string
    The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefaultSwitchoverDrPlanId string
    The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The display name of the Automatic DR configuration.
    DrProtectionGroupId string
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    Id string
    The OCID of the Automatic DR configuration. Example: ocid1.automaticdrconfiguration.oc1..uniqueID
    LastAutomaticDrExecutionSubmitDetails string
    A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
    LastAutomaticDrExecutionSubmitStatus string
    The status of most recent attempt to submit Automatic DR plan execution.
    LifecycleDetails string
    A message describing the Automatic DR configuration's current state in more detail.
    Members List<GetAutomaticDrConfigurationMember>
    The list of members in this Automatic DR configuration.
    State string
    The current state of the Automatic DR configuration.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    TimeLastAutomaticDrExecutionSubmitAttempt string
    The date and time of the most recent attempt made to submit an Automatic DR plan execution. An RFC3339 formatted datetime string. Example: 2025-06-30T09:36:42Z
    TimeUpdated string
    The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    AutomaticDrConfigurationId string
    CompartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    DefaultFailoverDrPlanId string
    The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefaultSwitchoverDrPlanId string
    The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The display name of the Automatic DR configuration.
    DrProtectionGroupId string
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    Id string
    The OCID of the Automatic DR configuration. Example: ocid1.automaticdrconfiguration.oc1..uniqueID
    LastAutomaticDrExecutionSubmitDetails string
    A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
    LastAutomaticDrExecutionSubmitStatus string
    The status of most recent attempt to submit Automatic DR plan execution.
    LifecycleDetails string
    A message describing the Automatic DR configuration's current state in more detail.
    Members []GetAutomaticDrConfigurationMember
    The list of members in this Automatic DR configuration.
    State string
    The current state of the Automatic DR configuration.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    TimeLastAutomaticDrExecutionSubmitAttempt string
    The date and time of the most recent attempt made to submit an Automatic DR plan execution. An RFC3339 formatted datetime string. Example: 2025-06-30T09:36:42Z
    TimeUpdated string
    The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    automaticDrConfigurationId String
    compartmentId String
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    defaultFailoverDrPlanId String
    The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId String
    The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    displayName String
    The display name of the Automatic DR configuration.
    drProtectionGroupId String
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    id String
    The OCID of the Automatic DR configuration. Example: ocid1.automaticdrconfiguration.oc1..uniqueID
    lastAutomaticDrExecutionSubmitDetails String
    A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
    lastAutomaticDrExecutionSubmitStatus String
    The status of most recent attempt to submit Automatic DR plan execution.
    lifecycleDetails String
    A message describing the Automatic DR configuration's current state in more detail.
    members List<GetAutomaticDrConfigurationMember>
    The list of members in this Automatic DR configuration.
    state String
    The current state of the Automatic DR configuration.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    timeLastAutomaticDrExecutionSubmitAttempt String
    The date and time of the most recent attempt made to submit an Automatic DR plan execution. An RFC3339 formatted datetime string. Example: 2025-06-30T09:36:42Z
    timeUpdated String
    The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    automaticDrConfigurationId string
    compartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    defaultFailoverDrPlanId string
    The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId string
    The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    displayName string
    The display name of the Automatic DR configuration.
    drProtectionGroupId string
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    id string
    The OCID of the Automatic DR configuration. Example: ocid1.automaticdrconfiguration.oc1..uniqueID
    lastAutomaticDrExecutionSubmitDetails string
    A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
    lastAutomaticDrExecutionSubmitStatus string
    The status of most recent attempt to submit Automatic DR plan execution.
    lifecycleDetails string
    A message describing the Automatic DR configuration's current state in more detail.
    members GetAutomaticDrConfigurationMember[]
    The list of members in this Automatic DR configuration.
    state string
    The current state of the Automatic DR configuration.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    timeLastAutomaticDrExecutionSubmitAttempt string
    The date and time of the most recent attempt made to submit an Automatic DR plan execution. An RFC3339 formatted datetime string. Example: 2025-06-30T09:36:42Z
    timeUpdated string
    The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    automatic_dr_configuration_id str
    compartment_id str
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    default_failover_dr_plan_id str
    The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    default_switchover_dr_plan_id str
    The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    display_name str
    The display name of the Automatic DR configuration.
    dr_protection_group_id str
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    id str
    The OCID of the Automatic DR configuration. Example: ocid1.automaticdrconfiguration.oc1..uniqueID
    last_automatic_dr_execution_submit_details str
    A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
    last_automatic_dr_execution_submit_status str
    The status of most recent attempt to submit Automatic DR plan execution.
    lifecycle_details str
    A message describing the Automatic DR configuration's current state in more detail.
    members Sequence[GetAutomaticDrConfigurationMember]
    The list of members in this Automatic DR configuration.
    state str
    The current state of the Automatic DR configuration.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    time_last_automatic_dr_execution_submit_attempt str
    The date and time of the most recent attempt made to submit an Automatic DR plan execution. An RFC3339 formatted datetime string. Example: 2025-06-30T09:36:42Z
    time_updated str
    The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    automaticDrConfigurationId String
    compartmentId String
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    defaultFailoverDrPlanId String
    The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId String
    The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    displayName String
    The display name of the Automatic DR configuration.
    drProtectionGroupId String
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    id String
    The OCID of the Automatic DR configuration. Example: ocid1.automaticdrconfiguration.oc1..uniqueID
    lastAutomaticDrExecutionSubmitDetails String
    A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
    lastAutomaticDrExecutionSubmitStatus String
    The status of most recent attempt to submit Automatic DR plan execution.
    lifecycleDetails String
    A message describing the Automatic DR configuration's current state in more detail.
    members List<Property Map>
    The list of members in this Automatic DR configuration.
    state String
    The current state of the Automatic DR configuration.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z
    timeLastAutomaticDrExecutionSubmitAttempt String
    The date and time of the most recent attempt made to submit an Automatic DR plan execution. An RFC3339 formatted datetime string. Example: 2025-06-30T09:36:42Z
    timeUpdated String
    The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example: 2024-03-29T09:36:42Z

    Supporting Types

    GetAutomaticDrConfigurationMember

    IsAutoFailoverEnabled bool
    A flag indicating if the automatic failover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    IsAutoSwitchoverEnabled bool
    A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    MemberId string
    The unique id of the member. Must not be modified by user. Example: ocid1.database.oc1..uniqueID
    MemberType string
    The type of the member.
    IsAutoFailoverEnabled bool
    A flag indicating if the automatic failover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    IsAutoSwitchoverEnabled bool
    A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    MemberId string
    The unique id of the member. Must not be modified by user. Example: ocid1.database.oc1..uniqueID
    MemberType string
    The type of the member.
    isAutoFailoverEnabled Boolean
    A flag indicating if the automatic failover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    isAutoSwitchoverEnabled Boolean
    A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    memberId String
    The unique id of the member. Must not be modified by user. Example: ocid1.database.oc1..uniqueID
    memberType String
    The type of the member.
    isAutoFailoverEnabled boolean
    A flag indicating if the automatic failover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    isAutoSwitchoverEnabled boolean
    A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    memberId string
    The unique id of the member. Must not be modified by user. Example: ocid1.database.oc1..uniqueID
    memberType string
    The type of the member.
    is_auto_failover_enabled bool
    A flag indicating if the automatic failover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    is_auto_switchover_enabled bool
    A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    member_id str
    The unique id of the member. Must not be modified by user. Example: ocid1.database.oc1..uniqueID
    member_type str
    The type of the member.
    isAutoFailoverEnabled Boolean
    A flag indicating if the automatic failover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    isAutoSwitchoverEnabled Boolean
    A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false
    memberId String
    The unique id of the member. Must not be modified by user. Example: ocid1.database.oc1..uniqueID
    memberType String
    The type of the member.

    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.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate