Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Import file as a Resource Element

$
0
0

Hi,

 

I have a workflow that exports BIOS settings of a ESXi host. I need to put the file into a Resource Element to import this on other hosts.

 

I am dumping the config using SSH commands, and am able to copy the file to my vRO server (Appliance) but I cannot find any information about how to read the file from the local file system.

 

I would like to get it into a text or string, so I can save it as a Resource Element. For that I am going to use the following code:

----------------

var attachment = new MimeAttachment;

attachment.content = content;

attachment.mimeType = mimeType;

 

resourceElement.setContentFromMimeAttachment(attachment);

----------------

 

Can anyone help. I cannot find any documentation on this.

 

Best Regards

Brian


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>