Closed chen23 closed 6 years ago
I was just thinking about this today. Following.
To a large extent, this can be done today with ansible's uri
module, though you will need a second task to get the authentication token.
@caphrim007 Thanks for the tip, I will look into this.
@realged13 see the example here https://github.com/F5Networks/f5-ansible/tree/devel/examples/0006-using-rest-api-directly
Note that this is not the recommended approach to automating the box as it carries with it a number of risks. Many of those risks are outlined in the example's README.
If this is still the approach that you want to take though, then I wont stop you.
@caphrim007 Thanks. Not reallly ready to get into that yet, but just seeing if I could use it occasionally instead of doing the command method. Like I am having to create virtual servers, then run a command that modifys the protocol to use TCP.
@realged13 sure, just dont be surprised if you are surprised by it :-)
closing as @chen23 is satisfied with the url examples
ISSUE TYPE
COMPONENT NAME
new bigip_icontrol_rest_uri
SUMMARY
There should be a module to perform "raw" iControl REST calls with GET, PUT, PATCH, POST.
This would facilitate:
a.) getting raw data from BIG-IP b.) supporting endpoints that may not have an existing F5 Ansible module
This could be thought of similar to bigip_command, but for low-level iControl REST calls (leaving SOAP out of scope).
STEPS TO REPRODUCE
via the Python SDK you would want something like.
Then you could have an Ansible module with semantics similar to the uri module.
EXPECTED RESULTS
ACTUAL RESULTS