ONTAP Rest API Discussions

REST API for managing load sharing mirrors

hsingyuan
320 Views

We use REST API to run NFS backups.  However, we hit a problem with Load Sharing Mirrors.  We add a volume, but the volume cannot be mounted until Load Sharing Mirrors of SVM root volume is updated, and we found that GET Snapmirror REST API does not show load sharing mirrors.  Is there a way to manage Load Sharing Mirrors through REST API?

3 REPLIES 3

hsingyuan
300 Views

Thanks, I noticed those defects.  I would like to know whether we can manage the load sharing mirrors through REST API.  NetApp SDK doc has description of load sharing mirrors, but REST API doc does not mention anything on load sharing mirrors.

RobertBlackhart
267 Views

The ONTAPI to REST mapping document may be useful to you. You can find the latest version linked from https://devnet.netapp.com/restapi.php: https://library.netapp.com/ecm/ecm_download_file/ECMLP2882104

 

Looking for ls-snapmirror-destinations in it, it shows that it is NA  in the REST API. I'm not sure what other attributes you might be trying to use, but looking them up there would probably be useful.

 

For things that are NA, there is the CLI passthrough that you could make use of. See the REST API documentation for details on using it: https://library.netapp.com/ecmdocs/ECMLP2882307/html/index.html. It's in the section titled "Using the private CLI passthrough with the ONTAP REST API"

Public