NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

Software Development Kit (SDK) and API Discussions

Beginner question - CG Snapshots with Python

alexj
3,884 Views

Does anyone have a good tutorial or code example of taking a CG snapshot across multiple volumes with the SDK for Python? I'm most curious about how you go about building the XML for cg-start and sending it with invoke. So far I have only retrieved data via the APIs.

 

Thanks!

1 ACCEPTED SOLUTION

alexj
3,863 Views

Figured it out - you construct the NaElement and send that with invoke_elem. NaElement is constructed using NaElement(), element.child_add_string(), and element.child_add().

View solution in original post

1 REPLY 1

alexj
3,864 Views

Figured it out - you construct the NaElement and send that with invoke_elem. NaElement is constructed using NaElement(), element.child_add_string(), and element.child_add().

Public