Cosmic 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 |
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 |