How to call Aria Config API from Orchestrator workflow
search cancel

How to call Aria Config API from Orchestrator workflow

book

Article ID: 431491

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

In some Orchestrator workflows it may be desirable to make an API call to the Aria Config in order to execute a SLS file (Salt State), or other API method.

Environment

Aria Config 8.14+

Aria Orchestrator 8.18

Resolution

To run this code, use the instructions found here to setup a Python interpreter script action, vRealize Orchestrator Script Environments

Then use the sample code below (See ZIP file attached to this article), or feel free to modify it for your purposes. This sample code, when executed from a command line, expects the following options:

 

usage: rm_key.py [-h] [--master MASTER] MINION [MINION ...]

Delete minion keys via Salt API.

positional arguments:
  MINION           One or more minion IDs to delete

options:
  -h, --help       show this help message and exit
--master MASTER  The ID of the Salt Master managing the minions

The "--master" parameter should match the master ID as specified under the "Master Keys" section of your Aria Config UI. 

For more information on available API methods,  see this additional article with the API documentation attached, API Documentation for Aria Config

Attachments

rm_key_sample.zip get_app