#Ansible script to list all volumes from all vservers

1 messages · Page 1 of 1 (latest)

glass beacon
#

Can we do this with ansible script to list all volumes from all vservers on the netapp? I am automating the task to give me the list of all volumes from all vservers.I checked the netapp ontap collection and could not find anything in na_ontap_volume module or if there is any module which can get the volume names.Appreciate help TIA

proven bolt
glass beacon
#

@proven bolt - Is there any way we can do with out rest with direct ansible collections?

spare bobcat
#

@glass beacon
Ansible ONTAP collection has modules such as na_ontap_rest_info, na_ontap_rest_cli, and na_ontap_restit for gathering information on ONTAP objects.
All the other modules in the collection make use of GET calls internally which is not available for module returns.

pastel vault
#

I had to figure out that the ..rest_info module only lists the volumes with its UUID, but not the hosting vserver. Did I miss a parameter that shows that or do I really need to parse this from rest_cli?

spare bobcat