Microsoft Azure Replication Recovery Plans API

The ReplicationRecoveryPlans API from Microsoft Azure, for replicationrecoveryplans.

GitHub OpenAPI
Business capability
Disaster Recovery Management BC-160.20

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans List recovery plans in a vault · Microsoft Azure Gets The List Of Recovery Plans #
Ask an LLM
“Which Site Recovery recovery plans are defined in my vault?”
“Can I see every recovery plan in a Recovery Services vault?”
Tell an agent
List the recovery plans in vault {vault} in resource group {resource_group}, subscription {subscription}.
Show all recovery plans configured in vault {vault}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName} Get a recovery plan · Microsoft Azure Gets The Requested Recovery Plan #
Ask an LLM
“What groups and machines does a specific recovery plan contain?”
“Can I check the current state of one recovery plan?”
Tell an agent
Get recovery plan {plan} in vault {vault}, resource group {resource_group}, subscription {subscription}.
Show me the details of recovery plan {plan} in vault {vault}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName} Create a recovery plan · Microsoft Azure Creates A Recovery Plan With The Given Details #
Ask an LLM
“How do I create a new disaster recovery plan in my vault?”
“What do I need to define when setting up a recovery plan?”
Tell an agent
Create recovery plan {plan} in vault {vault} (group {resource_group}, subscription {subscription}) with properties {properties}.
Set up a new recovery plan {plan} in vault {vault} using {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName} Delete a recovery plan · Microsoft Azure Deletes The Specified Recovery Plan #
Ask an LLM
“Can I delete a recovery plan I no longer need?”
“What happens to protected machines when I remove their recovery plan?”
Tell an agent destructive · confirm first
Delete recovery plan {plan} from vault {vault} in group {resource_group}, subscription {subscription}.
Remove the recovery plan {plan} in vault {vault}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName} Update a recovery plan · Microsoft Azure Updates The Given Recovery Plan #
Ask an LLM
“How do I change the groups or actions in an existing recovery plan?”
“Can I edit a recovery plan without recreating it?”
Tell an agent
Update recovery plan {plan} in vault {vault} (group {resource_group}, subscription {subscription}) with {properties}.
Modify the existing recovery plan {plan} in vault {vault} to use {properties}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCancel Cancel a recovery plan failover · Microsoft Azure Execute Cancel Failover Of The Recovery Plan #
Ask an LLM
“Can I cancel a failover that is under way for a recovery plan?”
“How do I stop a recovery plan failover before it completes?”
Tell an agent destructive · confirm first
Cancel the failover of recovery plan {plan} in vault {vault}, group {resource_group}, subscription {subscription}.
Abort the running failover on recovery plan {plan} in vault {vault}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit Commit a recovery plan failover · Microsoft Azure Execute Commit Failover Of The Recovery Plan #
Ask an LLM
“How do I commit a failover once I'm happy with the recovered machines?”
“Is committing a recovery plan failover a final step?”
Tell an agent destructive · confirm first
Commit the failover of recovery plan {plan} in vault {vault}, group {resource_group}, subscription {subscription}.
Finalize the completed failover for recovery plan {plan} in vault {vault}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover Start a planned failover of a recovery plan · Microsoft Azure Execute Planned Failover Of The Recovery Plan #
Ask an LLM
“How do I run a planned failover for a recovery plan with no data loss?”
“Can I choose the failover direction for a planned failover?”
Tell an agent
Start a planned failover of recovery plan {plan} in vault {vault} (group {resource_group}, subscription {subscription}) with {properties}.
Run a planned failover on recovery plan {plan} in vault {vault} using {properties}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect Reprotect a recovery plan · Microsoft Azure Execute Reprotect Of The Recovery Plan #
Ask an LLM
“How do I reverse replication after failing over a recovery plan?”
“Can I reprotect all machines in a recovery plan at once?”
Tell an agent
Reprotect recovery plan {plan} in vault {vault}, group {resource_group}, subscription {subscription}.
Start reverse replication for recovery plan {plan} in vault {vault}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover Start a test failover of a recovery plan · Microsoft Azure Execute Test Failover Of The Recovery Plan #
Ask an LLM
“Can I run a disaster recovery drill without affecting production?”
“Which network does a recovery plan test failover use?”
Tell an agent
Start a test failover of recovery plan {plan} in vault {vault} (group {resource_group}, subscription {subscription}) with {properties}.
Run a DR drill on recovery plan {plan} in vault {vault} using test settings {properties}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup Clean up a recovery plan test failover · Microsoft Azure Execute Test Failover Cleanup Of The Recovery Plan #
Ask an LLM
“How do I tear down the machines created by a test failover drill?”
“Can I add a comment when cleaning up after a recovery plan test?”
Tell an agent destructive · confirm first
Clean up the test failover of recovery plan {plan} in vault {vault} (group {resource_group}, subscription {subscription}) with {properties}.
Remove the test failover resources for recovery plan {plan} in vault {vault}, noting {properties}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover Start an unplanned failover of a recovery plan · Microsoft Azure Execute Unplanned Failover Of The Recovery Plan #
Ask an LLM
“How do I fail over a recovery plan during a real outage?”
“Can I fail over a recovery plan when the primary site is already down?”
Tell an agent
Start an unplanned failover of recovery plan {plan} in vault {vault} (group {resource_group}, subscription {subscription}) with {properties}.
Trigger an emergency unplanned failover on recovery plan {plan} in vault {vault} using {properties}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-replicationrecoveryplans-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-replicationrecoveryplans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2023-06-01'
  title: Microsoft Azure SiteRecoveryManagementClient Replication…
  x-ms-code-generation-settings:
    header: MICROSOFT_MIT_NO_VERSION
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ReplicationRecoveryPlans
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans
  : get:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Gets The List Of Recovery Plans
      description: Lists the recovery plans in the vault.
      operationId: microsoftAzureReplicationrecoveryplansList
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlanCollection'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Gets the list of recovery plans.:
          $ref: ./examples/ReplicationRecoveryPlans_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}
  : get:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Gets The Requested Recovery Plan
      description: Gets the details of the recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansGet
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Name of the recovery plan.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
      x-ms-examples:
        Gets the requested recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_Get.json
    put:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Creates A Recovery Plan With The Given Details
      description: The operation to create a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansCreate
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Creates a recovery plan with the given details.:
          $ref: ./examples/ReplicationRecoveryPlans_Create.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRecoveryPlanInput'
        description: Recovery Plan creation input.
        required: true
    delete:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Deletes The Specified Recovery Plan
      description: Delete a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansDelete
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '204':
          description: NoContent
      x-ms-long-running-operation: true
      x-ms-examples:
        Deletes the specified recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_Delete.json
    patch:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Updates The Given Recovery Plan
      description: The operation to update a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansUpdate
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Updates the given recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_Update.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRecoveryPlanInput'
        description: Update recovery plan input.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCancel
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Cancel Failover Of The Recovery Plan
      description: The operation to cancel the failover of a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansFailovercancel
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute cancel failover of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_FailoverCancel.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Commit Failover Of The Recovery Plan
      description: The operation to commit the failover of a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansFailovercommit
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute commit failover of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_FailoverCommit.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Planned Failover Of The Recovery Plan
      description: The operation to start the planned failover of a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansPlannedfailover
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute planned failover of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_PlannedFailover.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecoveryPlanPlannedFailoverInput'
        description: Failover input.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Reprotect Of The Recovery Plan
      description: The operation to reprotect(reverse replicate) a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansReprotect
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute reprotect of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_Reprotect.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Test Failover Of The Recovery Plan
      description: The operation to start the test failover of a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansTestfailover
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute test failover of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_TestFailover.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecoveryPlanTestFailoverInput'
        description: Recovery plan test failover input.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Test Failover Cleanup Of The Recovery Plan
      description: The operation to cleanup test failover of a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansTestfailovercleanup
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute test failover cleanup of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_TestFailoverCleanup.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecoveryPlanTestFailoverCleanupInput'
        description: Recovery plan test failover cleanup input.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover
  : post:
      tags:
      - ReplicationRecoveryPlans
      summary: Microsoft Azure Execute Unplanned Failover Of The Recovery Plan
      description: The operation to start the unplanned failover of a recovery plan.
      operationId: microsoftAzureReplicationrecoveryplansUnplannedfailover
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: recoveryPlanName
        in: path
        description: Recovery plan name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryPlan'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Execute unplanned failover of the recovery plan.:
          $ref: ./examples/ReplicationRecoveryPlans_UnplannedFailover.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecoveryPlanUnplannedFailoverInput'
        description: Recovery plan unplanned failover input.
        required: true
