oci logo
Oracle Cloud Infrastructure v0.19.0, May 26 23

oci.DisasterRecovery.DrPlan

Explore with Pulumi AI

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

Creates a new DR Plan of the specified DR Plan type.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDrPlan = new Oci.DisasterRecovery.DrPlan("testDrPlan", new()
    {
        DisplayName = @var.Dr_plan_display_name,
        DrProtectionGroupId = oci_disaster_recovery_dr_protection_group.Test_dr_protection_group.Id,
        Type = @var.Dr_plan_type,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DisasterRecovery"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DisasterRecovery.NewDrPlan(ctx, "testDrPlan", &DisasterRecovery.DrPlanArgs{
			DisplayName:         pulumi.Any(_var.Dr_plan_display_name),
			DrProtectionGroupId: pulumi.Any(oci_disaster_recovery_dr_protection_group.Test_dr_protection_group.Id),
			Type:                pulumi.Any(_var.Dr_plan_type),
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DisasterRecovery.DrPlan;
import com.pulumi.oci.DisasterRecovery.DrPlanArgs;
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 testDrPlan = new DrPlan("testDrPlan", DrPlanArgs.builder()        
            .displayName(var_.dr_plan_display_name())
            .drProtectionGroupId(oci_disaster_recovery_dr_protection_group.test_dr_protection_group().id())
            .type(var_.dr_plan_type())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_dr_plan = oci.disaster_recovery.DrPlan("testDrPlan",
    display_name=var["dr_plan_display_name"],
    dr_protection_group_id=oci_disaster_recovery_dr_protection_group["test_dr_protection_group"]["id"],
    type=var["dr_plan_type"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrPlan = new oci.disasterrecovery.DrPlan("testDrPlan", {
    displayName: _var.dr_plan_display_name,
    drProtectionGroupId: oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id,
    type: _var.dr_plan_type,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
});
resources:
  testDrPlan:
    type: oci:DisasterRecovery:DrPlan
    properties:
      #Required
      displayName: ${var.dr_plan_display_name}
      drProtectionGroupId: ${oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id}
      type: ${var.dr_plan_type}
      #Optional
      definedTags:
        Operations.CostCenter: '42'
      freeformTags:
        Department: Finance

Create DrPlan Resource

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

name string
The unique name of the resource.
args DrPlanArgs
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 DrPlanArgs
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 DrPlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DrPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DrPlanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DrPlan Resource Properties

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

Inputs

The DrPlan resource accepts the following input properties:

DisplayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

DrProtectionGroupId string

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

Type string

The type of DR Plan to be created.

** 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

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

FreeformTags Dictionary<string, object>

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

DrProtectionGroupId string

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

Type string

The type of DR Plan to be created.

** 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

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

FreeformTags map[string]interface{}

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

drProtectionGroupId String

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

type String

The type of DR Plan to be created.

** 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

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

freeformTags Map<String,Object>

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

drProtectionGroupId string

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

type string

The type of DR Plan to be created.

** 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

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

freeformTags {[key: string]: any}

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

dr_protection_group_id str

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

type str

The type of DR Plan to be created.

** 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

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

freeform_tags Mapping[str, Any]

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

drProtectionGroupId String

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

type String

The type of DR Plan to be created.

** 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

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

freeformTags Map<Any>

(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 DrPlan resource produces the following output properties:

CompartmentId string

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

Id string

The provider-assigned unique ID for this managed resource.

LifeCycleDetails string

A message describing the DR Plan's current state in more detail.

PeerDrProtectionGroupId string

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

PeerRegion string

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

PlanGroups List<DrPlanPlanGroup>

The list of groups in this DR Plan.

State string

The current state of the DR Plan.

SystemTags Dictionary<string, object>

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

TimeUpdated string

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

CompartmentId string

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

Id string

The provider-assigned unique ID for this managed resource.

LifeCycleDetails string

A message describing the DR Plan's current state in more detail.

PeerDrProtectionGroupId string

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

PeerRegion string

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

PlanGroups []DrPlanPlanGroup

The list of groups in this DR Plan.

State string

The current state of the DR Plan.

SystemTags map[string]interface{}

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

TimeUpdated string

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

compartmentId String

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

id String

The provider-assigned unique ID for this managed resource.

lifeCycleDetails String

A message describing the DR Plan's current state in more detail.

peerDrProtectionGroupId String

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peerRegion String

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

planGroups List<DrPlanPlanGroup>

The list of groups in this DR Plan.

state String

The current state of the DR Plan.

systemTags Map<String,Object>

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

timeUpdated String

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

compartmentId string

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

id string

The provider-assigned unique ID for this managed resource.

lifeCycleDetails string

A message describing the DR Plan's current state in more detail.

peerDrProtectionGroupId string

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peerRegion string

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

planGroups DrPlanPlanGroup[]

The list of groups in this DR Plan.

state string

The current state of the DR Plan.

systemTags {[key: string]: any}

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

timeUpdated string

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

compartment_id str

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

id str

The provider-assigned unique ID for this managed resource.

life_cycle_details str

A message describing the DR Plan's current state in more detail.

peer_dr_protection_group_id str

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peer_region str

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

plan_groups DrPlanPlanGroup]

The list of groups in this DR Plan.

state str

The current state of the DR Plan.

system_tags Mapping[str, Any]

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

time_updated str

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

compartmentId String

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

id String

The provider-assigned unique ID for this managed resource.

lifeCycleDetails String

A message describing the DR Plan's current state in more detail.

peerDrProtectionGroupId String

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peerRegion String

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

planGroups List<Property Map>

The list of groups in this DR Plan.

state String

The current state of the DR Plan.

systemTags Map<Any>

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

timeUpdated String

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

Look up Existing DrPlan Resource

Get an existing DrPlan 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?: DrPlanState, opts?: CustomResourceOptions): DrPlan
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        dr_protection_group_id: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        life_cycle_details: Optional[str] = None,
        peer_dr_protection_group_id: Optional[str] = None,
        peer_region: Optional[str] = None,
        plan_groups: Optional[Sequence[_disasterrecovery.DrPlanPlanGroupArgs]] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, Any]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        type: Optional[str] = None) -> DrPlan
func GetDrPlan(ctx *Context, name string, id IDInput, state *DrPlanState, opts ...ResourceOption) (*DrPlan, error)
public static DrPlan Get(string name, Input<string> id, DrPlanState? state, CustomResourceOptions? opts = null)
public static DrPlan get(String name, Output<String> id, DrPlanState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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 DR Plan. Example: ocid1.compartment.oc1..exampleocid1

DefinedTags Dictionary<string, object>

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

DrProtectionGroupId string

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

LifeCycleDetails string

A message describing the DR Plan's current state in more detail.

PeerDrProtectionGroupId string

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

PeerRegion string

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

PlanGroups List<DrPlanPlanGroupArgs>

The list of groups in this DR Plan.

State string

The current state of the DR Plan.

SystemTags Dictionary<string, object>

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

TimeUpdated string

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

Type string

The type of DR Plan to be created.

** 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

CompartmentId string

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

DefinedTags map[string]interface{}

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

DrProtectionGroupId string

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

LifeCycleDetails string

A message describing the DR Plan's current state in more detail.

PeerDrProtectionGroupId string

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

PeerRegion string

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

PlanGroups []DrPlanPlanGroupArgs

The list of groups in this DR Plan.

State string

The current state of the DR Plan.

SystemTags map[string]interface{}

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

TimeUpdated string

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

Type string

The type of DR Plan to be created.

** 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

compartmentId String

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

definedTags Map<String,Object>

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

drProtectionGroupId String

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

lifeCycleDetails String

A message describing the DR Plan's current state in more detail.

peerDrProtectionGroupId String

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peerRegion String

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

planGroups List<DrPlanPlanGroupArgs>

The list of groups in this DR Plan.

state String

The current state of the DR Plan.

systemTags Map<String,Object>

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

timeUpdated String

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

type String

The type of DR Plan to be created.

** 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

compartmentId string

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

definedTags {[key: string]: any}

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

drProtectionGroupId string

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

lifeCycleDetails string

A message describing the DR Plan's current state in more detail.

peerDrProtectionGroupId string

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peerRegion string

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

planGroups DrPlanPlanGroupArgs[]

The list of groups in this DR Plan.

state string

The current state of the DR Plan.

systemTags {[key: string]: any}

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

timeUpdated string

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

type string

The type of DR Plan to be created.

** 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

compartment_id str

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

defined_tags Mapping[str, Any]

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

dr_protection_group_id str

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

life_cycle_details str

A message describing the DR Plan's current state in more detail.

peer_dr_protection_group_id str

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peer_region str

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

plan_groups DrPlanPlanGroupArgs]

The list of groups in this DR Plan.

state str

The current state of the DR Plan.

system_tags Mapping[str, Any]

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

time_updated str

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

type str

The type of DR Plan to be created.

** 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

compartmentId String

The OCID of the compartment containing the DR Plan. Example: ocid1.compartment.oc1..exampleocid1

definedTags Map<Any>

(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 DR Plan being created. Example: EBS Switchover PHX to IAD

drProtectionGroupId String

The OCID of the DR Protection Group to which this DR Plan belongs. Example: ocid1.drprotectiongroup.oc1.iad.exampleocid2

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

lifeCycleDetails String

A message describing the DR Plan's current state in more detail.

peerDrProtectionGroupId String

The OCID of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid1

peerRegion String

The region of the peer (remote) DR Protection Group associated with this plan's DR Protection Group. Example: us-phoenix-1

planGroups List<Property Map>

The list of groups in this DR Plan.

state String

The current state of the DR Plan.

systemTags Map<Any>

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 DR Plan was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

timeUpdated String

The date and time the DR Plan was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

type String

The type of DR Plan to be created.

** 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

Supporting Types

DrPlanPlanGroup

DisplayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

Id string

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

Steps List<DrPlanPlanGroupStep>

The list of steps in this plan group.

Type string

The type of DR Plan to be created.

** 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

DisplayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

Id string

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

Steps []DrPlanPlanGroupStep

The list of steps in this plan group.

Type string

The type of DR Plan to be created.

** 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

displayName String

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

id String

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

steps List<DrPlanPlanGroupStep>

The list of steps in this plan group.

type String

The type of DR Plan to be created.

** 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

displayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

id string

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

steps DrPlanPlanGroupStep[]

The list of steps in this plan group.

type string

The type of DR Plan to be created.

** 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

display_name str

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

id str

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

steps DrPlanPlanGroupStep]

The list of steps in this plan group.

type str

The type of DR Plan to be created.

** 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

displayName String

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

id String

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

steps List<Property Map>

The list of steps in this plan group.

type String

The type of DR Plan to be created.

** 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

DrPlanPlanGroupStep

DisplayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

ErrorMode string

The error mode for this step.

GroupId string

The unique id of the group to which this step belongs. Must not be modified by user. Example: sgid1.group..examplegroupsgid

Id string

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

IsEnabled bool

A flag indicating whether this step should be enabled for execution. Example: true

MemberId string

The OCID of the member associated with this step. Example: ocid1.database.oc1.phx.exampleocid1

Timeout int

The timeout in seconds for executing this step. Example: 600

Type string

The type of DR Plan to be created.

** 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

UserDefinedSteps List<DrPlanPlanGroupStepUserDefinedStep>

The details for a user-defined step in a DR Plan.

DisplayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

ErrorMode string

The error mode for this step.

GroupId string

The unique id of the group to which this step belongs. Must not be modified by user. Example: sgid1.group..examplegroupsgid

Id string

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

IsEnabled bool

A flag indicating whether this step should be enabled for execution. Example: true

MemberId string

The OCID of the member associated with this step. Example: ocid1.database.oc1.phx.exampleocid1

Timeout int

The timeout in seconds for executing this step. Example: 600

Type string

The type of DR Plan to be created.

** 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

UserDefinedSteps []DrPlanPlanGroupStepUserDefinedStep

The details for a user-defined step in a DR Plan.

displayName String

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

errorMode String

The error mode for this step.

groupId String

The unique id of the group to which this step belongs. Must not be modified by user. Example: sgid1.group..examplegroupsgid

id String

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

isEnabled Boolean

A flag indicating whether this step should be enabled for execution. Example: true

memberId String

The OCID of the member associated with this step. Example: ocid1.database.oc1.phx.exampleocid1

timeout Integer

The timeout in seconds for executing this step. Example: 600

type String

The type of DR Plan to be created.

** 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

userDefinedSteps List<DrPlanPlanGroupStepUserDefinedStep>

The details for a user-defined step in a DR Plan.

displayName string

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

errorMode string

The error mode for this step.

groupId string

The unique id of the group to which this step belongs. Must not be modified by user. Example: sgid1.group..examplegroupsgid

id string

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

isEnabled boolean

A flag indicating whether this step should be enabled for execution. Example: true

memberId string

The OCID of the member associated with this step. Example: ocid1.database.oc1.phx.exampleocid1

timeout number

The timeout in seconds for executing this step. Example: 600

type string

The type of DR Plan to be created.

** 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

userDefinedSteps DrPlanPlanGroupStepUserDefinedStep[]

The details for a user-defined step in a DR Plan.

display_name str

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

error_mode str

The error mode for this step.

group_id str

The unique id of the group to which this step belongs. Must not be modified by user. Example: sgid1.group..examplegroupsgid

id str

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

is_enabled bool

A flag indicating whether this step should be enabled for execution. Example: true

member_id str

The OCID of the member associated with this step. Example: ocid1.database.oc1.phx.exampleocid1

timeout int

The timeout in seconds for executing this step. Example: 600

type str

The type of DR Plan to be created.

** 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

user_defined_steps DrPlanPlanGroupStepUserDefinedStep]

The details for a user-defined step in a DR Plan.

displayName String

(Updatable) The display name of the DR Plan being created. Example: EBS Switchover PHX to IAD

errorMode String

The error mode for this step.

groupId String

The unique id of the group to which this step belongs. Must not be modified by user. Example: sgid1.group..examplegroupsgid

id String

The unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

isEnabled Boolean

A flag indicating whether this step should be enabled for execution. Example: true

memberId String

The OCID of the member associated with this step. Example: ocid1.database.oc1.phx.exampleocid1

timeout Number

The timeout in seconds for executing this step. Example: 600

type String

The type of DR Plan to be created.

** 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

userDefinedSteps List<Property Map>

The details for a user-defined step in a DR Plan.

DrPlanPlanGroupStepUserDefinedStep

FunctionId string

The OCID of function to be invoked. Example: ocid1.fnfunc.oc1.iad.exampleocid2

FunctionRegion string

The region in which the function is deployed. Example: us-ashburn-1

ObjectStorageScriptLocations List<DrPlanPlanGroupStepUserDefinedStepObjectStorageScriptLocation>

Information about an Object Storage script location for a user-defined step in a DR Plan.

RequestBody string

The request body for the function. Example: { "FnParam1", "FnParam2" }

RunAsUser string

The userid on the instance to be used for executing the script or command. Example: opc

RunOnInstanceId string

The OCID of the instance where this script or command should be executed. Example: ocid1.instance.oc1.phx.exampleocid1

RunOnInstanceRegion string

The region of the instance where this script or command should be executed. Example: us-phoenix-1

ScriptCommand string

The script name and arguments. Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

StepType string

The type of the step.

FunctionId string

The OCID of function to be invoked. Example: ocid1.fnfunc.oc1.iad.exampleocid2

FunctionRegion string

The region in which the function is deployed. Example: us-ashburn-1

ObjectStorageScriptLocations []DrPlanPlanGroupStepUserDefinedStepObjectStorageScriptLocation

Information about an Object Storage script location for a user-defined step in a DR Plan.

RequestBody string

The request body for the function. Example: { "FnParam1", "FnParam2" }

RunAsUser string

The userid on the instance to be used for executing the script or command. Example: opc

RunOnInstanceId string

The OCID of the instance where this script or command should be executed. Example: ocid1.instance.oc1.phx.exampleocid1

RunOnInstanceRegion string

The region of the instance where this script or command should be executed. Example: us-phoenix-1

ScriptCommand string

The script name and arguments. Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

StepType string

The type of the step.

functionId String

The OCID of function to be invoked. Example: ocid1.fnfunc.oc1.iad.exampleocid2

functionRegion String

The region in which the function is deployed. Example: us-ashburn-1

objectStorageScriptLocations List<DrPlanPlanGroupStepUserDefinedStepObjectStorageScriptLocation>

Information about an Object Storage script location for a user-defined step in a DR Plan.

requestBody String

The request body for the function. Example: { "FnParam1", "FnParam2" }

runAsUser String

The userid on the instance to be used for executing the script or command. Example: opc

runOnInstanceId String

The OCID of the instance where this script or command should be executed. Example: ocid1.instance.oc1.phx.exampleocid1

runOnInstanceRegion String

The region of the instance where this script or command should be executed. Example: us-phoenix-1

scriptCommand String

The script name and arguments. Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

stepType String

The type of the step.

functionId string

The OCID of function to be invoked. Example: ocid1.fnfunc.oc1.iad.exampleocid2

functionRegion string

The region in which the function is deployed. Example: us-ashburn-1

objectStorageScriptLocations DrPlanPlanGroupStepUserDefinedStepObjectStorageScriptLocation[]

Information about an Object Storage script location for a user-defined step in a DR Plan.

requestBody string

The request body for the function. Example: { "FnParam1", "FnParam2" }

runAsUser string

The userid on the instance to be used for executing the script or command. Example: opc

runOnInstanceId string

The OCID of the instance where this script or command should be executed. Example: ocid1.instance.oc1.phx.exampleocid1

runOnInstanceRegion string

The region of the instance where this script or command should be executed. Example: us-phoenix-1

scriptCommand string

The script name and arguments. Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

stepType string

The type of the step.

function_id str

The OCID of function to be invoked. Example: ocid1.fnfunc.oc1.iad.exampleocid2

function_region str

The region in which the function is deployed. Example: us-ashburn-1

object_storage_script_locations DrPlanPlanGroupStepUserDefinedStepObjectStorageScriptLocation]

