---
title: "Create DR Plan"
method: POST
path: "/organizations/{organization_id}/accounts/{account_id}/disasterrecoveryplans"
tags: ["DisasterRecoveryPlans"]
---

# Create DR Plan

`POST /organizations/{organization_id}/accounts/{account_id}/disasterrecoveryplans`

Create a new Disaster Recovery Plan

## Path parameters

- `organization_id` string, required
- `account_id` string, required

## Request body

- PostOrganizationsAccountsDisasterrecoveryplansRequest
  - `account_id` string
  - `description` string
  - `instance_not_available_setting` 'up' | 'down' | 'fail'
  - `is_cross_account` boolean
  - `is_valid` boolean
  - `name` string
  - `organization_id` string
  - `preserve_private_ips` boolean
  - `recovery_point_objective` integer
  - `recovery_point_unit` string
  - `recovery_time_objective` integer
  - `recovery_time_unit` string
  - `resources` string[]
  - `rules` object[]
    - `accounts` object[]
      - `account_id` string
      - `rule_id` integer
    - `all_accounts` boolean
    - `all_regions` boolean
    - `all_resource_types` boolean
    - `created_at` string
    - `exclude` boolean
    - `id` integer
    - `matches` object
      - `tags` object[]
        - `Key` string
        - `Value` string
    - `policy_id` integer
    - `regions` string[]
    - `resource_types` string[]
    - `resources` object[]
      - `account_id` string
      - `region` string
      - `resource_id` string
      - `resource_name` string
      - `rule_id` integer
      - `type` string
    - `rule_type` string
    - `updated_at` string
  - `source_environment_id` integer
  - `target_account_id` string
  - `target_environment_id` integer
  - `test_plan_ec2_instance_type` string
  - `test_plan_instance_type` string
  - `test_plan_rds_instance_type` string

## Response `200`

200 response

- PostOrganizationsAccountsDisasterrecoveryplansResponse
  - `account_id` string
  - `created_at` string, date-time
  - `description` string
  - `failover_shutdown_setting` boolean
  - `id` integer
  - `instance_not_available_setting` string
  - `is_cross_account` boolean
  - `is_valid` boolean
  - `mappings` object[]
    - `disaster_recovery_plan_id` integer
    - `disasterRecoveryPlanId` integer
    - `id` integer
    - `mapping` string
    - `target_account_id` string
    - `type` string
  - `match_all_tags_flag` boolean
  - `name` string
  - `organization_id` string
  - `organizationId` string
  - `preserve_private_ips` boolean
  - `recovery_point_objective` integer
  - `recovery_point_unit` string
  - `recovery_time_objective` integer
  - `recovery_time_unit` string
  - `rules` object[]
    - `accounts` object[]
      - `account_id` string
      - `rule_id` integer
      - `ruleId` integer
    - `all_resource_types` boolean
    - `createdAt` string, date-time
    - `dr_plan_id` integer
    - `exclude` boolean
    - `id` integer
    - `matches` object
    - `regions` string[]
    - `resource_types` string[]
    - `resources` string[]
    - `rule_type` string
    - `updatedAt` string, date-time
  - `source_environment_id` integer
  - `target_account_id` string
  - `target_environment_id` integer
  - `test_plan_ec2_instance_type` string
  - `test_plan_rds_instance_type` string
  - `test_schedule_enabled` boolean
  - `updated_at` string, date-time

## Other responses

- `201` — 201 response
- `401` — 401 response
- `403` — 403 response
- `404` — 404 response

---

[API](https://skmtc.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
