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

oci.DisasterRecovery.getDrPlans

Explore with Pulumi AI

This data source provides the list of Dr Plans in Oracle Cloud Infrastructure Disaster Recovery service.

Gets a summary list of all DR Plans for a DR Protection Group.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testDrPlans = Oci.DisasterRecovery.GetDrPlans.Invoke(new()
    {
        DrProtectionGroupId = oci_disaster_recovery_dr_protection_group.Test_dr_protection_group.Id,
        DisplayName = @var.Dr_plan_display_name,
        DrPlanId = oci_disaster_recovery_dr_plan.Test_dr_plan.Id,
        DrPlanType = @var.Dr_plan_dr_plan_type,
        State = @var.Dr_plan_state,
    });

});
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.GetDrPlans(ctx, &disasterrecovery.GetDrPlansArgs{
			DrProtectionGroupId: oci_disaster_recovery_dr_protection_group.Test_dr_protection_group.Id,
			DisplayName:         pulumi.StringRef(_var.Dr_plan_display_name),
			DrPlanId:            pulumi.StringRef(oci_disaster_recovery_dr_plan.Test_dr_plan.Id),
			DrPlanType:          pulumi.StringRef(_var.Dr_plan_dr_plan_type),
			State:               pulumi.StringRef(_var.Dr_plan_state),
		}, nil)
		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.DisasterRecoveryFunctions;
import com.pulumi.oci.DisasterRecovery.inputs.GetDrPlansArgs;
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 testDrPlans = DisasterRecoveryFunctions.getDrPlans(GetDrPlansArgs.builder()
            .drProtectionGroupId(oci_disaster_recovery_dr_protection_group.test_dr_protection_group().id())
            .displayName(var_.dr_plan_display_name())
            .drPlanId(oci_disaster_recovery_dr_plan.test_dr_plan().id())
            .drPlanType(var_.dr_plan_dr_plan_type())
            .state(var_.dr_plan_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_dr_plans = oci.DisasterRecovery.get_dr_plans(dr_protection_group_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    dr_plan_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    dr_plan_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    state=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrPlans = oci.DisasterRecovery.getDrPlans({
    drProtectionGroupId: oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id,
    displayName: _var.dr_plan_display_name,
    drPlanId: oci_disaster_recovery_dr_plan.test_dr_plan.id,
    drPlanType: _var.dr_plan_dr_plan_type,
    state: _var.dr_plan_state,
});
variables:
  testDrPlans:
    fn::invoke:
      Function: oci:DisasterRecovery:getDrPlans
      Arguments:
        drProtectionGroupId: ${oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id}
        displayName: ${var.dr_plan_display_name}
        drPlanId: ${oci_disaster_recovery_dr_plan.test_dr_plan.id}
        drPlanType: ${var.dr_plan_dr_plan_type}
        state: ${var.dr_plan_state}

Using getDrPlans

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 getDrPlans(args: GetDrPlansArgs, opts?: InvokeOptions): Promise<GetDrPlansResult>
function getDrPlansOutput(args: GetDrPlansOutputArgs, opts?: InvokeOptions): Output<GetDrPlansResult>
def get_dr_plans(display_name: Optional[str] = None,
                 dr_plan_id: Optional[str] = None,
                 dr_plan_type: Optional[str] = None,
                 dr_protection_group_id: Optional[str] = None,
                 filters: Optional[Sequence[_disasterrecovery.GetDrPlansFilter]] = None,
                 state: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetDrPlansResult
def get_dr_plans_output(display_name: Optional[pulumi.Input[str]] = None,
                 dr_plan_id: Optional[pulumi.Input[str]] = None,
                 dr_plan_type: Optional[pulumi.Input[str]] = None,
                 dr_protection_group_id: Optional[pulumi.Input[str]] = None,
                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_disasterrecovery.GetDrPlansFilterArgs]]]] = None,
                 state: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetDrPlansResult]
func GetDrPlans(ctx *Context, args *GetDrPlansArgs, opts ...InvokeOption) (*GetDrPlansResult, error)
func GetDrPlansOutput(ctx *Context, args *GetDrPlansOutputArgs, opts ...InvokeOption) GetDrPlansResultOutput

> Note: This function is named GetDrPlans in the Go SDK.

