Solved

Copy one or more files to a location on the VM (AHV Linux VMs) via REST API or acli command

  • 24 November 2016
  • 5 replies
  • 9396 views

Badge +3
Hi,

when creating a vm with PRISM UI you can specify one or more files to copy to a location on the VM (AHV: Linux VMs).
Is it possible to do this via REST API or acli command (vm.create) ?

Regards
Hans
icon

Best answer by habiener 12 December 2016, 15:10

cool, thank you .. great example
View original

5 replies

Hi Jon,
I can't see the example and wish to achieve the same results as the requester.

Any chance you have a link to the code?
Badge +3
cool, thank you .. great example
Userlevel 7
Badge +30
You should be able to post it through the v1 API, /vms/uuid/clone operation.

I've attached a rough and rough example in python
Badge +3
yes thats right, i mean the icloud configuration file ...
Userlevel 7
Badge +30
Are you talking about the customizations via cloud-init? or what?

Reply