Information about an Object Storage script location for a user-defined step in a DR Plan.

request_body str

The request body for the function. Example: { "FnParam1", "FnParam2" }

run_as_user str

The userid on the instance to be used for executing the script or command. Example: opc

run_on_instance_id str

The OCID of the instance where this script or command should be executed. Example: ocid1.instance.oc1.phx.exampleocid1

run_on_instance_region str

The region of the instance where this script or command should be executed. Example: us-phoenix-1

script_command str

The script name and arguments. Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

step_type str

The type of the step.

functionId String

The OCID of function to be invoked. Example: ocid1.fnfunc.oc1.iad.exampleocid2

functionRegion String

The region in which the function is deployed. Example: us-ashburn-1

objectStorageScriptLocations List<Property Map>

Information about an Object Storage script location for a user-defined step in a DR Plan.

requestBody String

The request body for the function. Example: { "FnParam1", "FnParam2" }

runAsUser String

The userid on the instance to be used for executing the script or command. Example: opc

runOnInstanceId String

The OCID of the instance where this script or command should be executed. Example: ocid1.instance.oc1.phx.exampleocid1

runOnInstanceRegion String

The region of the instance where this script or command should be executed. Example: us-phoenix-1

scriptCommand String

The script name and arguments. Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

stepType String

The type of the step.

