Subscribe
Accepted Solution

Beginner question - CG Snapshots with Python

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!

Re: Beginner question - CG Snapshots with Python

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