VMware Cloud Community
misterbizarro
Contributor
Contributor

Automatically Adding Auto-Discovered Agents to Inventory (hqapi)

I am currently adding agents to the inventory through the auto-discovery method. I was wondering if there is a way to automatically add auto-discovered agents to the inventory without logging into the dashboard and clicking the auto-add button.

Also, what are the advantages and use cases of using hqapi to add objects to the inventory versus relying on auto-discovery?
Reply
0 Kudos
4 Replies
admin
Immortal
Immortal

Hi,

You can use hqapi to automatically approve any items in the auto inventory queue. We have a lot of customers who setup cronjobs to run the approve command to do this automatically.

Using HQApi to add to inventory saves you from having to add items via email. It can be used to programatically add batches of resources which are not added via auto discovery. For large environments it can save admins lots of time.
Reply
0 Kudos
misterbizarro
Contributor
Contributor

Why wouldn't I auto-approve only using hqapi, instead of force-adding using hqapi?
Reply
0 Kudos
admin
Immortal
Immortal

Hi,

My second statement was a bit misworded. That's what I get for multi tasking. 🙂

Automating via hqapi is your best option.
misterbizarro
Contributor
Contributor

It sounds like it's a matter of preference depending on what the individual wants.
Thanks for the tip.
Reply
0 Kudos