components:
  schemas:
    RecoveryPlanTestFailoverInputProperties:
      description: Recovery plan test failover input properties.
      required:
      - failoverDirection
      - networkType
      type: object
      properties:
        failoverDirection:
          description: The failover direction.
          enum:
          - PrimaryToRecovery
          - RecoveryToPrimary
          type: string
          x-ms-enum:
            name: PossibleOperationsDirections
            modelAsString: true
        networkType:
          description: The network type to be used for test failover.
          type: string
        networkId:
          description: The Id of the network to be used for test failover.
          type: string
        providerSpecificDetails:
          description: The provider specific properties.
          maxLength: 1
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanProviderSpecificFailoverInput'
    CreateRecoveryPlanInput:
      description: Create recovery plan input class.
      required:
      - properties
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/CreateRecoveryPlanInputProperties'
          description: Recovery plan creation properties.
    UpdateRecoveryPlanInputProperties:
      description: Recovery plan update properties.
      type: object
      properties:
        groups:
          description: The recovery plan groups.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanGroup'
    RecoveryPlanPlannedFailoverInput:
      description: Recovery plan planned failover input.
      required:
      - properties
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/RecoveryPlanPlannedFailoverInputProperties'
          description: The recovery plan planned failover input properties.
    RecoveryPlanProperties:
      description: Recovery plan properties.
      type: object
      properties:
        friendlyName:
          description: The friendly name.
          type: string
        primaryFabricId:
          description: The primary fabric Id.
          type: string
        primaryFabricFriendlyName:
          description: The primary fabric friendly name.
          type: string
        recoveryFabricId:
          description: The recovery fabric Id.
          type: string
        recoveryFabricFriendlyName:
          description: The recovery fabric friendly name.
          type: string
        failoverDeploymentModel:
          description: The failover deployment model.
          type: string
        replicationProviders:
          description: The list of replication providers.
          type: array
          items:
            type: string
        allowedOperations:
          description: The list of allowed operations.
          type: array
          items:
            type: string
        lastPlannedFailoverTime:
          format: date-time
          description: The start time of the last planned failover.
          type: string
        lastUnplannedFailoverTime:
          format: date-time
          description: The start time of the last unplanned failover.
          type: string
        lastTestFailoverTime:
          format: date-time
          description: The start time of the last test failover.
          type: string
        currentScenario:
          $ref: '#/components/schemas/CurrentScenarioDetails'
          description: The current scenario details.
        currentScenarioStatus:
          description: The recovery plan status.
          type: string
        currentScenarioStatusDescription:
          description: The recovery plan status description.
          type: string
        groups:
          description: The recovery plan groups.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanGroup'
        providerSpecificDetails:
          description: The provider id and provider specific details.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanProviderSpecificDetails'
    RecoveryPlanTestFailoverCleanupInput:
      description: Recovery plan test failover cleanup input.
      required:
      - properties
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/RecoveryPlanTestFailoverCleanupInputProperties'
          description: The recovery plan test failover cleanup input properties.
    Resource:
      description: Azure resource.
      type: object
      properties:
        id:
          description: Resource Id
          type: string
          readOnly: true
        name:
          description: Resource Name
          type: string
          readOnly: true
        type:
          description: Resource Type
          type: string
          readOnly: true
        location:
          description: Resource Location
          type: string
      x-ms-azure-resource: true
    RecoveryPlanUnplannedFailoverInputProperties:
      description: Recovery plan unplanned failover input properties.
      required:
      - failoverDirection
      - sourceSiteOperations
      type: object
      properties:
        failoverDirection:
          description: The failover direction.
          enum:
          - PrimaryToRecovery
          - RecoveryToPrimary
          type: string
          x-ms-enum:
            name: PossibleOperationsDirections
            modelAsString: true
        sourceSiteOperations:
          description: A value indicating whether source site operations are required.
          enum:
          - Required
          - NotRequired
          type: string
          x-ms-enum:
            name: SourceSiteOperations
            modelAsString: true
        providerSpecificDetails:
          description: The provider specific properties.
          maxLength: 1
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanProviderSpecificFailoverInput'
    RecoveryPlanPlannedFailoverInputProperties:
      description: Recovery plan planned failover input properties.
      required:
      - failoverDirection
      type: object
      properties:
        failoverDirection:
          description: The failover direction.
          enum:
          - PrimaryToRecovery
          - RecoveryToPrimary
          type: string
          x-ms-enum:
            name: PossibleOperationsDirections
            modelAsString: true
        providerSpecificDetails:
          description: The provider specific properties.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanProviderSpecificFailoverInput'
    RecoveryPlanUnplannedFailoverInput:
      description: Recovery plan unplanned failover input.
      required:
      - properties
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/RecoveryPlanUnplannedFailoverInputProperties'
          description: The recovery plan unplanned failover input properties.
    RecoveryPlanActionDetails:
      description: Recovery plan action custom details.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
          type: string
      discriminator:
        propertyName: instanceType
    RecoveryPlanAction:
      description: Recovery plan action details.
      required:
      - actionName
      - failoverTypes
      - failoverDirections
      - customDetails
      type: object
      properties:
        actionName:
          description: The action name.
          type: string
        failoverTypes:
          description: The list of failover types.
          type: array
          items:
            enum:
            - ReverseReplicate
            - Commit
            - PlannedFailover
            - UnplannedFailover
            - DisableProtection
            - TestFailover
            - TestFailoverCleanup
            - Failback
            - FinalizeFailback
            - CancelFailover
            - ChangePit
            - RepairReplication
            - SwitchProtection
            - CompleteMigration
            type: string
            x-ms-enum:
              name: ReplicationProtectedItemOperation
              modelAsString: true
        failoverDirections:
          description: The list of failover directions.
          type: array
          items:
            enum:
            - PrimaryToRecovery
            - RecoveryToPrimary
            type: string
            x-ms-enum:
              name: PossibleOperationsDirections
              modelAsString: true
        customDetails:
          $ref: '#/components/schemas/RecoveryPlanActionDetails'
          description: The custom details.
    RecoveryPlanCollection:
      description: Recovery plan collection details.
      type: object
      properties:
        value:
          description: The list of recovery plans.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlan'
        nextLink:
          description: The value of next link.
          type: string
    RecoveryPlanTestFailoverCleanupInputProperties:
      description: Recovery plan test failover cleanup input properties.
      type: object
      properties:
        comments:
          description: The test failover cleanup comments.
          maxLength: 1024
          type: string
    RecoveryPlanProviderSpecificFailoverInput:
      description: Recovery plan provider specific failover input.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: The class type.
          type: string
      discriminator:
        propertyName: instanceType
    RecoveryPlan:
      description: Recovery plan details.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          $ref: '#/components/schemas/RecoveryPlanProperties'
          description: The custom details.
    RecoveryPlanTestFailoverInput:
      description: Recovery plan test failover input.
      required:
      - properties
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/RecoveryPlanTestFailoverInputProperties'
          description: The recovery plan test failover input properties.
    RecoveryPlanProviderSpecificDetails:
      description: Recovery plan provider specific details.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: Gets the Instance type.
          type: string
      discriminator:
        propertyName: instanceType
    RecoveryPlanGroup:
      description: Recovery plan group details.
      required:
      - groupType
      type: object
      properties:
        groupType:
          description: The group type.
          enum:
          - Shutdown
          - Boot
          - Failover
          type: string
          x-ms-enum:
            name: RecoveryPlanGroupType
            modelAsString: true
        replicationProtectedItems:
          description: The list of protected items.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanProtectedItem'
        startGroupActions:
          description: The start group actions.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanAction'
        endGroupActions:
          description: The end group actions.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanAction'
    UpdateRecoveryPlanInput:
      description: Update recovery plan input class.
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/UpdateRecoveryPlanInputProperties'
          description: Recovery plan update properties.
    RecoveryPlanProtectedItem:
      description: Recovery plan protected item.
      type: object
      properties:
        id:
          description: The ARM Id of the recovery plan protected item.
          type: string
        virtualMachineId:
          description: The virtual machine Id.
          type: string
    RecoveryPlanProviderSpecificInput:
      description: Recovery plan provider specific input base class.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: Gets the Instance type.
          type: string
      discriminator:
        propertyName: instanceType
    CreateRecoveryPlanInputProperties:
      description: Recovery plan creation properties.
      required:
      - primaryFabricId
      - recoveryFabricId
      - groups
      type: object
      properties:
        primaryFabricId:
          description: The primary fabric Id.
          type: string
        recoveryFabricId:
          description: The recovery fabric Id.
          type: string
        failoverDeploymentModel:
          description: The failover deployment model.
          enum:
          - NotApplicable
          - Classic
          - ResourceManager
          type: string
          x-ms-enum:
            name: FailoverDeploymentModel
            modelAsString: true
        groups:
          description: The recovery plan groups.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanGroup'
        providerSpecificInput:
          description: The provider specific input.
          type: array
          items:
            $ref: '#/components/schemas/RecoveryPlanProviderSpecificInput'
    CurrentScenarioDetails:
      description: Current scenario details of the protected entity.
      type: object
      properties:
        scenarioName:
          description: Scenario name.
          type: string
        jobId:
          description: ARM Id of the job being executed.
          type: string
        startTime:
          format: date-time
          description: Start time of the workflow.
          type: string
  parameters:
    ResourceGroupName:
      name: resourceGroupName
      in: path
      description: The name of the resource group where the recovery services vault is present.
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
    ResourceName:
      name: resourceName
      in: path
      description: The name of the recovery services vault.
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
    ApiVersion:
      name: api-version
      in: query
      description: Client Api Version.
      required: true
      schema:
        type: string
    SubscriptionId:
      name: subscriptionId
      in: path
      description: The subscription Id.
      required: true
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account.
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow