Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
As per below given article.
netapp.ontap.na_ontap_info module – NetApp information gatherer — Ansible Documentation there is below note:
The modules prefixed with na_ontap are built to support the ONTAP storage platform.
https is enabled by default and recommended. To enable http on the cluster you must run the following commands ‘set -privilege advanced;’ ‘system services web modify -http-enabled true;’
Can someone confirm if https is default and recommended then why do we need http to enable ?
Solved! See The Solution
Https is the recommended method.
To run Ansible modules over https the following lines need to be added to each modules arguments
https: true
validate_certs: false
Alternate Workaround: Enable http access in ONTAP
cluster1::> set advanced
cluster1::*> system service web modify -http-enabled true
Yes, https is default and recommended. That note is only suggesting that for whatever reason if you want to use http, then it must be enabled on the cluster (as http is disabled by default). Probably, the way that sentence is placed may have confused you.
Exactly, that statement in article is confusing. So, https is required to enabled if already not enable that would be helping to get work ansible module. Please confirm if any other way to get work ansible module for NetApp cluster or only https would be helpful. Thanks.
Https is the recommended method.
To run Ansible modules over https the following lines need to be added to each modules arguments
https: true
validate_certs: false
Alternate Workaround: Enable http access in ONTAP
cluster1::> set advanced
cluster1::*> system service web modify -http-enabled true