første xml update
[virt-orchestrator.git] / vFLOWER / content / Actions / com.vmware.library.vc.vm / changeVMvCPU.action.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <dunes-script-module name="changeVMvCPU" result-type="VC:Task" api-version="3.1.0" id="a13e6055-0e74-40b4-acd0-57ad9f946d3c" version="0.1.0" allowed-operations="fv">
3     <description>Change the number of vCPUs in the VM.</description>
4
5     <param n="vm" t="VC:VirtualMachine">The VM to change</param>
6
7     <param n="vcpu" t="number">New vCPU number</param>
8
9     <script encoded="false">
10 var configSpec = new VcVirtualMachineConfigSpec();
11 configSpec.numCPUs = vcpu;
12 var task = vm.reconfigVM_Task( configSpec );
13 return task;
14     </script>
15 </dunes-script-module>