Apache CloudStack 4.23.0.0 Root Admin API Reference
registerSSHKeyPair
Register a public key in a keypair under a certain name
Request parameters
| Parameter Name | Description | Required |
| name | Name of the keypair | true |
| publickey | Public key material of the keypair | true |
| account | An optional Account for the SSH key. Must be used with domainId. | false |
| domainid | An optional domainId for the SSH key. If the Account parameter is used, domainId must also be used. | false |
| projectid | An optional project for the SSH key | false |
Response Tags
| Response Name | Description |
| id | ID of the SSH keypair |
| account | The owner of the keypair |
| domain | The domain name of the keypair owner |
| domainid | The domain id of the keypair owner |
| fingerprint | Fingerprint of the public key |
| name | Name of the keypair |
| project | The project name of the keypair owner |
| projectid | The project id of the keypair owner |