top of page

Adjust Adapter Instances with the Aria Operations API

  • Writer: Brock Peterson
    Brock Peterson
  • Jan 13, 2024
  • 1 min read

Maybe targets changed, domains changed, IPs were adjusted, whatever it is, you now need to adjust Adapter Instances in Aria Operations. Of course you can do this in the UI, but if there are dozens or hundreds of Adapter Instances that need changing, you might explore a programmatic way of doing it, enter the Aria Operations API.


Let's explore the available API endpoints, which can be found at https://your_ops_instance/suite-api, documentation here.


ree

Adapters /api/adapters looks most promising.


ree

GET /api/adapters should get us all Adapter Instance information we need.


ree

Click Try it out then Execute, the Response Body will have your Adapter Instances.


ree

Let's find one we want to work with, in this case a MSSQL Adapter Instance.


ree

Scroll down to find the id, which will be at the end.


ree

This is the id we will use to adjust our Adapter Instance via the PUT /api/adapters endpoint.


ree

Click Try it out.


ree

As you can see, it's asking for input, let's use what we captured previously and adjust the Name, Description, and Target of the Adapter Instance.



Once done, Execute it.


ree

As indicated in the Response body, we don't need both the collectorId and CollectorGroupId, so let's remove one from our input, I removed CollectorGroupId and reran.


ree

Code 200 and Response body looks better now. Let's go check our Adapter Instance in the UI.


ree

There it is with the updated Name and Description. Let's confirm the target was changed as well.


ree

There it is, worked perfectly! The Aria Operations API is so powerful, use it! If you're just getting started with it, go get John Dias' Postman Collection out on VMware {code}, it'll get you going. Enjoy!

Comments


    bottom of page