4 Replies Latest reply on Dec 8, 2015 4:35 AM by Brian Knutsson

    Import file as a Resource Element

    Brian Knutsson Enthusiast
    vExpert

      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