#Access return_records when using Ansible/REST API

1 messages · Page 1 of 1 (latest)

small marsh
#

Is there a way to access the body response from the ONTAP REST API using the NetApp modules? My use case is needing to log evidence that a command completed the task with the desired results ( not just the OK from the Ansible task) . My workaround is to run the REST Info module and gather what I need but would like to have a 1:1 relationship from task to evidence output file.

drowsy patrol
#

I think the way your doing it today is probably the the best way to do it today. Our module trust that if the API dosn't return an error one of 2 thing happened

  1. if it a Synchronous call the object has been created
  2. if it a asynchronous call we get a job, the ansible module will then wait on the job until the Job returns complete or an error