oci.DisasterRecovery.AutomaticDrConfiguration
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:
- Display
Name string - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - Dr
Protection stringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - Members
List<Automatic
Dr Configuration Member> - (Updatable) A list of members for Automatic DR configuration.
- Default
Failover stringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Default
Switchover stringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - 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"}
- Display
Name string - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - Dr
Protection stringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - Members
[]Automatic
Dr Configuration Member Args - (Updatable) A list of members for Automatic DR configuration.
- Default
Failover stringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Default
Switchover stringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - 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"}
- display
Name String - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - dr
Protection StringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - members
List<Automatic
Dr Configuration Member> - (Updatable) A list of members for Automatic DR configuration.
- default
Failover StringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover StringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - 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"}
- display
Name string - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - dr
Protection stringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - members
Automatic
Dr Configuration Member[] - (Updatable) A list of members for Automatic DR configuration.
- default
Failover stringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover stringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - {[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_ strgroup_ id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - members
Sequence[Automatic
Dr Configuration Member Args] - (Updatable) A list of members for Automatic DR configuration.
- default_
failover_ strdr_ plan_ id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default_
switchover_ strdr_ plan_ id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - 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"}
- display
Name String - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - dr
Protection StringGroup Id - 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.
- default
Failover StringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover StringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - 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:
- Compartment
Id 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.
- Last
Automatic stringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- Last
Automatic stringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- Lifecycle
Details string - A message describing the Automatic DR configuration's current state in more detail.
- State string
- The current state of the Automatic DR configuration.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - Time
Last stringAutomatic Dr Execution Submit Attempt - 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 string - The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z
- Compartment
Id 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.
- Last
Automatic stringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- Last
Automatic stringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- Lifecycle
Details string - A message describing the Automatic DR configuration's current state in more detail.
- State string
- The current state of the Automatic DR configuration.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - Time
Last stringAutomatic Dr Execution Submit Attempt - 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 string - The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z
- compartment
Id 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.
- last
Automatic StringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last
Automatic StringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- lifecycle
Details String - A message describing the Automatic DR configuration's current state in more detail.
- state String
- The current state of the Automatic DR configuration.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - time
Last StringAutomatic Dr Execution Submit Attempt - 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 String - The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z
- compartment
Id 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.
- last
Automatic stringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last
Automatic stringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- lifecycle
Details string - A message describing the Automatic DR configuration's current state in more detail.
- state string
- The current state of the Automatic DR configuration.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - time
Last stringAutomatic Dr Execution Submit Attempt - 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 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_ strdr_ execution_ submit_ details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last_
automatic_ strdr_ execution_ submit_ status - 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.
- 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_ strautomatic_ dr_ execution_ submit_ attempt - 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
- compartment
Id 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.
- last
Automatic StringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last
Automatic StringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- lifecycle
Details String - A message describing the Automatic DR configuration's current state in more detail.
- state String
- The current state of the Automatic DR configuration.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - time
Last StringAutomatic Dr Execution Submit Attempt - 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 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) -> AutomaticDrConfigurationfunc 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.
- Compartment
Id string - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - Default
Failover stringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Default
Switchover stringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - Display
Name string - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - Dr
Protection stringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - 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"} - Last
Automatic stringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- Last
Automatic stringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- Lifecycle
Details string - A message describing the Automatic DR configuration's current state in more detail.
- Members
List<Automatic
Dr Configuration Member> - (Updatable) A list of members for Automatic DR configuration.
- State string
- The current state of the Automatic DR configuration.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - Time
Last stringAutomatic Dr Execution Submit Attempt - 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 string - The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z
- Compartment
Id string - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - Default
Failover stringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Default
Switchover stringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - Display
Name string - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - Dr
Protection stringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - 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"} - Last
Automatic stringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- Last
Automatic stringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- Lifecycle
Details string - A message describing the Automatic DR configuration's current state in more detail.
- Members
[]Automatic
Dr Configuration Member Args - (Updatable) A list of members for Automatic DR configuration.
- State string
- The current state of the Automatic DR configuration.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - Time
Last stringAutomatic Dr Execution Submit Attempt - 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 string - The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z
- compartment
Id String - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default
Failover StringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover StringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display
Name String - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - dr
Protection StringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - 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"} - last
Automatic StringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last
Automatic StringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- lifecycle
Details String - A message describing the Automatic DR configuration's current state in more detail.
- members
List<Automatic
Dr Configuration Member> - (Updatable) A list of members for Automatic DR configuration.
- state String
- The current state of the Automatic DR configuration.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - time
Last StringAutomatic Dr Execution Submit Attempt - 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 String - The date and time the Automatic DR configuration was updated. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z
- compartment
Id string - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default
Failover stringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover stringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display
Name string - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - dr
Protection stringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - {[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"} - last
Automatic stringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last
Automatic stringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- lifecycle
Details string - A message describing the Automatic DR configuration's current state in more detail.
- members
Automatic
Dr Configuration Member[] - (Updatable) A list of members for Automatic DR configuration.
- state string
- The current state of the Automatic DR configuration.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - time
Last stringAutomatic Dr Execution Submit Attempt - 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 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_ strdr_ plan_ id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default_
switchover_ strdr_ plan_ id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - 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_ strgroup_ id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - 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_ strdr_ execution_ submit_ details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last_
automatic_ strdr_ execution_ submit_ status - 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[Automatic
Dr Configuration Member Args] - (Updatable) A list of members for Automatic DR configuration.
- state str
- The current state of the Automatic DR configuration.
- 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_ strautomatic_ dr_ execution_ submit_ attempt - 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
- compartment
Id String - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default
Failover StringDr Plan Id - (Updatable) The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover StringDr Plan Id - (Updatable) The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display
Name String - (Updatable) The display name of the Automatic DR configuration being created. Example:
Automatic DR Configuration - dr
Protection StringGroup Id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - 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"} - last
Automatic StringDr Execution Submit Details - A message describing the result of the most recent attempt made to submit an Automatic DR plan execution.
- last
Automatic StringDr Execution Submit Status - The status of most recent attempt to submit Automatic DR plan execution.
- lifecycle
Details 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.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the Automatic DR configuration was created. An RFC3339 formatted datetime string. Example:
2024-03-29T09:36:42Z - time
Last StringAutomatic Dr Execution Submit Attempt - 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 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
- Member
Id string - (Updatable) The OCID of the member. Example:
ocid1.database.oc1..uniqueID - Member
Type 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
- Is
Auto boolFailover Enabled - (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 boolSwitchover Enabled - (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 string - (Updatable) The OCID of the member. Example:
ocid1.database.oc1..uniqueID - Member
Type 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
- Is
Auto boolFailover Enabled - (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 boolSwitchover Enabled - (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 String - (Updatable) The OCID of the member. Example:
ocid1.database.oc1..uniqueID - member
Type 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
- is
Auto BooleanFailover Enabled - (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 BooleanSwitchover Enabled - (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 string - (Updatable) The OCID of the member. Example:
ocid1.database.oc1..uniqueID - member
Type 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
- is
Auto booleanFailover Enabled - (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 booleanSwitchover Enabled - (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_ boolfailover_ enabled - (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_ boolswitchover_ enabled - (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 String - (Updatable) The OCID of the member. Example:
ocid1.database.oc1..uniqueID - member
Type 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
- is
Auto BooleanFailover Enabled - (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 BooleanSwitchover Enabled - (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
ociTerraform Provider.