DrPlanPlanGroupStepUserDefinedStepObjectStorageScriptLocation

Bucket string

The bucket name inside the Object Storage namespace. Example: custom_dr_scripts

Namespace string

The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

Object string

The object name inside the Object Storage bucket. Example: validate_app_start.sh

Bucket string

The bucket name inside the Object Storage namespace. Example: custom_dr_scripts

Namespace string

The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

Object string

The object name inside the Object Storage bucket. Example: validate_app_start.sh

bucket String

The bucket name inside the Object Storage namespace. Example: custom_dr_scripts

namespace String

The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

object String

The object name inside the Object Storage bucket. Example: validate_app_start.sh

bucket string

The bucket name inside the Object Storage namespace. Example: custom_dr_scripts

namespace string

The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

object string

The object name inside the Object Storage bucket. Example: validate_app_start.sh

bucket str

The bucket name inside the Object Storage namespace. Example: custom_dr_scripts

namespace str

The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

object str

The object name inside the Object Storage bucket. Example: validate_app_start.sh

bucket String

The bucket name inside the Object Storage namespace. Example: custom_dr_scripts

namespace String

The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

object String

The object name inside the Object Storage bucket. Example: validate_app_start.sh

Import

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

 $ pulumi import oci:DisasterRecovery/drPlan:DrPlan test_dr_plan "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.