Ansible for IBM Z

Ansible for IBM Z

Ansible for IBM Z

Facilitate communication, user interaction and feedback for Red Hat Ansible Certified Content for IBM Z

 View Only
Expand all | Collapse all

Ansible on Z - Using uri Modules with z/OSMF swagger Rest APIs

  • 1.  Ansible on Z - Using uri Modules with z/OSMF swagger Rest APIs

    Posted Tue September 19, 2023 11:08 AM

    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
    ------------------------------


  • 2.  RE: Ansible on Z - Using uri Modules with z/OSMF swagger Rest APIs

    Posted Thu October 19, 2023 02:45 AM
    Edited by Demetri Dimatos Thu October 19, 2023 12:02 PM

    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
    ------------------------------