public static class GetDrPlans 
{
    public static Task<GetDrPlansResult> InvokeAsync(GetDrPlansArgs args, InvokeOptions? opts = null)
    public static Output<GetDrPlansResult> Invoke(GetDrPlansInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDrPlansResult> getDrPlans(GetDrPlansArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:DisasterRecovery/getDrPlans:getDrPlans
  arguments:
    # arguments dictionary

The following arguments are supported:

DrProtectionGroupId string

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

DrPlanId string

The OCID of the DR Plan. Example: ocid1.drplan.oc1.iad.exampleocid

DrPlanType string

The DR Plan type.

Filters List<GetDrPlansFilter>
State string

A filter to return only DR Plans that match the given lifecycleState.

DrProtectionGroupId string

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

DrPlanId string

The OCID of the DR Plan. Example: ocid1.drplan.oc1.iad.exampleocid

DrPlanType string

The DR Plan type.

Filters []GetDrPlansFilter
State string

A filter to return only DR Plans that match the given lifecycleState.

drProtectionGroupId String

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

drPlanId String

The OCID of the DR Plan. Example: ocid1.drplan.oc1.iad.exampleocid

drPlanType String

The DR Plan type.

filters List<GetDrPlansFilter>
state String

A filter to return only DR Plans that match the given lifecycleState.

drProtectionGroupId string

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

displayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

drPlanId string

The OCID of the DR Plan. Example: ocid1.drplan.oc1.iad.exampleocid

drPlanType string

The DR Plan type.

filters GetDrPlansFilter[]
state string

A filter to return only DR Plans that match the given lifecycleState.

dr_protection_group_id str

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

display_name str

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

dr_plan_id str

The OCID of the DR Plan. Example: ocid1.drplan.oc1.iad.exampleocid

dr_plan_type str

The DR Plan type.

filters GetDrPlansFilter]
state str

A filter to return only DR Plans that match the given lifecycleState.

drProtectionGroupId String

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

drPlanId String

The OCID of the DR Plan. Example: ocid1.drplan.oc1.iad.exampleocid

drPlanType String

The DR Plan type.

filters List<Property Map>
state String

A filter to return only DR Plans that match the given lifecycleState.

getDrPlans Result

The following output properties are available:

DrPlanCollections List<GetDrPlansDrPlanCollection>

The list of dr_plan_collection.

DrProtectionGroupId string

The OCID of the DR Protection Group with which this DR Plan is associated. Example: ocid1.drplan.oc1.iad.exampleocid2

Id string

The provider-assigned unique ID for this managed resource.

DisplayName string

The display name of this DR Plan Group. Example: DATABASE_SWITCHOVER

DrPlanId string
DrPlanType string
Filters List<GetDrPlansFilter>
State string

The current state of the DR Plan.

DrPlanCollections []GetDrPlansDrPlanCollection

The list of dr_plan_collection.

DrProtectionGroupId string

The OCID of the DR Protection Group with which this DR Plan is associated. Example: ocid1.drplan.oc1.iad.exampleocid2

Id string

The provider-assigned unique ID for this managed resource.

DisplayName string

The display name of this DR Plan Group. Example: DATABASE_SWITCHOVER

DrPlanId string
DrPlanType string
Filters []GetDrPlansFilter
State string

The current state of the DR Plan.

drPlanCollections List<GetDrPlansDrPlanCollection>

The list of dr_plan_collection.

drProtectionGroupId String

The OCID of the DR Protection Group with which this DR Plan is associated. Example: ocid1.drplan.oc1.iad.exampleocid2

id String

The provider-assigned unique ID for this managed resource.

displayName String

The display name of this DR Plan Group. Example: DATABASE_SWITCHOVER

drPlanId String
drPlanType String
filters List<GetDrPlansFilter>
state String

The current state of the DR Plan.

drPlanCollections GetDrPlansDrPlanCollection[]

The list of dr_plan_collection.

drProtectionGroupId string

The OCID of the DR Protection Group with which this DR Plan is associated. Example: ocid1.drplan.oc1.iad.exampleocid2

id string

The provider-assigned unique ID for this managed resource.

displayName string

The display name of this DR Plan Group. Example: DATABASE_SWITCHOVER

drPlanId string
drPlanType string
filters GetDrPlansFilter[]
state string

The current state of the DR Plan.

dr_plan_collections GetDrPlansDrPlanCollection]

The list of dr_plan_collection.

dr_protection_group_id str

The OCID of the DR Protection Group with which this DR Plan is associated. Example: ocid1.drplan.oc1.iad.exampleocid2

id str

The provider-assigned unique ID for this managed resource.

display_name str

The display name of this DR Plan Group. Example: DATABASE_SWITCHOVER

dr_plan_id str
dr_plan_type str
filters GetDrPlansFilter]
state str

