Package org.jclouds.cloudstack.features
Interface SSHKeyPairApi
public interface SSHKeyPairApi
Provides synchronous access to CloudStack SSHKeyPair features.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateSSHKeyPair
(String name) Creates aSshKeyPair
with specified name.void
deleteSSHKeyPair
(String name) Deletes theSSHKeyPairApi
with given name.getSSHKeyPair
(String name) Retrieves theSSHKeyPairApi
with given name.listSSHKeyPairs
(ListSSHKeyPairsOptions... options) Returns a list ofSshKeyPair
s registered by current user.registerSSHKeyPair
(String name, String publicKey) Registers aSshKeyPair
with the given name and public kay material.
-
Method Details
-
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
Deletes theSSHKeyPairApi
with given name.- Parameters:
name
- name of the key pair
-