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 aSshKeyPairwith specified name.voiddeleteSSHKeyPair(String name) Deletes theSSHKeyPairApiwith given name.getSSHKeyPair(String name) Retrieves theSSHKeyPairApiwith given name.listSSHKeyPairs(ListSSHKeyPairsOptions... options) Returns a list ofSshKeyPairs registered by current user.registerSSHKeyPair(String name, String publicKey) Registers aSshKeyPairwith the given name and public kay material.
-
Method Details
-
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
Deletes theSSHKeyPairApiwith given name.- Parameters:
name- name of the key pair
-