CloudRanger API

Druva CloudRanger supports OAuth 2.0 based authentication for API requests. The following is the process to generate an authentication token to access the API requests. Sample scripts enable you to automate the process of generating the token and access Druva CloudRanger APIs.

Follow the instructions below to authorize and send a simple request to the CloudRanger API

Step 1 - Authorize

In order to start making requests with the CloudRanger API, users must first register for an API key to authenticate the requests. To do this, authenticate with the GET request below:

curl --request GET \
  --url https://api.cloudranger.com/202004/authorize \
  --header 'accept: application/json' \
  --header 'x-api-key: 1rodf123VmhP7S9fgfde38Lr03H345gffGWd0p7F'

Step 2 - Accesible Accounts

Using the token returned in step 1, execute the accessible accounts GET request below which will return a list of accounts that you can perform API requests against.

curl --request GET  --url https://api.cloudranger.com/202004/organizations/t7GfxgtC/accounts
 --header 'accept: application/json'
 --header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyE1ODg5NDUwMsXXXXXXXXXXXXXX.......................'
 --header 'x-api-key: 2qop3RkZY6t.................................'