Just for my understanding: What is the reason that you need user-defined passwords?
Ideally, you shouldn't even need a password at all. Log in using SSH keys instead, which *can* be provisioned by users. Are you deploying Windows VMs, perhaps? But I suppose you could expose the parameter, then gate the generateRandomPassword() call with a check if password is null. Not sure if this is something that would be accepted in the CloudStack code base though... ________________________________ From: li jerry <div...@hotmail.com> Sent: 09 December 2019 08:12 To: dev@cloudstack.apache.org <dev@cloudstack.apache.org> Subject: 回复: unpublished parameter for resetpasswordforvirtualmachine No. we need to implement user-defined passwords instead of randomly generating them. So I went to look up the code. I see an unopened parameter password on https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/user/vm/ResetVMPasswordCmd.java#L60, I want to enable the password parameter and let the user pass the user-defined password through the API -----邮件原件----- 发件人: Andrija Panic <andrija.pa...@gmail.com> 发送时间: 2019年12月9日 15:06 收件人: dev <dev@cloudstack.apache.org> 主题: Re: unpublished parameter for resetpasswordforvirtualmachine Is that not what you can see in the GUI when the VM is stopped, assuming you created the VM from a password-enabled template? On Mon, 9 Dec 2019, 02:52 li jerry, <div...@hotmail.com> wrote: > Hi All > > I saw an unpublished parameter "password" in the API code > resetpasswordforvirtualmachine Who knows why the password parameter is > not enabled? > > > > -Jerry > >