#(REST) "API not found"?

1 messages · Page 1 of 1 (latest)

unborn quail
#

This is my first Ansible playbook by using REST API against ONTAP 9.9.1. The error message is "API not found". I had some experience with Ansible & ZAPI. Are there anything missing?

`---

  • hosts: localhost
    collections:
    • netapp.ontap
      name: ONTAP REST API
      gather_facts: False
      tasks:
    • name: Check for ontap version
      na_ontap_restit:
      hostname: x.x.x.x
      username: admin
      password: netapp123
      https: true
      validate_certs: false
      api: Cluster/software
      query:
      fields: version
      register: result
    • debug: var=result
    • assert: { that: result.status_code==200, quiet: True }
      `
opaque girder
unborn quail
#

👍