I aimed to perform a particular VMware Unified Access Gateway (UAG) tasks programatically. After some guidance from Mark Benson he introduced me to the Swagger-UI that is available within the product.
To access the Swagger-UI on UAG open the following URL within the browser and enter your username and password.
https://uagnameorip:9443/swagger-ui/index.html

One can do alot within the swagger-ui to make various GET, POST, PUT actions. However, my preferred tool is POSTMAN. I needed a way to figure out how to get all the swagger-ui converted to POSTMAN. Upon searching, I came across this method mentioned here.
To fetch all the swagger JSON output, go to this URL on the VMware UAG Appliance.
https://uagnameorip:9443/rest/swagger.json
We have two options here. #Option1 – copy all the data from the webpage and paste it under Postman – Import – Paste Raw Text. You will have all the VMware UAG Access Gateway Rest API listed. #Option2 – Paste the above URL into Postman – Import – Import from link (This didn’t work for me maybe authentication was required)

Please find attached the POSTMAN export for the VMware Unified Access Gateway Appliance 3.9.1. (Note I believe swagger-ui was availble post UAG 3.7 onwards).

I hope you will find this post useful to start using the Swagger-UI and Postman collections to begin working with UAG appliance. My request if you further create interesting scripts or perform cool activities with UAG appliance, I hope you can share it back with me?
Thanks,
Aresh Sarkari
Nice article Aresh. Did you test this on a UAG with multiple NIC’s (1 mgmt, and one external)? Do you know if this works with UAG’s with dual NIC’s?
Nice article Aresh. Did you test this on a UAG with multiple NIC’s (1 mgmt, and one external)? Do you know if this works with UAG’s with dual NIC’s?
We currently have a 1 single NIC UAG setup. I am sure it will work for dual NIC too..
Not that I’ve seen or can find online anywhere. When you configure it with multiple NIC’s on different networks I believe it disables SSH/API for the UAG’s since it’s assumed you are putting one externally (DMZ) and one internally and will have a higher level of security so as to not expose SSH/API’s externally.
You can always enable SSH deployment during the deployment using powershell – sshEnabled=true or/else you have the option in GUI too. You can enable it to perform maintenance and once done disable it.
There is nothing for API.. Its enabled by default and its has no reliance on SSH.