@@ -503,7 +503,31 @@ UserVm upgradeVirtualMachine(ScaleVMCmd cmd) throws ResourceUnavailableException
503503
504504 void collectVmNetworkStatistics (UserVm userVm );
505505
506- UserVm importVM (final DataCenter zone , final Host host , final VirtualMachineTemplate template , final String instanceName , final String displayName , final Account owner , final String userData , final Account caller , final Boolean isDisplayVm , final String keyboard ,
506+ /**
507+ * Import VM into CloudStack
508+ * @param zone importing zone
509+ * @param host importing host
510+ * @param template template for the imported VM
511+ * @param instanceNameInternal set to null to CloudStack to autogenerate from the next available VM ID on database
512+ * @param displayName display name for the imported VM
513+ * @param owner owner of the imported VM
514+ * @param userData user data for the imported VM
515+ * @param caller caller account
516+ * @param isDisplayVm true to display the imported VM
517+ * @param keyboard keyboard distribution for the imported VM
518+ * @param accountId account ID
519+ * @param userId user ID
520+ * @param serviceOffering service offering for the imported VM
521+ * @param sshPublicKey ssh key for the imported VM
522+ * @param hostName the name for the imported VM
523+ * @param hypervisorType hypervisor type for the imported VM
524+ * @param customParameters details for the imported VM
525+ * @param powerState power state of the imported VM
526+ * @param networkNicMap network to nic mapping
527+ * @return the imported VM
528+ * @throws InsufficientCapacityException in case of errors
529+ */
530+ UserVm importVM (final DataCenter zone , final Host host , final VirtualMachineTemplate template , final String instanceNameInternal , final String displayName , final Account owner , final String userData , final Account caller , final Boolean isDisplayVm , final String keyboard ,
507531 final long accountId , final long userId , final ServiceOffering serviceOffering , final String sshPublicKey ,
508532 final String hostName , final HypervisorType hypervisorType , final Map <String , String > customParameters ,
509533 final VirtualMachine .PowerState powerState , final LinkedHashMap <String , List <NicProfile >> networkNicMap ) throws InsufficientCapacityException ;
0 commit comments