Hi,
The api parameters can vary depending of ontapi version.
You can use ZExplore Development Interface to see what is available with which version.
Here an example wirh Python in 1.21, where diskname, ownership, isfailed are retrieved. A lot of other information exist
import sys
from NaServer import *
PASSWORD= "xxxxx"
filer = NaServer("xxxxxx", 1 , 21)
filer.set_transport_type("HTTPS")
filer.set_port(443)
filer.set_server_type("FILER")
filer.set_style("LOGIN")
filer.set_admin_user("root", PASSWORD)
api = NaElement("storage-disk-get-iter")
api.child_add_string("max-records",500)
xo = filer.invoke_elem(api)
if (xo.results_status() == "failed") :
print ("Error:\n")
print (xo.sprintf())
sys.exit (1)
attrib = xo.child_get("attributes-list")
disks = attrib.children_get()
for disk in disks:
diskname = disk.child_get_string("disk-name")
diskownership = disk.child_get("disk-ownership-info")
diskfailed = diskownership.child_get_string("is-failed")
print(diskname)
print(diskfailed)
print(diskownership.child_get_string("owner-node-id"))
print("-------------------")