Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.DisasterRecovery.getAutomaticDrConfiguration
Start a Neo task
Explain and create an oci.DisasterRecovery.getAutomaticDrConfiguration resource
This data source provides details about a specific Automatic Dr Configuration resource in Oracle Cloud Infrastructure Disaster Recovery service.
Get details for the Automatic DR configuration identified by automaticDrConfigurationId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutomaticDrConfiguration = oci.DisasterRecovery.getAutomaticDrConfiguration({
automaticDrConfigurationId: testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.id,
});
import pulumi
import pulumi_oci as oci
test_automatic_dr_configuration = oci.DisasterRecovery.get_automatic_dr_configuration(automatic_dr_configuration_id=test_automatic_dr_configuration_oci_disaster_recovery_automatic_dr_configuration["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/disasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := disasterrecovery.GetAutomaticDrConfiguration(ctx, &disasterrecovery.GetAutomaticDrConfigurationArgs{
AutomaticDrConfigurationId: testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAutomaticDrConfiguration = Oci.DisasterRecovery.GetAutomaticDrConfiguration.Invoke(new()
{
AutomaticDrConfigurationId = testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DisasterRecovery.DisasterRecoveryFunctions;
import com.pulumi.oci.DisasterRecovery.inputs.GetAutomaticDrConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testAutomaticDrConfiguration = DisasterRecoveryFunctions.getAutomaticDrConfiguration(GetAutomaticDrConfigurationArgs.builder()
.automaticDrConfigurationId(testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.id())
.build());
}
}
variables:
testAutomaticDrConfiguration:
fn::invoke:
function: oci:DisasterRecovery:getAutomaticDrConfiguration
arguments:
automaticDrConfigurationId: ${testAutomaticDrConfigurationOciDisasterRecoveryAutomaticDrConfiguration.id}
Using getAutomaticDrConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAutomaticDrConfiguration(args: GetAutomaticDrConfigurationArgs, opts?: InvokeOptions): Promise<GetAutomaticDrConfigurationResult>
function getAutomaticDrConfigurationOutput(args: GetAutomaticDrConfigurationOutputArgs, opts?: InvokeOptions): Output<GetAutomaticDrConfigurationResult>def get_automatic_dr_configuration(automatic_dr_configuration_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAutomaticDrConfigurationResult
def get_automatic_dr_configuration_output(automatic_dr_configuration_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAutomaticDrConfigurationResult]func LookupAutomaticDrConfiguration(ctx *Context, args *LookupAutomaticDrConfigurationArgs, opts ...InvokeOption) (*LookupAutomaticDrConfigurationResult, error)
func LookupAutomaticDrConfigurationOutput(ctx *Context, args *LookupAutomaticDrConfigurationOutputArgs, opts ...InvokeOption) LookupAutomaticDrConfigurationResultOutput> Note: This function is named LookupAutomaticDrConfiguration in the Go SDK.
public static class GetAutomaticDrConfiguration
{
public static Task<GetAutomaticDrConfigurationResult> InvokeAsync(GetAutomaticDrConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetAutomaticDrConfigurationResult> Invoke(GetAutomaticDrConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutomaticDrConfigurationResult> getAutomaticDrConfiguration(GetAutomaticDrConfigurationArgs args, InvokeOptions options)
public static Output<GetAutomaticDrConfigurationResult> getAutomaticDrConfiguration(GetAutomaticDrConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: oci:DisasterRecovery/getAutomaticDrConfiguration:getAutomaticDrConfiguration
arguments:
# arguments dictionaryThe following arguments are supported:
- Automatic
Dr stringConfiguration Id - The OCID of the Automatic DR configuration. Example:
ocid1.automaticDrConfiguration.oc1..uniqueID
- Automatic
Dr stringConfiguration Id - The OCID of the Automatic DR configuration. Example:
ocid1.automaticDrConfiguration.oc1..uniqueID
- automatic
Dr StringConfiguration Id - The OCID of the Automatic DR configuration. Example:
ocid1.automaticDrConfiguration.oc1..uniqueID
- automatic
Dr stringConfiguration Id - The OCID of the Automatic DR configuration. Example:
ocid1.automaticDrConfiguration.oc1..uniqueID
- automatic_
dr_ strconfiguration_ id - The OCID of the Automatic DR configuration. Example:
ocid1.automaticDrConfiguration.oc1..uniqueID
- automatic
Dr StringConfiguration Id - The OCID of the Automatic DR configuration. Example:
ocid1.automaticDrConfiguration.oc1..uniqueID
getAutomaticDrConfiguration Result
The following output properties are available:
- Automatic
Dr stringConfiguration Id - Compartment
Id string - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - Default
Failover stringDr Plan Id - The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Default
Switchover stringDr Plan Id - The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - Display
Name string - The display name of the 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>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"} - Id string
- The OCID of the Automatic DR configuration. Example:
ocid1.automaticdrconfiguration.oc1..uniqueID - 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<Get
Automatic Dr Configuration Member> - The list of members in this 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
- Automatic
Dr stringConfiguration Id - Compartment
Id string - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - Default
Failover stringDr Plan Id - The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Default
Switchover stringDr Plan Id - The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - Display
Name string - The display name of the 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
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"} - Id string
- The OCID of the Automatic DR configuration. Example:
ocid1.automaticdrconfiguration.oc1..uniqueID - 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
[]Get
Automatic Dr Configuration Member - The list of members in this 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
- automatic
Dr StringConfiguration Id - compartment
Id String - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default
Failover StringDr Plan Id - The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover StringDr Plan Id - The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display
Name String - The display name of the 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>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"} - id String
- The OCID of the Automatic DR configuration. Example:
ocid1.automaticdrconfiguration.oc1..uniqueID - 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<Get
Automatic Dr Configuration Member> - The list of members in this 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
- automatic
Dr stringConfiguration Id - compartment
Id string - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default
Failover stringDr Plan Id - The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover stringDr Plan Id - The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display
Name string - The display name of the 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}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"} - id string
- The OCID of the Automatic DR configuration. Example:
ocid1.automaticdrconfiguration.oc1..uniqueID - 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
Get
Automatic Dr Configuration Member[] - The list of members in this 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
- automatic_
dr_ strconfiguration_ id - compartment_
id str - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default_
failover_ strdr_ plan_ id - The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default_
switchover_ strdr_ plan_ id - The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display_
name str - The display name of the Automatic DR configuration.
- dr_
protection_ strgroup_ id - The OCID of the DR protection group to which this Automatic DR configuration belongs. Example:
ocid1.drprotectiongroup.oc1..uniqueID - Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"} - id str
- The OCID of the Automatic DR configuration. Example:
ocid1.automaticdrconfiguration.oc1..uniqueID - last_
automatic_ 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[Get
Automatic Dr Configuration Member] - The list of members in this 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
- automatic
Dr StringConfiguration Id - compartment
Id String - The OCID of the compartment containing the Automatic DR configuration. Example:
ocid1.compartment.oc1..uniqueID - default
Failover StringDr Plan Id - The unique id of a Failover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - default
Switchover StringDr Plan Id - The unique id of a Switchover DR Plan. Example:
ocid1.drplan.oc1..uniqueID - Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"Operations.CostCenter": "42"} - display
Name String - The display name of the 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>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"} - id String
- The OCID of the Automatic DR configuration. Example:
ocid1.automaticdrconfiguration.oc1..uniqueID - 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>
- The list of members in this 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
GetAutomaticDrConfigurationMember
- Is
Auto boolFailover Enabled - 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 - 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 - The unique id of the member. Must not be modified by user. Example:
ocid1.database.oc1..uniqueID - Member
Type string - The type of the member.
- Is
Auto boolFailover Enabled - 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 - 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 - The unique id of the member. Must not be modified by user. Example:
ocid1.database.oc1..uniqueID - Member
Type string - The type of the member.
- is
Auto BooleanFailover Enabled - 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 - 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 - The unique id of the member. Must not be modified by user. Example:
ocid1.database.oc1..uniqueID - member
Type String - The type of the member.
- is
Auto booleanFailover Enabled - 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 - 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 - The unique id of the member. Must not be modified by user. Example:
ocid1.database.oc1..uniqueID - member
Type string - The type of the member.
- is_
auto_ boolfailover_ enabled - 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 - A flag indicating if the automatic switchover should be enabled for the Autonomous Database Serverless member in the Automatic DR configuration. Example:
false - member_
id str - The unique id of the member. Must not be modified by user. Example:
ocid1.database.oc1..uniqueID - member_
type str - The type of the member.
- is
Auto BooleanFailover Enabled - 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 - 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 - The unique id of the member. Must not be modified by user. Example:
ocid1.database.oc1..uniqueID - member
Type String - The type of the member.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
