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

oci.DisasterRecovery.AutomaticDrConfiguration

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

    This resource provides the Automatic Dr Configuration resource in Oracle Cloud Infrastructure Disaster Recovery service.

    Create a Automatic DR configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutomaticDrConfiguration = new oci.disasterrecovery.AutomaticDrConfiguration("test_automatic_dr_configuration", {
        displayName: automaticDrConfigurationDisplayName,
        drProtectionGroupId: testDrProtectionGroup.id,
        members: [{
            memberId: testMember.id,
            memberType: automaticDrConfigurationMembersMemberType,
            isAutoFailoverEnabled: automaticDrConfigurationMembersIsAutoFailoverEnabled,
            isAutoSwitchoverEnabled: automaticDrConfigurationMembersIsAutoSwitchoverEnabled,
        }],
        defaultFailoverDrPlanId: testDrPlan.id,
        defaultSwitchoverDrPlanId: testDrPlan.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_automatic_dr_configuration = oci.disasterrecovery.AutomaticDrConfiguration("test_automatic_dr_configuration",
        display_name=automatic_dr_configuration_display_name,
        dr_protection_group_id=test_dr_protection_group["id"],
        members=[{
            "member_id": test_member["id"],
            "member_type": automatic_dr_configuration_members_member_type,
            "is_auto_failover_enabled": automatic_dr_configuration_members_is_auto_failover_enabled,
            "is_auto_switchover_enabled": automatic_dr_configuration_members_is_auto_switchover_enabled,
        }],
        default_failover_dr_plan_id=test_dr_plan["id"],
        default_switchover_dr_plan_id=test_dr_plan["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        })
    
    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.NewAutomaticDrConfiguration(ctx, "test_automatic_dr_configuration", &disasterrecovery.AutomaticDrConfigurationArgs{
    			DisplayName:         pulumi.Any(automaticDrConfigurationDisplayName),
    			DrProtectionGroupId: pulumi.Any(testDrProtectionGroup.Id),
    			Members: disasterrecovery.AutomaticDrConfigurationMemberArray{
    				&disasterrecovery.AutomaticDrConfigurationMemberArgs{
    					MemberId:                pulumi.Any(testMember.Id),
    					MemberType:              pulumi.Any(automaticDrConfigurationMembersMemberType),
    					IsAutoFailoverEnabled:   pulumi.Any(automaticDrConfigurationMembersIsAutoFailoverEnabled),
    					IsAutoSwitchoverEnabled: pulumi.Any(automaticDrConfigurationMembersIsAutoSwitchoverEnabled),
    				},
    			},
    			DefaultFailoverDrPlanId:   pulumi.Any(testDrPlan.Id),
    			DefaultSwitchoverDrPlanId: pulumi.Any(testDrPlan.Id),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    		})
    		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 = new Oci.DisasterRecovery.AutomaticDrConfiguration("test_automatic_dr_configuration", new()
        {
            DisplayName = automaticDrConfigurationDisplayName,
            DrProtectionGroupId = testDrProtectionGroup.Id,
            Members = new[]
            {
                new Oci.DisasterRecovery.Inputs.AutomaticDrConfigurationMemberArgs
                {
                    MemberId = testMember.Id,
                    MemberType = automaticDrConfigurationMembersMemberType,
                    IsAutoFailoverEnabled = automaticDrConfigurationMembersIsAutoFailoverEnabled,
                    IsAutoSwitchoverEnabled = automaticDrConfigurationMembersIsAutoSwitchoverEnabled,
                },
            },
            DefaultFailoverDrPlanId = testDrPlan.Id,
            DefaultSwitchoverDrPlanId = testDrPlan.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DisasterRecovery.AutomaticDrConfiguration;
    import com.pulumi.oci.DisasterRecovery.AutomaticDrConfigurationArgs;
    import com.pulumi.oci.DisasterRecovery.inputs.AutomaticDrConfigurationMemberArgs;
    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) {
            var testAutomaticDrConfiguration = new AutomaticDrConfiguration("testAutomaticDrConfiguration", AutomaticDrConfigurationArgs.builder()
                .displayName(automaticDrConfigurationDisplayName)
                .drProtectionGroupId(testDrProtectionGroup.id())
                .members(AutomaticDrConfigurationMemberArgs.builder()
                    .memberId(testMember.id())
                    .memberType(automaticDrConfigurationMembersMemberType)
                    .isAutoFailoverEnabled(automaticDrConfigurationMembersIsAutoFailoverEnabled)
                    .isAutoSwitchoverEnabled(automaticDrConfigurationMembersIsAutoSwitchoverEnabled)
                    .build())
                .defaultFailoverDrPlanId(testDrPlan.id())
                .defaultSwitchoverDrPlanId(testDrPlan.id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testAutomaticDrConfiguration:
        type: oci:DisasterRecovery:AutomaticDrConfiguration
        name: test_automatic_dr_configuration
        properties:
          displayName: ${automaticDrConfigurationDisplayName}
          drProtectionGroupId: ${testDrProtectionGroup.id}
          members:
            - memberId: ${testMember.id}
              memberType: ${automaticDrConfigurationMembersMemberType}
              isAutoFailoverEnabled: ${automaticDrConfigurationMembersIsAutoFailoverEnabled}
              isAutoSwitchoverEnabled: ${automaticDrConfigurationMembersIsAutoSwitchoverEnabled}
          defaultFailoverDrPlanId: ${testDrPlan.id}
          defaultSwitchoverDrPlanId: ${testDrPlan.id}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
    

    Create AutomaticDrConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AutomaticDrConfiguration(name: string, args: AutomaticDrConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def AutomaticDrConfiguration(resource_name: str,
                                 args: AutomaticDrConfigurationArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AutomaticDrConfiguration(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 display_name: Optional[str] = None,
                                 dr_protection_group_id: Optional[str] = None,
                                 members: Optional[Sequence[AutomaticDrConfigurationMemberArgs]] = None,
                                 default_failover_dr_plan_id: Optional[str] = None,
                                 default_switchover_dr_plan_id: Optional[str] = None,
                                 defined_tags: Optional[Mapping[str, str]] = None,
                                 freeform_tags: Optional[Mapping[str, str]] = None)
    func NewAutomaticDrConfiguration(ctx *Context, name string, args AutomaticDrConfigurationArgs, opts ...ResourceOption) (*AutomaticDrConfiguration, error)
    public AutomaticDrConfiguration(string name, AutomaticDrConfigurationArgs args, CustomResourceOptions? opts = null)
    public AutomaticDrConfiguration(String name, AutomaticDrConfigurationArgs args)
    public AutomaticDrConfiguration(String name, AutomaticDrConfigurationArgs args, CustomResourceOptions options)
    
    type: oci:DisasterRecovery:AutomaticDrConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AutomaticDrConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AutomaticDrConfigurationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AutomaticDrConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AutomaticDrConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AutomaticDrConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var automaticDrConfigurationResource = new Oci.DisasterRecovery.AutomaticDrConfiguration("automaticDrConfigurationResource", new()
    {
        DisplayName = "string",
        DrProtectionGroupId = "string",
        Members = new[]
        {
            new Oci.DisasterRecovery.Inputs.AutomaticDrConfigurationMemberArgs
            {
                MemberId = "string",
                MemberType = "string",
                IsAutoFailoverEnabled = false,
                IsAutoSwitchoverEnabled = false,
            },
        },
        DefaultFailoverDrPlanId = "string",
        DefaultSwitchoverDrPlanId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := disasterrecovery.NewAutomaticDrConfiguration(ctx, "automaticDrConfigurationResource", &disasterrecovery.AutomaticDrConfigurationArgs{
    	DisplayName:         pulumi.String("string"),
    	DrProtectionGroupId: pulumi.String("string"),
    	Members: disasterrecovery.AutomaticDrConfigurationMemberArray{
    		&disasterrecovery.AutomaticDrConfigurationMemberArgs{
    			MemberId:                pulumi.String("string"),
    			MemberType:              pulumi.String("string"),
    			IsAutoFailoverEnabled:   pulumi.Bool(false),
    			IsAutoSwitchoverEnabled: pulumi.Bool(false),
    		},
    	},
    	DefaultFailoverDrPlanId:   pulumi.String("string"),
    	DefaultSwitchoverDrPlanId: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var automaticDrConfigurationResource = new AutomaticDrConfiguration("automaticDrConfigurationResource", AutomaticDrConfigurationArgs.builder()
        .displayName("string")
        .drProtectionGroupId("string")
        .members(AutomaticDrConfigurationMemberArgs.builder()
            .memberId("string")
            .memberType("string")
            .isAutoFailoverEnabled(false)
            .isAutoSwitchoverEnabled(false)
            .build())
        .defaultFailoverDrPlanId("string")
        .defaultSwitchoverDrPlanId("string")
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .build());
    
    automatic_dr_configuration_resource = oci.disasterrecovery.AutomaticDrConfiguration("automaticDrConfigurationResource",
        display_name="string",
        dr_protection_group_id="string",
        members=[{
            "member_id": "string",
            "member_type": "string",
            "is_auto_failover_enabled": False,
            "is_auto_switchover_enabled": False,
        }],
        default_failover_dr_plan_id="string",
        default_switchover_dr_plan_id="string",
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        })
    
    const automaticDrConfigurationResource = new oci.disasterrecovery.AutomaticDrConfiguration("automaticDrConfigurationResource", {
        displayName: "string",
        drProtectionGroupId: "string",
        members: [{
            memberId: "string",
            memberType: "string",
            isAutoFailoverEnabled: false,
            isAutoSwitchoverEnabled: false,
        }],
        defaultFailoverDrPlanId: "string",
        defaultSwitchoverDrPlanId: "string",
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:DisasterRecovery:AutomaticDrConfiguration
    properties:
        defaultFailoverDrPlanId: string
        defaultSwitchoverDrPlanId: string
        definedTags:
            string: string
        displayName: string
        drProtectionGroupId: string
        freeformTags:
            string: string
        members:
            - isAutoFailoverEnabled: false
              isAutoSwitchoverEnabled: false
              memberId: string
              memberType: string
    

    AutomaticDrConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AutomaticDrConfiguration resource accepts the following input properties:

    DisplayName string
    (Updatable) The display name of the Automatic DR configuration being created. Example: Automatic DR Configuration
    DrProtectionGroupId string
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    Members List<AutomaticDrConfigurationMember>
    (Updatable) A list of members for Automatic DR configuration.
    DefaultFailoverDrPlanId string
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefaultSwitchoverDrPlanId string
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    DisplayName string
    (Updatable) The display name of the Automatic DR configuration being created. Example: Automatic DR Configuration
    DrProtectionGroupId string
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    Members []AutomaticDrConfigurationMemberArgs
    (Updatable) A list of members for Automatic DR configuration.
    DefaultFailoverDrPlanId string
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefaultSwitchoverDrPlanId string
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    displayName String
    (Updatable) The display name of the Automatic DR configuration being created. Example: Automatic DR Configuration
    drProtectionGroupId String
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    members List<AutomaticDrConfigurationMember>
    (Updatable) A list of members for Automatic DR configuration.
    defaultFailoverDrPlanId String
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId String
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    displayName string
    (Updatable) The display name of the Automatic DR configuration being created. Example: Automatic DR Configuration
    drProtectionGroupId string
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    members AutomaticDrConfigurationMember[]
    (Updatable) A list of members for Automatic DR configuration.
    defaultFailoverDrPlanId string
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId string
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    display_name str
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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
    members Sequence[AutomaticDrConfigurationMemberArgs]
    (Updatable) A list of members for Automatic DR configuration.
    default_failover_dr_plan_id str
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    default_switchover_dr_plan_id str
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    displayName String
    (Updatable) The display name of the Automatic DR configuration being created. Example: Automatic DR Configuration
    drProtectionGroupId String
    The OCID of the DR protection group to which this Automatic DR configuration belongs. Example: ocid1.drprotectiongroup.oc1..uniqueID
    members List<Property Map>
    (Updatable) A list of members for Automatic DR configuration.
    defaultFailoverDrPlanId String
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId String
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AutomaticDrConfiguration resource produces the following output properties:

    CompartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    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
    CompartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    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
    compartmentId String
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    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
    compartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    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
    compartment_id str
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    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
    compartmentId String
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    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

    Look up Existing AutomaticDrConfiguration Resource

    Get an existing AutomaticDrConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AutomaticDrConfigurationState, opts?: CustomResourceOptions): AutomaticDrConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            default_failover_dr_plan_id: Optional[str] = None,
            default_switchover_dr_plan_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            dr_protection_group_id: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            last_automatic_dr_execution_submit_details: Optional[str] = None,
            last_automatic_dr_execution_submit_status: Optional[str] = None,
            lifecycle_details: Optional[str] = None,
            members: Optional[Sequence[AutomaticDrConfigurationMemberArgs]] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_last_automatic_dr_execution_submit_attempt: Optional[str] = None,
            time_updated: Optional[str] = None) -> AutomaticDrConfiguration
    func GetAutomaticDrConfiguration(ctx *Context, name string, id IDInput, state *AutomaticDrConfigurationState, opts ...ResourceOption) (*AutomaticDrConfiguration, error)
    public static AutomaticDrConfiguration Get(string name, Input<string> id, AutomaticDrConfigurationState? state, CustomResourceOptions? opts = null)
    public static AutomaticDrConfiguration get(String name, Output<String> id, AutomaticDrConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: oci:DisasterRecovery:AutomaticDrConfiguration    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    DefaultFailoverDrPlanId string
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefaultSwitchoverDrPlanId string
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    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<AutomaticDrConfigurationMember>
    (Updatable) A list of members for 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
    CompartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    DefaultFailoverDrPlanId string
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefaultSwitchoverDrPlanId string
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    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 []AutomaticDrConfigurationMemberArgs
    (Updatable) A list of members for 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
    compartmentId String
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    defaultFailoverDrPlanId String
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId String
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    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<AutomaticDrConfigurationMember>
    (Updatable) A list of members for 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
    compartmentId string
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    defaultFailoverDrPlanId string
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId string
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    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 AutomaticDrConfigurationMember[]
    (Updatable) A list of members for 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
    compartment_id str
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    default_failover_dr_plan_id str
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    default_switchover_dr_plan_id str
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    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[AutomaticDrConfigurationMemberArgs]
    (Updatable) A list of members for 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
    compartmentId String
    The OCID of the compartment containing the Automatic DR configuration. Example: ocid1.compartment.oc1..uniqueID
    defaultFailoverDrPlanId String
    (Updatable) The unique id of a Failover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    defaultSwitchoverDrPlanId String
    (Updatable) The unique id of a Switchover DR Plan. Example: ocid1.drplan.oc1..uniqueID
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The display name of the Automatic DR configuration being created. Example: 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>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    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>
    (Updatable) A list of members for 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

    AutomaticDrConfigurationMember, AutomaticDrConfigurationMemberArgs

    MemberId string
    (Updatable) The OCID of the member. Example: ocid1.database.oc1..uniqueID
    MemberType string

    (Updatable) The type of the member.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    IsAutoFailoverEnabled bool
    (Updatable) 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
    (Updatable) 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
    (Updatable) The OCID of the member. Example: ocid1.database.oc1..uniqueID
    MemberType string

    (Updatable) The type of the member.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    IsAutoFailoverEnabled bool
    (Updatable) 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
    (Updatable) 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
    (Updatable) The OCID of the member. Example: ocid1.database.oc1..uniqueID
    memberType String

    (Updatable) The type of the member.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    isAutoFailoverEnabled Boolean
    (Updatable) 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
    (Updatable) 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
    (Updatable) The OCID of the member. Example: ocid1.database.oc1..uniqueID
    memberType string

    (Updatable) The type of the member.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    isAutoFailoverEnabled boolean
    (Updatable) 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
    (Updatable) 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
    (Updatable) The OCID of the member. Example: ocid1.database.oc1..uniqueID
    member_type str

    (Updatable) The type of the member.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    is_auto_failover_enabled bool
    (Updatable) 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
    (Updatable) 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
    (Updatable) The OCID of the member. Example: ocid1.database.oc1..uniqueID
    memberType String

    (Updatable) The type of the member.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    isAutoFailoverEnabled Boolean
    (Updatable) 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
    (Updatable) A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example: false

    Import

    AutomaticDrConfigurations can be imported using the id, e.g.

    $ pulumi import oci:DisasterRecovery/automaticDrConfiguration:AutomaticDrConfiguration test_automatic_dr_configuration "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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