VMware Cloud Community
BenderTheGreate
Contributor
Contributor
Jump to solution

Is there a way to programmatically remove a Configuration Element in vRealize Orchestrator?

I have a set of ConfigurationElements under a category that are used as a temporary cache of information - but there are times when a specific "cache element" is no longer valid and can be removed. I have the caching process automated which creates the appropriate ConfigurationElementCategory and child ConfigurationElements, but cannot find anything related to removing a ConfigurationElement from a ConfigurationElementCategory using the API explorer.

Is this not possible? Or am I missing something?

Reply
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

var configElement = ...; // your ConfigurationElement object that you want to remove

Server.removeConfigurationElement(configElement);

This scripting API is available since vRO 7.3 if I'm not mistaken

View solution in original post

Reply
0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

var configElement = ...; // your ConfigurationElement object that you want to remove

Server.removeConfigurationElement(configElement);

This scripting API is available since vRO 7.3 if I'm not mistaken

Reply
0 Kudos
BenderTheGreate
Contributor
Contributor
Jump to solution

That worked great, thanks!

Reply
0 Kudos