API V2 vs V3 | Nutanix Community
Skip to main content
Solved

API V2 vs V3

  • February 25, 2021
  • 2 replies
  • 811 views

If the clusters are related with prism central (so I should use v3), Can i use v2 to actions like: manage NIC, Attach/Detach Disks, manage snapshots from API v2?

Is recovery plans is the same as snapshots here? I want to create jobs for automatic snapshots, but I do not see thios possibility in v2

I am using the same account for api v2 and v3 actions, in production environment with my own IP, it will be the same host? It is specified in API Documentation, but I want to be sure if the host for both will be the same - eg. nutanixtest.com/v2… and nutanixtest.com/v3…

Thanks!

Best answer by Alona

Hi AndMG,

 

PC works with APIv3 only. You can still use v2 and even v1 but the calls would have to be directed at PE instead of PC.

A recovery plan is similar to a snapshot schedule in that it is a DR tool that enables you to protect VMs between sites. A recovery point is a similar term to the snapshot.

You can add a snapshot schedule with APIv2 post /protection_domains/{name}/schedules.

Let me know if that helps.

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Alona
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 432 replies
  • Answer
  • March 1, 2021

Hi AndMG,

 

PC works with APIv3 only. You can still use v2 and even v1 but the calls would have to be directed at PE instead of PC.

A recovery plan is similar to a snapshot schedule in that it is a DR tool that enables you to protect VMs between sites. A recovery point is a similar term to the snapshot.

You can add a snapshot schedule with APIv2 post /protection_domains/{name}/schedules.

Let me know if that helps.

 


Forum|alt.badge.img+7

In case it helps, there’s an article on www.nutanix.dev that covers a lot of the “what to use” and “when to use” questions.

 

Please see here: Nutanix API versions – What are they and what does each one do?