public class KeypairServiceImpl extends BaseComputeServices implements KeypairService
| Constructor and Description |
|---|
KeypairServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Keypair |
create(String name,
String publicKey)
Generates or imports a keypair
|
ActionResponse |
delete(String name)
Deletes the keypair by name
|
Keypair |
get(String name)
Gets the keypair by name
|
List<? extends Keypair> |
list()
Lists keypairs that are associated with the account making the request
|
public List<? extends Keypair> list()
list in interface KeypairServicepublic Keypair get(String name)
get in interface KeypairServicename - the keypair namepublic ActionResponse delete(String name)
delete in interface KeypairServicename - the keypair namepublic Keypair create(String name, String publicKey)
create in interface KeypairServicename - the name of the keypairpublicKey - the public key (optional), Null indicates one will be generated