u/Living_Obligation618

▲ 5 r/rubrik

Managing Rubrik Orchestrated Recovery via the GraphQL API

Hey there!

 

Is it currently possible to manage RSC orchestrated recovery plans through the GraphQL API? Specifically, I'd like to add Azure VMs to a recovery plan (or assign a recovery plan to a VM), but I can't find any mutations that support this.

 

The only recovery plan-related API surface I've been able to find is:

 

  1. The `recoveryPlans` query (though it's flagged as an error in the RSC API playground):

 

```graphql

query GetOrchestratedRecoveries {

 recoveryPlans {

  nodes {

   id

   name

   status

   recoveryType

  }

 }

}

```

 

  1. The `recoveryPlansInfo` field on Azure VM objects:

 

```graphql

query GetVMsInRecoveryPlan($after: String) {

 azureNativeVirtualMachines(

  first: 500

  after: $after

  sortBy: NAME

  sortOrder: ASC

 )

  nodes {

   id

   name

   recoveryPlansInfo {

id

name

recoveryType

   }

  }

 }

}

```

If this isn't supported yet, are there plans to add it in a future release?

My end goal would be to manage which VMs are in the recovery plans via a script.

 

Thank you in advance for your help!

reddit.com
u/Living_Obligation618 — 7 days ago