Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DisasterRecovery.getDrPlans
Explore with Pulumi AI
This data source provides the list of Dr Plans in Oracle Cloud Infrastructure Disaster Recovery service.
Get a summary list of all DR plans for a DR protection group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrPlans = oci.DisasterRecovery.getDrPlans({
    drProtectionGroupId: testDrProtectionGroup.id,
    displayName: drPlanDisplayName,
    drPlanId: testDrPlan.id,
    drPlanType: drPlanDrPlanType,
    lifecycleSubState: drPlanLifecycleSubState,
    state: drPlanState,
});
import pulumi
import pulumi_oci as oci
test_dr_plans = oci.DisasterRecovery.get_dr_plans(dr_protection_group_id=test_dr_protection_group["id"],
    display_name=dr_plan_display_name,
    dr_plan_id=test_dr_plan["id"],
    dr_plan_type=dr_plan_dr_plan_type,
    lifecycle_sub_state=dr_plan_lifecycle_sub_state,
    state=dr_plan_state)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testDrProtectionGroup.Id,
			DisplayName:         pulumi.StringRef(drPlanDisplayName),
			DrPlanId:            pulumi.StringRef(testDrPlan.Id),
			DrPlanType:          pulumi.StringRef(drPlanDrPlanType),
			LifecycleSubState:   pulumi.StringRef(drPlanLifecycleSubState),
			State:               pulumi.StringRef(drPlanState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testDrPlans = Oci.DisasterRecovery.GetDrPlans.Invoke(new()
    {
        DrProtectionGroupId = testDrProtectionGroup.Id,
        DisplayName = drPlanDisplayName,
        DrPlanId = testDrPlan.Id,
        DrPlanType = drPlanDrPlanType,
        LifecycleSubState = drPlanLifecycleSubState,
        State = drPlanState,
    });
});
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(testDrProtectionGroup.id())
            .displayName(drPlanDisplayName)
            .drPlanId(testDrPlan.id())
            .drPlanType(drPlanDrPlanType)
            .lifecycleSubState(drPlanLifecycleSubState)
            .state(drPlanState)
            .build());
    }
}
variables:
  testDrPlans:
    fn::invoke:
      function: oci:DisasterRecovery:getDrPlans
      arguments:
        drProtectionGroupId: ${testDrProtectionGroup.id}
        displayName: ${drPlanDisplayName}
        drPlanId: ${testDrPlan.id}
        drPlanType: ${drPlanDrPlanType}
        lifecycleSubState: ${drPlanLifecycleSubState}
        state: ${drPlanState}
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[GetDrPlansFilter]] = None,
                 lifecycle_sub_state: Optional[str] = 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[GetDrPlansFilterArgs]]]] = None,
                 lifecycle_sub_state: Optional[pulumi.Input[str]] = 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)
public static Output<GetDrPlansResult> getDrPlans(GetDrPlansArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DisasterRecovery/getDrPlans:getDrPlans
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DrProtection stringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- DisplayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- DrPlan stringId 
- The OCID of the DR plan. Example: ocid1.drplan.oc1..uniqueID
- DrPlan stringType 
- The DR plan type.
- Filters
List<GetDr Plans Filter> 
- LifecycleSub stringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- State string
- A filter to return only DR plans that match the given lifecycle state.
- DrProtection stringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- DisplayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- DrPlan stringId 
- The OCID of the DR plan. Example: ocid1.drplan.oc1..uniqueID
- DrPlan stringType 
- The DR plan type.
- Filters
[]GetDr Plans Filter 
- LifecycleSub stringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- State string
- A filter to return only DR plans that match the given lifecycle state.
- drProtection StringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- displayName String
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- drPlan StringId 
- The OCID of the DR plan. Example: ocid1.drplan.oc1..uniqueID
- drPlan StringType 
- The DR plan type.
- filters
List<GetDr Plans Filter> 
- lifecycleSub StringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- state String
- A filter to return only DR plans that match the given lifecycle state.
- drProtection stringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- displayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- drPlan stringId 
- The OCID of the DR plan. Example: ocid1.drplan.oc1..uniqueID
- drPlan stringType 
- The DR plan type.
- filters
GetDr Plans Filter[] 
- lifecycleSub stringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- state string
- A filter to return only DR plans that match the given lifecycle state.
- dr_protection_ strgroup_ id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- display_name str
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- dr_plan_ strid 
- The OCID of the DR plan. Example: ocid1.drplan.oc1..uniqueID
- dr_plan_ strtype 
- The DR plan type.
- filters
Sequence[GetDr Plans Filter] 
- lifecycle_sub_ strstate 
- A filter to return only DR plans that match the given lifecycle sub-state.
- state str
- A filter to return only DR plans that match the given lifecycle state.
- drProtection StringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- displayName String
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- drPlan StringId 
- The OCID of the DR plan. Example: ocid1.drplan.oc1..uniqueID
- drPlan StringType 
- The DR plan type.
- filters List<Property Map>
- lifecycleSub StringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- state String
- A filter to return only DR plans that match the given lifecycle state.
getDrPlans Result
The following output properties are available:
- DrPlan List<GetCollections Dr Plans Dr Plan Collection> 
- The list of dr_plan_collection.
- DrProtection stringGroup Id 
- The OCID of the DR protection group to which this DR plan belongs. Example: ocid1.drplan.oc1..uniqueID
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- The display name of the group. Example: DATABASE_SWITCHOVER
- DrPlan stringId 
- DrPlan stringType 
- Filters
List<GetDr Plans Filter> 
- LifecycleSub stringState 
- The current state of the DR plan.
- State string
- The current state of the DR plan.
- DrPlan []GetCollections Dr Plans Dr Plan Collection 
- The list of dr_plan_collection.
- DrProtection stringGroup Id 
- The OCID of the DR protection group to which this DR plan belongs. Example: ocid1.drplan.oc1..uniqueID
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- The display name of the group. Example: DATABASE_SWITCHOVER
- DrPlan stringId 
- DrPlan stringType 
- Filters
[]GetDr Plans Filter 
- LifecycleSub stringState 
- The current state of the DR plan.
- State string
- The current state of the DR plan.
- drPlan List<GetCollections Dr Plans Dr Plan Collection> 
- The list of dr_plan_collection.
- drProtection StringGroup Id 
- The OCID of the DR protection group to which this DR plan belongs. Example: ocid1.drplan.oc1..uniqueID
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- The display name of the group. Example: DATABASE_SWITCHOVER
- drPlan StringId 
- drPlan StringType 
- filters
List<GetDr Plans Filter> 
- lifecycleSub StringState 
- The current state of the DR plan.
- state String
- The current state of the DR plan.
- drPlan GetCollections Dr Plans Dr Plan Collection[] 
- The list of dr_plan_collection.
- drProtection stringGroup Id 
- The OCID of the DR protection group to which this DR plan belongs. Example: ocid1.drplan.oc1..uniqueID
- id string
- The provider-assigned unique ID for this managed resource.
- displayName string
- The display name of the group. Example: DATABASE_SWITCHOVER
- drPlan stringId 
- drPlan stringType 
- filters
GetDr Plans Filter[] 
- lifecycleSub stringState 
- The current state of the DR plan.
- state string
- The current state of the DR plan.
- dr_plan_ Sequence[Getcollections Dr Plans Dr Plan Collection] 
- The list of dr_plan_collection.
- dr_protection_ strgroup_ id 
- The OCID of the DR protection group to which this DR plan belongs. Example: ocid1.drplan.oc1..uniqueID
- id str
- The provider-assigned unique ID for this managed resource.
- display_name str
- The display name of the group. Example: DATABASE_SWITCHOVER
- dr_plan_ strid 
- dr_plan_ strtype 
- filters
Sequence[GetDr Plans Filter] 
- lifecycle_sub_ strstate 
- The current state of the DR plan.
- state str
- The current state of the DR plan.
- drPlan List<Property Map>Collections 
- The list of dr_plan_collection.
- drProtection StringGroup Id 
- The OCID of the DR protection group to which this DR plan belongs. Example: ocid1.drplan.oc1..uniqueID
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- The display name of the group. Example: DATABASE_SWITCHOVER
- drPlan StringId 
- drPlan StringType 
- filters List<Property Map>
- lifecycleSub StringState 
- The current state of the DR plan.
- 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..uniqueID
- Dictionary<string, string>
- 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 given display name. Example: MyResourceDisplayName
- DrProtection stringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
- Id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- LifeCycle stringDetails 
- A message describing the DR plan's current state in more detail.
- LifecycleSub stringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- PeerDr stringProtection Group Id 
- The OCID of the peer DR protection group associated with this plan's DR protection group. Example: ocid1.drprotectiongroup.oc1..uniqueID
- PeerRegion string
- The region of the peer DR protection group associated with this plan's DR protection group. Example: us-ashburn-1
- PlanGroups List<GetDr Plans Dr Plan Collection Item Plan Group> 
- The list of groups in this DR plan.
- RefreshTrigger int
- SourcePlan stringId 
- 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
- State string
- A filter to return only DR plans that match the given lifecycle state.
- Dictionary<string, string>
- 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 the DR plan.
- VerifyTrigger int
- CompartmentId string
- The OCID of the compartment containing the DR plan. Example: ocid1.compartment.oc1..uniqueID
- map[string]string
- 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 given display name. Example: MyResourceDisplayName
- DrProtection stringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
- Id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- LifeCycle stringDetails 
- A message describing the DR plan's current state in more detail.
- LifecycleSub stringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- PeerDr stringProtection Group Id 
- The OCID of the peer DR protection group associated with this plan's DR protection group. Example: ocid1.drprotectiongroup.oc1..uniqueID
- PeerRegion string
- The region of the peer DR protection group associated with this plan's DR protection group. Example: us-ashburn-1
- PlanGroups []GetDr Plans Dr Plan Collection Item Plan Group 
- The list of groups in this DR plan.
- RefreshTrigger int
- SourcePlan stringId 
- 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
- State string
- A filter to return only DR plans that match the given lifecycle state.
- map[string]string
- 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 the DR plan.
- VerifyTrigger int
- compartmentId String
- The OCID of the compartment containing the DR plan. Example: ocid1.compartment.oc1..uniqueID
- Map<String,String>
- 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 given display name. Example: MyResourceDisplayName
- drProtection StringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
- id String
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- lifeCycle StringDetails 
- A message describing the DR plan's current state in more detail.
- lifecycleSub StringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- peerDr StringProtection Group Id 
- The OCID of the peer DR protection group associated with this plan's DR protection group. Example: ocid1.drprotectiongroup.oc1..uniqueID
- peerRegion String
- The region of the peer DR protection group associated with this plan's DR protection group. Example: us-ashburn-1
- planGroups List<GetDr Plans Dr Plan Collection Item Plan Group> 
- The list of groups in this DR plan.
- refreshTrigger Integer
- sourcePlan StringId 
- 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
- state String
- A filter to return only DR plans that match the given lifecycle state.
- Map<String,String>
- 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 the DR plan.
- verifyTrigger Integer
- compartmentId string
- The OCID of the compartment containing the DR plan. Example: ocid1.compartment.oc1..uniqueID
- {[key: string]: string}
- 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 given display name. Example: MyResourceDisplayName
- drProtection stringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
- id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- lifeCycle stringDetails 
- A message describing the DR plan's current state in more detail.
- lifecycleSub stringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- peerDr stringProtection Group Id 
- The OCID of the peer DR protection group associated with this plan's DR protection group. Example: ocid1.drprotectiongroup.oc1..uniqueID
- peerRegion string
- The region of the peer DR protection group associated with this plan's DR protection group. Example: us-ashburn-1
- planGroups GetDr Plans Dr Plan Collection Item Plan Group[] 
- The list of groups in this DR plan.
- refreshTrigger number
- sourcePlan stringId 
- 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
- state string
- A filter to return only DR plans that match the given lifecycle state.
- {[key: string]: string}
- 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 the DR plan.
- verifyTrigger number
- compartment_id str
- The OCID of the compartment containing the DR plan. Example: ocid1.compartment.oc1..uniqueID
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}
- display_name str
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- dr_protection_ strgroup_ id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
- id str
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- life_cycle_ strdetails 
- A message describing the DR plan's current state in more detail.
- lifecycle_sub_ strstate 
- A filter to return only DR plans that match the given lifecycle sub-state.
- peer_dr_ strprotection_ group_ id 
- The OCID of the peer DR protection group associated with this plan's DR protection group. Example: ocid1.drprotectiongroup.oc1..uniqueID
- peer_region str
- The region of the peer DR protection group associated with this plan's DR protection group. Example: us-ashburn-1
- plan_groups Sequence[GetDr Plans Dr Plan Collection Item Plan Group] 
- The list of groups in this DR plan.
- refresh_trigger int
- source_plan_ strid 
- 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
- state str
- A filter to return only DR plans that match the given lifecycle state.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The date and time the 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 the DR plan.
- verify_trigger int
- compartmentId String
- The OCID of the compartment containing the DR plan. Example: ocid1.compartment.oc1..uniqueID
- Map<String>
- 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 given display name. Example: MyResourceDisplayName
- drProtection StringGroup Id 
- The OCID of the DR protection group. Mandatory query param. Example: ocid1.drprotectiongroup.oc1..uniqueID
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
- id String
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- lifeCycle StringDetails 
- A message describing the DR plan's current state in more detail.
- lifecycleSub StringState 
- A filter to return only DR plans that match the given lifecycle sub-state.
- peerDr StringProtection Group Id 
- The OCID of the peer DR protection group associated with this plan's DR protection group. Example: ocid1.drprotectiongroup.oc1..uniqueID
- peerRegion String
- The region of the peer DR protection group associated with this plan's DR protection group. Example: us-ashburn-1
- planGroups List<Property Map>
- The list of groups in this DR plan.
- refreshTrigger Number
- sourcePlan StringId 
- 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
- state String
- A filter to return only DR plans that match the given lifecycle state.
- Map<String>
- 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 the DR plan.
- verifyTrigger Number
GetDrPlansDrPlanCollectionItemPlanGroup        
- DisplayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- Id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- IsPause boolEnabled 
- A flag indicating whether this group should be enabled for execution. This flag is only applicable to the USER_DEFINED_PAUSEgroup. The flag should be null for the remaining group types. Example:true
- RefreshStatus string
- The DR plan step refresh status. Example: STEP_ADDED
- Steps
List<GetDr Plans Dr Plan Collection Item Plan Group Step> 
- The list of steps in the group.
- Type string
- The type of the DR plan.
- DisplayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- Id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- IsPause boolEnabled 
- A flag indicating whether this group should be enabled for execution. This flag is only applicable to the USER_DEFINED_PAUSEgroup. The flag should be null for the remaining group types. Example:true
- RefreshStatus string
- The DR plan step refresh status. Example: STEP_ADDED
- Steps
[]GetDr Plans Dr Plan Collection Item Plan Group Step 
- The list of steps in the group.
- Type string
- The type of the DR plan.
- displayName String
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- id String
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- isPause BooleanEnabled 
- A flag indicating whether this group should be enabled for execution. This flag is only applicable to the USER_DEFINED_PAUSEgroup. The flag should be null for the remaining group types. Example:true
- refreshStatus String
- The DR plan step refresh status. Example: STEP_ADDED
- steps
List<GetDr Plans Dr Plan Collection Item Plan Group Step> 
- The list of steps in the group.
- type String
- The type of the DR plan.
- displayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- isPause booleanEnabled 
- A flag indicating whether this group should be enabled for execution. This flag is only applicable to the USER_DEFINED_PAUSEgroup. The flag should be null for the remaining group types. Example:true
- refreshStatus string
- The DR plan step refresh status. Example: STEP_ADDED
- steps
GetDr Plans Dr Plan Collection Item Plan Group Step[] 
- The list of steps in the group.
- type string
- The type of the DR plan.
- display_name str
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- id str
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- is_pause_ boolenabled 
- A flag indicating whether this group should be enabled for execution. This flag is only applicable to the USER_DEFINED_PAUSEgroup. The flag should be null for the remaining group types. Example:true
- refresh_status str
- The DR plan step refresh status. Example: STEP_ADDED
- steps
Sequence[GetDr Plans Dr Plan Collection Item Plan Group Step] 
- The list of steps in the group.
- type str
- The type of the DR plan.
- displayName String
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- id String
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- isPause BooleanEnabled 
- A flag indicating whether this group should be enabled for execution. This flag is only applicable to the USER_DEFINED_PAUSEgroup. The flag should be null for the remaining group types. Example:true
- refreshStatus String
- The DR plan step refresh status. Example: STEP_ADDED
- steps List<Property Map>
- The list of steps in the group.
- type String
- The type of the DR plan.
GetDrPlansDrPlanCollectionItemPlanGroupStep         
- DisplayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- 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..uniqueID
- Id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- 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..uniqueID
- RefreshStatus string
- The DR plan step refresh status. Example: STEP_ADDED
- Timeout int
- The timeout in seconds for executing this step. Example: 600
- Type string
- The type of the DR plan.
- TypeDisplay stringName 
- The display name of the DR Plan step type. Example: Database Switchover
- UserDefined List<GetSteps Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step> 
- The details for a user-defined step in a DR plan.
- DisplayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- 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..uniqueID
- Id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- 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..uniqueID
- RefreshStatus string
- The DR plan step refresh status. Example: STEP_ADDED
- Timeout int
- The timeout in seconds for executing this step. Example: 600
- Type string
- The type of the DR plan.
- TypeDisplay stringName 
- The display name of the DR Plan step type. Example: Database Switchover
- UserDefined []GetSteps Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step 
- The details for a user-defined step in a DR plan.
- displayName String
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- 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..uniqueID
- id String
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- 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..uniqueID
- refreshStatus String
- The DR plan step refresh status. Example: STEP_ADDED
- timeout Integer
- The timeout in seconds for executing this step. Example: 600
- type String
- The type of the DR plan.
- typeDisplay StringName 
- The display name of the DR Plan step type. Example: Database Switchover
- userDefined List<GetSteps Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step> 
- The details for a user-defined step in a DR plan.
- displayName string
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- 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..uniqueID
- id string
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- 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..uniqueID
- refreshStatus string
- The DR plan step refresh status. Example: STEP_ADDED
- timeout number
- The timeout in seconds for executing this step. Example: 600
- type string
- The type of the DR plan.
- typeDisplay stringName 
- The display name of the DR Plan step type. Example: Database Switchover
- userDefined GetSteps Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step[] 
- The details for a user-defined step in a DR plan.
- display_name str
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- 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..uniqueID
- id str
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- 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..uniqueID
- refresh_status str
- The DR plan step refresh status. Example: STEP_ADDED
- timeout int
- The timeout in seconds for executing this step. Example: 600
- type str
- The type of the DR plan.
- type_display_ strname 
- The display name of the DR Plan step type. Example: Database Switchover
- user_defined_ Sequence[Getsteps Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step] 
- The details for a user-defined step in a DR plan.
- displayName String
- A filter to return only resources that match the given display name. Example: MyResourceDisplayName
- 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..uniqueID
- id String
- The unique id of the step. Must not be modified by the user. Example: sgid1.step..uniqueID
- 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..uniqueID
- refreshStatus String
- The DR plan step refresh status. Example: STEP_ADDED
- timeout Number
- The timeout in seconds for executing this step. Example: 600
- type String
- The type of the DR plan.
- typeDisplay StringName 
- The display name of the DR Plan step type. Example: Database Switchover
- userDefined List<Property Map>Steps 
- 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..uniqueID
- FunctionRegion string
- The region in which the function is deployed. Example: us-ashburn-1
- ObjectStorage List<GetScript Locations Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step Object Storage Script Location> 
- The details of 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" }
- RunAs stringUser 
- The userid on the instance to be used for executing the script or command. Example: opc
- RunOn stringInstance Id 
- The OCID of the instance on which this script or command should be executed.
- RunOn stringInstance Region 
- The region of the instance where this script or command should be executed. Example: us-ashburn-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 user-defined step.
- FunctionId string
- The OCID of function to be invoked. Example: ocid1.fnfunc.oc1..uniqueID
- FunctionRegion string
- The region in which the function is deployed. Example: us-ashburn-1
- ObjectStorage []GetScript Locations Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step Object Storage Script Location 
- The details of 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" }
- RunAs stringUser 
- The userid on the instance to be used for executing the script or command. Example: opc
- RunOn stringInstance Id 
- The OCID of the instance on which this script or command should be executed.
- RunOn stringInstance Region 
- The region of the instance where this script or command should be executed. Example: us-ashburn-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 user-defined step.
- functionId String
- The OCID of function to be invoked. Example: ocid1.fnfunc.oc1..uniqueID
- functionRegion String
- The region in which the function is deployed. Example: us-ashburn-1
- objectStorage List<GetScript Locations Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step Object Storage Script Location> 
- The details of 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" }
- runAs StringUser 
- The userid on the instance to be used for executing the script or command. Example: opc
- runOn StringInstance Id 
- The OCID of the instance on which this script or command should be executed.
- runOn StringInstance Region 
- The region of the instance where this script or command should be executed. Example: us-ashburn-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 user-defined step.
- functionId string
- The OCID of function to be invoked. Example: ocid1.fnfunc.oc1..uniqueID
- functionRegion string
- The region in which the function is deployed. Example: us-ashburn-1
- objectStorage GetScript Locations Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step Object Storage Script Location[] 
- The details of 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" }
- runAs stringUser 
- The userid on the instance to be used for executing the script or command. Example: opc
- runOn stringInstance Id 
- The OCID of the instance on which this script or command should be executed.
- runOn stringInstance Region 
- The region of the instance where this script or command should be executed. Example: us-ashburn-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 user-defined step.
- function_id str
- The OCID of function to be invoked. Example: ocid1.fnfunc.oc1..uniqueID
- function_region str
- The region in which the function is deployed. Example: us-ashburn-1
- object_storage_ Sequence[Getscript_ locations Dr Plans Dr Plan Collection Item Plan Group Step User Defined Step Object Storage Script Location] 
- The details of 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_ struser 
- The userid on the instance to be used for executing the script or command. Example: opc
- run_on_ strinstance_ id 
- The OCID of the instance on which this script or command should be executed.
- run_on_ strinstance_ region 
- The region of the instance where this script or command should be executed. Example: us-ashburn-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 user-defined step.
- functionId String
- The OCID of function to be invoked. Example: ocid1.fnfunc.oc1..uniqueID
- functionRegion String
- The region in which the function is deployed. Example: us-ashburn-1
- objectStorage List<Property Map>Script Locations 
- The details of 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" }
- runAs StringUser 
- The userid on the instance to be used for executing the script or command. Example: opc
- runOn StringInstance Id 
- The OCID of the instance on which this script or command should be executed.
- runOn StringInstance Region 
- The region of the instance where this script or command should be executed. Example: us-ashburn-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 user-defined step.
GetDrPlansDrPlanCollectionItemPlanGroupStepUserDefinedStepObjectStorageScriptLocation                
GetDrPlansFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.