ONTAP Discussions

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

JRH0759

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

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

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

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..

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public