APIs unlock unlimited opportunity to extend and automate functionality across the data center and cloud. This session will delve into Rubrik's API architecture, authentication, how to explore and consume APIs, versioning, and more. Walk away with tangible examples of how Rubrik’s APIs can be used to automate data protection.
Code and slides in repo. This is from a session at Rubrik Forward (Digital Summit) 2020.
The following pre-requisites are required for this example:
- Access to a Rubrik CDM cluster
- Postman
The Rubrik REST API Explorer can be accessed by navigating to https://${var.ip_address}/docs/v1/playground
.
- Authenicate (token or basic)
- Take an on-demand snapshot
GET /vmware/vm
. Specify a value in thename
field- Copy the virtual machine ID
POST /vmware/vm/{id}/snapshot
and input the string value of the virtual machineid
- Validate on-demand snapshot
Live Mount a vSphere virtual machine:
- GET List of VM Live Mounts
- GET VM UUID
- GET snapshot UUID
- POST VM Live Mount
- GET List of VM Live Mounts
- DEL VM Live Mount
- GET List of VM Live Mounts
Postman collection for this function available here.
The following pre-requisites are required for this example:
- Access to a Rubrik CDM cluster
- Postman
Live Mount a vSphere virtual machine:
- Retrieve count of number of vCenters
- Retrieve count of protected and unprotected VMs
- Retrieve the names of 5 VMs
- Retrieve information about a specified VM
- Retrieve multiple VMs using aliases and a fragment
- Retrieve multiple VMs, including SLA info, using aliases and a fragment
- Retrieve information about the applied SLA
Postman collection for this function available here.