VMware Cloud Community
virtualhobbit
Enthusiast
Enthusiast

Need to update Configuration Element using API

Hi,

I have a need for a scheduled task/cron job on the vRO server to reach out to an external system using cURL, retrieve a value and write it to a configuration element.

I know you can update resource elements in this manner. Does anyone know if it can be done for configuration elements?

Many thanks,

-Mark

Reply
0 Kudos
4 Replies
iiliev
VMware Employee
VMware Employee

Hi,

I guess you can use ConfigurationElement#setAttributeWithKey scripting method to modify configuration elements.

Reply
0 Kudos
virtualhobbit
Enthusiast
Enthusiast

But that would be from within the code.

I actually mean on the vRO server "inside the OS".

-Mark

Reply
0 Kudos
eoinbyrne
Expert
Expert

Check here for the API doc for 7.6

https://code.vmware.com/apis/582/vro-rest#/

You'll need to handle Auth but what you want should be possible

Reply
0 Kudos
stevedrummond
Hot Shot
Hot Shot

Why don't you just have the cron job kick off the workflow which reaches out with the REST plug-in and updates the config element internally?

Reply
0 Kudos