Hi, RegisterSSHKey API is used when we have SSH key pair and if we want to register that key pair in Cloudstack. So when we provide public key it just calculates fingerprint and registers the SSH key pair. CS doesn't know about private key. It just returns null as private key.
Our doc is showing private key because we include that in SSHKeyPairResponse object. -Harikrishna On 22-Aug-2013, at 2:21 PM, Sebastien Goasguen <run...@gmail.com> wrote: > Hi folks, > > I am troubled by: > http://cloudstack.apache.org/docs/api/apidocs-4.1/user/registerSSHKeyPair.html > > It says that it returns the private key . This can't be right. > > I tried it with cloudmonkey and it does not return the private key (does not > know it..) > > Unless I am missing something with what this api is supposed to do, I will > file an apidoc bug. > > -Sebastien