I'm a little confused on the use of the API.
I realize "lsmdisk" will return general info for all mdisks and "lsmdisk " will provide detailed info for the referenced mdisk, but I don't see how to specify looking at a specific mdisk to get the details info from the API.
What I'm currently using as an example:
--
Get all the mdisks from storage as a list element
mdisks_munch = svccli.svcinfo.lsmdisk().as_list
for mdisk_munch in mdisk:
mdisk=Munch.toDict(mdisk_munch)
print(mdisk)
--
But from the API doc, I don't see how to specify an mdisk ID to have it provide detailed info.
supplying an mdisk ID either directly as number or quoted results in a runtime error.
--
Example:
File "./check_svc.py", line 16, in
mdisks_munch = svccli.svcinfo.lsmdisk(0).as_list
TypeError: call() takes 1 positional argument but 2 were given
I'm a little confused on the use of the API.
I realize "lsmdisk" will return general info for all mdisks and "lsmdisk " will provide detailed info for the referenced mdisk, but I don't see how to specify looking at a specific mdisk to get the details info from the API.
What I'm currently using as an example:
--
Get all the mdisks from storage as a list element
mdisks_munch = svccli.svcinfo.lsmdisk().as_list
for mdisk_munch in mdisk:
mdisk=Munch.toDict(mdisk_munch)
print(mdisk)
--
But from the API doc, I don't see how to specify an mdisk ID to have it provide detailed info.
supplying an mdisk ID either directly as number or quoted results in a runtime error.
--
Example:
File "./check_svc.py", line 16, in
mdisks_munch = svccli.svcinfo.lsmdisk(0).as_list
TypeError: call() takes 1 positional argument but 2 were given