Show / Hide Table of Contents

Class DrPlan

The details of a DR plan.

Inheritance
object
DrPlan
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DisasterrecoveryService.Models
Assembly: OCI.DotNetSDK.Disasterrecovery.dll
Syntax
public class DrPlan

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment containing the DR plan.
Example: ocid1.compartment.oc1..uniqueID

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

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

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

The display name of the DR plan.
Example: EBS Switchover PHX to IAD

Remarks

Required

DrProtectionGroupId

Declaration
[Required(ErrorMessage = "DrProtectionGroupId is required.")]
[JsonProperty(PropertyName = "drProtectionGroupId")]
public string DrProtectionGroupId { get; set; }
Property Value
Type Description
string

The OCID of the DR protection group to which this DR plan belongs.
Example: ocid1.drplan.oc1..uniqueID

Remarks

Required

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
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

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The OCID of the DR plan.
Example: ocid1.drplan.oc1..uniqueID

Remarks

Required

LifeCycleDetails

Declaration
[JsonProperty(PropertyName = "lifeCycleDetails")]
public string LifeCycleDetails { get; set; }
Property Value
Type Description
string

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

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DrPlanLifecycleState? LifecycleState { get; set; }
Property Value
Type Description
DrPlanLifecycleState?

The current state of the DR plan.

Remarks

Required

LifecycleSubState

Declaration
[JsonProperty(PropertyName = "lifecycleSubState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DrPlanLifecycleSubState? LifecycleSubState { get; set; }
Property Value
Type Description
DrPlanLifecycleSubState?

The current state of the DR plan.

PeerDrProtectionGroupId

Declaration
[Required(ErrorMessage = "PeerDrProtectionGroupId is required.")]
[JsonProperty(PropertyName = "peerDrProtectionGroupId")]
public string PeerDrProtectionGroupId { get; set; }
Property Value
Type Description
string

The OCID of the peer DR protection group associated with this plan's DR protection group.
Example: ocid1.drprotectiongroup.oc1..uniqueID

Remarks

Required

PeerRegion

Declaration
[Required(ErrorMessage = "PeerRegion is required.")]
[JsonProperty(PropertyName = "peerRegion")]
public string PeerRegion { get; set; }
Property Value
Type Description
string

The region of the peer DR protection group associated with this plan's DR protection group.
Example: us-ashburn-1

Remarks

Required

PlanGroups

Declaration
[Required(ErrorMessage = "PlanGroups is required.")]
[JsonProperty(PropertyName = "planGroups")]
public List<DrPlanGroup> PlanGroups { get; set; }
Property Value
Type Description
List<DrPlanGroup>

The list of groups in this DR plan.

Remarks

Required

SourcePlanId

Declaration
[JsonProperty(PropertyName = "sourcePlanId")]
public string SourcePlanId { get; set; }
Property Value
Type Description
string

If this is a cloned DR plan, the OCID of the source DR plan that was used to clone this DR plan. If this DR plan was not cloned, then the value for this will be null.
Example: ocid1.drplan.oc1..uniqueID

SystemTags

Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Usage of system tag keys. These predefined keys are scoped to namespaces.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

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

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

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

Remarks

Required

Type

Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DrPlanType? Type { get; set; }
Property Value
Type Description
DrPlanType?

The type of the DR plan.

Remarks

Required

In this article
Back to top