ONTAP Discussions

Using API: Create, Offline and Delete clone volume using web API on OnTap 9.8

JRH0759
2,622 Views

Hi,

I am trying on a Linux server to create a script using either curl or python to create create, offline and delete cloned copies of existing snaps using the API interface on OnTap 9.8

1 ACCEPTED SOLUTION

NetApp_SR
2,550 Views

There are many examples shown on github to help you create your scripts. Depending on your use case this may also be a good time to investigate Ansible. The use of Ansible allows control and automation of multiple devices.

 

NetApp / ontap-rest-python
https://github.com/NetApp/ontap-rest-python/tree/master/examples/rest_api

 

Get started with automating your dev work flows with NetApp and Ansible
https://www.netapp.com/devops-solutions/ansible/

 

netapp.ontap.na_ontap_volume_clone – NetApp ONTAP manage volume clones.
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_volume_clone_module.html

 

View solution in original post

2 REPLIES 2

NetApp_SR
2,551 Views

There are many examples shown on github to help you create your scripts. Depending on your use case this may also be a good time to investigate Ansible. The use of Ansible allows control and automation of multiple devices.

 

NetApp / ontap-rest-python
https://github.com/NetApp/ontap-rest-python/tree/master/examples/rest_api

 

Get started with automating your dev work flows with NetApp and Ansible
https://www.netapp.com/devops-solutions/ansible/

 

netapp.ontap.na_ontap_volume_clone – NetApp ONTAP manage volume clones.
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_volume_clone_module.html

 

JRH0759
2,498 Views

Thank you for your post..

Though I am writing the script in BASH, the articles you suggested pointed me in the right direction to get it done..

 

Public