The Cloud Sync capabilities that are available through the web UI are also available through RESTful APIs.

Table of Contents

Getting started

To get started with the Cloud Sync APIs, you must obtain a user token and then add the token to the Authorization header when making API calls.

Steps
  1. Obtain a user token from NetApp Cloud Central.

    POST https://netapp-cloud-account.auth0.com/oauth/token
    Header: Content-Type: application/json
    Body:
    {
                   "username": "<user_email>",
                   "scope": "profile",
                   "audience": "https://api.cloud.netapp.com",
                   "client_id": "UaVhOIXMWQs5i1WdDxauXe5Mqkb34NJQ",
                   "grant_type": "password",
                   "password": "<user_password>"
    }
  2. Add the user token in the Authorization header of each API call.

    Example

    The following example shows an API call to create a data broker in Microsoft Azure. You would simply replace <user_token> with the token that you obtained in the previous step.

    POST https://cloudsync.netapp.com/api/data-brokers
    Headers:
    Authorization: Bearer <user_token>
    Content-Type: application/json
    Body:
    {
                   "name": "databroker1",
                   "type": "AZURE"
    }

API reference

Documentation for each Cloud Sync API is available from NetApp Cloud Central.