top of page

TechBobbles

tech logo with triangle shape.jpg
  • Writer's pictureAdmin

Simplifying IT Automation: How to Trigger vRealize Automation Workflows Using REST API

vRealize Automation (vRA) is a powerful tool for managing your IT resources efficiently. It's like having a digital assistant that helps you deploy and manage everything from virtual machines to applications with the click of a button. One way to make the most of vRA is to use its REST API, which allows you to automate your workflows and enjoy several benefits in the process.



Why Use the vRealize Automation REST API to Trigger Workflows?

1. Automation and Integration

2. Orchestration

3. Efficiency and Consistency

4. Self-Service Portals




How to Trigger vRealize Automation Workflows Using the REST API

Triggering vRA workflows using the REST API is simple and follows these steps:

1. Login

  • First, log in to vRA to get an access token. This token is your "key" for making requests through the API.

The below Login code in JavaScript

Below login Code In PowerShell


2. Get Workflow Details

  • Obtain the vRealize Orchestrator (vRO) workflow ID by following these steps within the vRO user interface. In the provided example, the ID for the "TestingWorkflow" workflow is "978d6c1e-7fa8-4acf-9b2f-697c3291fe48"

vra workflow


3. Get the Execution ID from workflow


  • Manually trigger the execution of a workflow and obtain the execution ID, please follow these steps, as illustrated in the screenshot below. In my example, the execution ID is “IDe73ed468-0607-4d1c-9e7c-7607a9ed367a”.


vra workflow

4. Run the REST API to get the Input Parameter format to workflow


Curl command to get the details.

The same code in PowerShell:

Output Screen Shoot



vRa Workflow Output



5. Run the Workflow

  • Send a "POST" request to the workflow. Provide the input it needs, and it will run. In the body just pest the input parameter details which came from last output.

Same code In PowerShell:

6. Check Workflow Status

  • Keep an eye on the workflow's status by checking with the server. You'll know when it's done.



The vRealize automation REST API is your secret weapon for making IT tasks easier. It automates tasks, connects processes, and keeps resources under control. As more companies turn to cloud and hybrid cloud solutions, vRA and its REST API will be your best friends for managing resources and services dynamically.




Comments


Thanks for visiting 

Bangalore,

Siddartha1192@gmail.com

+919148014455

  • Linkedin
  • Wix Facebook page
  • Wix Twitter page

Subscribe to get exclusive updates

bottom of page