Package org.jclouds.cloudstack.features
Interface SSHKeyPairApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SshKeyPair
createSSHKeyPair(String name)
Creates aSshKeyPair
with specified name.void
deleteSSHKeyPair(String name)
Deletes theSSHKeyPairApi
with given name.SshKeyPair
getSSHKeyPair(String name)
Retrieves theSSHKeyPairApi
with given name.Set<SshKeyPair>
listSSHKeyPairs(ListSSHKeyPairsOptions... options)
Returns a list ofSshKeyPair
s registered by current user.SshKeyPair
registerSSHKeyPair(String name, String publicKey)
Registers aSshKeyPair
with the given name and public kay material.
-
-
-
Method Detail
-
listSSHKeyPairs
@Named("listSSHKeyPairs") @GET @Consumes("application/json") Set<SshKeyPair> listSSHKeyPairs(ListSSHKeyPairsOptions... options)
Returns a list ofSshKeyPair
s registered by current user.- Parameters:
options
- if present, how to constrain the list- Returns:
- Set of
SshKeyPair
s 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 aSshKeyPair
with 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 aSshKeyPair
with specified name.- Parameters:
name
- of the SshKeyPair.- Returns:
- Created SshKeyPair.
-
getSSHKeyPair
@Named("listSSHKeyPairs") @GET @Consumes("application/json") SshKeyPair getSSHKeyPair(@QueryParam("name") String name)
Retrieves theSSHKeyPairApi
with 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 theSSHKeyPairApi
with given name.- Parameters:
name
- name of the key pair
-
-