LaxmiRagi
Enthusiast
Enthusiast

How to import and export configuration elements by script.

Hi There,

We cannot have permissions to go to VRA / vRO and import and export Configuration element in prod.

So, I am trying to write a script to export and import the configuration elements but I am unable to do that.

Can anyone help me out to achieve this?

Thanks,

Laxmi.

0 Kudos
2 Replies
eoinbyrne
Expert
Expert

Have a look at the method

Server.getConfigurationElementWithPath in the API explorer

And then examine ConfigurationElement

Depending on what permissions you DO have, you should be able to get the content of the ConfigurationElement at least. If all you want is the content in Text/human readable form it's pretty straightforward to print that out

HTH

0 Kudos
xian_
Expert
Expert

Take a look at module com.vmware.util action exportAllconfigurationElementsToCsv

0 Kudos