Package org.jclouds.cloudstack.features
Interface SSHKeyPairApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SshKeyPaircreateSSHKeyPair(String name)Creates aSshKeyPairwith specified name.voiddeleteSSHKeyPair(String name)Deletes theSSHKeyPairApiwith given name.SshKeyPairgetSSHKeyPair(String name)Retrieves theSSHKeyPairApiwith given name.Set<SshKeyPair>listSSHKeyPairs(ListSSHKeyPairsOptions... options)Returns a list ofSshKeyPairs registered by current user.SshKeyPairregisterSSHKeyPair(String name, String publicKey)Registers aSshKeyPairwith the given name and public kay material.
-
-
-
Method Detail
-
listSSHKeyPairs
@Named("listSSHKeyPairs") @GET @Consumes("application/json") Set<SshKeyPair> listSSHKeyPairs(ListSSHKeyPairsOptions... options)Returns a list ofSshKeyPairs registered by current user.- Parameters:
options- if present, how to constrain the list- Returns:
- Set of
SshKeyPairs matching the current constrains or empty set if no SshKeyPairs found.
-
registerSSHKeyPair
@Named("registerSSHKeyPair") @GET @Consumes("application/json") SshKeyPair registerSSHKeyPair(@QueryParam("name") String name, @QueryParam("publickey") String publicKey)Registers aSshKeyPairwith the given name and public kay material.- Parameters:
name- of the keypairpublicKey- Public key material of the keypair- Returns:
- Created SshKeyPair.
-
createSSHKeyPair
@Named("createSSHKeyPair") @GET @Consumes("application/json") SshKeyPair createSSHKeyPair(@QueryParam("name") String name)Creates aSshKeyPairwith specified name.- Parameters:
name- of the SshKeyPair.- Returns:
- Created SshKeyPair.
-
getSSHKeyPair
@Named("listSSHKeyPairs") @GET @Consumes("application/json") SshKeyPair getSSHKeyPair(@QueryParam("name") String name)Retrieves theSSHKeyPairApiwith given name.- Parameters:
name- name of the key pair- Returns:
- SSH Key pair or null if not found.
-
deleteSSHKeyPair
@Named("deleteSSHKeyPair") @GET void deleteSSHKeyPair(@QueryParam("name") String name)Deletes theSSHKeyPairApiwith given name.- Parameters:
name- name of the key pair
-
-