Hi Fernando, there is nothing fundamentally wrong with invoking REST APIs with the URI module to achieve your objective. While I understand the roadblock, this approach introduces a new challenge and that is you will be developing, maintaining and restricted to operations of the APIs you are invoking. For example, how would you handle copy operations without python on the managed z/OS node? While I don't know if content is sanitized by these APIs but what if a non-utf8 character is returned back to your URL module, it could then enter into `ansible-core` and result in an error for which then you will need to solve.
------------------------------
Demetri Dimatos
IBM zOS Ansible Core Senior Technical Lead
IBM
San Jose CA
------------------------------
Original Message:
Sent: Mon September 18, 2023 01:23 PM
From: Fernando Alfredo Custodio
Subject: Ansible on Z - Using uri Modules with z/OSMF swagger Rest APIs
Installing ZOAU and Python SDK is a roadblock at the moment due to potential Subscription & Support Costs (I understand it has no license costs) .
I've been created playbooks using base URI module calling zosmf Rest APIs, it's been working just fine. z/OSMF Rest API`s swagger page has hundreds of Rests and, similar to z Collections) are very easy to be used.
is there any recommendation to not use it (URI)?
------------------------------
Fernando Alfredo Custodio
------------------------------