Thank you it's a very good idea, but I have two questions.
First, before connected to the ontap, I can't get the correct api version but connect to ontap need input api version.
s = Naserver('host',1,140)
s.set_server_type()
s.set_transport_type()
s.set_port()
s.set_style()
s.set_admin_user()
s.set_vserver()
api = NaElement('system-get-ontapi-version')
xo = s.invoke_elem(api)
Second, one api's(like 'volume-create') parameters are different from a different version.
Like in 'volume-create', older api version doesn't have an input parameter 'space-slo'.
So when I change api version, do I need to change my whole code?
Would you mind sharing your different connection python class code demo?
Thank you a lot again, you really helped me!