The current state of the DR Plan.

drPlanCollections List<Property Map>

The list of dr_plan_collection.

drProtectionGroupId String

The OCID of the DR Protection Group with which this DR Plan is associated. Example: ocid1.drplan.oc1.iad.exampleocid2

id String

The provider-assigned unique ID for this managed resource.

displayName String

The display name of this DR Plan Group. Example: DATABASE_SWITCHOVER

drPlanId String
drPlanType String
filters List<Property Map>
state String

The current state of the DR Plan.

Supporting Types

GetDrPlansDrPlanCollection

GetDrPlansDrPlanCollectionItem

CompartmentId string

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

DefinedTags Dictionary<string, object>

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

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

DrProtectionGroupId string

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

FreeformTags Dictionary<string, object>

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 unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

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

The list of groups in this DR Plan.

State string

A filter to return only DR Plans that match the given lifecycleState.

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 this DR Plan.

CompartmentId string

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

DefinedTags map[string]interface{}

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

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

DrProtectionGroupId string

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

FreeformTags map[string]interface{}

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 unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

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 []GetDrPlansDrPlanCollectionItemPlanGroup

The list of groups in this DR Plan.

State string

A filter to return only DR Plans that match the given lifecycleState.

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 this DR Plan.

compartmentId String

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

definedTags Map<String,Object>

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

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

drProtectionGroupId String

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

freeformTags Map<String,Object>

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 unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

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

The list of groups in this DR Plan.

state String

A filter to return only DR Plans that match the given lifecycleState.

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 this DR Plan.

compartmentId string

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

definedTags {[key: string]: any}

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

displayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

drProtectionGroupId string

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

freeformTags {[key: string]: any}

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 unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

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 GetDrPlansDrPlanCollectionItemPlanGroup[]

The list of groups in this DR Plan.

state string

A filter to return only DR Plans that match the given lifecycleState.

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 this DR Plan.

compartment_id str

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

defined_tags Mapping[str, Any]

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

display_name str

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

dr_protection_group_id str

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

freeform_tags Mapping[str, Any]

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 unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

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 GetDrPlansDrPlanCollectionItemPlanGroup]

The list of groups in this DR Plan.

state str

A filter to return only DR Plans that match the given lifecycleState.

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 this DR Plan.

compartmentId String

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

definedTags Map<Any>

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

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

drProtectionGroupId String

The OCID of the DR Protection Group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1.phx.exampleocid

freeformTags Map<Any>

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 unique id of this step. Must not be modified by the user. Example: sgid1.step..examplestepsgid

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

A filter to return only DR Plans that match the given lifecycleState.

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 this DR Plan.

GetDrPlansDrPlanCollectionItemPlanGroup

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

Id string

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

Steps List<GetDrPlansDrPlanCollectionItemPlanGroupStep>

The list of steps in this plan group.

Type string

The type of this DR Plan.

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

Id string

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

Steps []GetDrPlansDrPlanCollectionItemPlanGroupStep

The list of steps in this plan group.

Type string

The type of this DR Plan.

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

id String

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

steps List<GetDrPlansDrPlanCollectionItemPlanGroupStep>

The list of steps in this plan group.

type String

The type of this DR Plan.

displayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

id string

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

steps GetDrPlansDrPlanCollectionItemPlanGroupStep[]

The list of steps in this plan group.

type string

The type of this DR Plan.

display_name str

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

id str

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

steps GetDrPlansDrPlanCollectionItemPlanGroupStep]

The list of steps in this plan group.

type str

The type of this DR Plan.

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

GetDrPlansDrPlanCollectionItemPlanGroupStep

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

UserDefinedSteps List<GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStep>

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

DisplayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

UserDefinedSteps []GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStep

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

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

userDefinedSteps List<GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStep>

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

displayName string

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

userDefinedSteps GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStep[]

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

display_name str

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

user_defined_steps GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStep]

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

displayName String

A filter to return only resources that match the entire display name given. Example: MY UNIQUE DISPLAY NAME

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 this DR Plan.

userDefinedSteps List<Property Map>

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

GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStep

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

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 []GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStepObjectStorageScriptLocation

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

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 GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStepObjectStorageScriptLocation[]

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 GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStepObjectStorageScriptLocation]

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.

GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStepObjectStorageScriptLocation

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

GetDrPlansFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

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

This Pulumi package is based on the oci Terraform Provider.