Do all modules work in both REST API mode as well as CLI?
Closed this issue · 5 comments
I am uncertain from the documentation in the modules section whether all modules work in both API as well as SSH CLI mode. Some modules say API but I've used the SSH mode and the code still seems to work.
Hello @quistian - all of the feature based modules use REST API to configure and validate the configuration of that feature i.e. interfaces, ACLs, security - the only 2 modules that utilize SSH connection to execute CLI commands are arubaoss_command and arubaoss_config
Hopefully this answers your question!
No. That's not what I had in mind. The documentation indications there are two modes of using the REST API:
for ssh connectivity:
ansible_connection: network_cli
and for the REST API connection
ansible_connection: local
My question is: "Do all modules work independent of the value of ansible_connection as given above"
No, if given an incorrect ansible_connection value the module will fail with an error
Ok... As I thought. Do individual modules indicate whether they work in both modes (I know some do) or only in one?
We have documented here which 2 modules use SSH connection - those are the only modules that will use SSH.