org.jclouds.cloudstack.features
Interface SSHKeyPairClient


public interface SSHKeyPairClient

Provides synchronous access to CloudStack SSHKeyPair features.

Author:
Vijay Kiran
See Also:

Method Summary
 SshKeyPair createSSHKeyPair(String name)
          Creates a SshKeyPair with specified name.
 void deleteSSHKeyPair(String name)
          Deletes the SSHKeyPairClient with given name.
 SshKeyPair getSSHKeyPair(String name)
          Retrieves the SSHKeyPairClient with given name.
 Set<SshKeyPair> listSSHKeyPairs(ListSSHKeyPairsOptions... options)
          Returns a list of SshKeyPairs registered by current user.
 SshKeyPair registerSSHKeyPair(String name, String publicKey)
          Registers a SshKeyPair with the given name and public kay material.
 

Method Detail

listSSHKeyPairs

Set<SshKeyPair> listSSHKeyPairs(ListSSHKeyPairsOptions... options)
Returns a list of SshKeyPairs 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

SshKeyPair registerSSHKeyPair(String name,
                              String publicKey)
Registers a SshKeyPair with the given name and public kay material.

Parameters:
name - of the keypair
publicKey - Public key material of the keypair
Returns:
Created SshKeyPair.

createSSHKeyPair

SshKeyPair createSSHKeyPair(String name)
Creates a SshKeyPair with specified name.

Parameters:
name - of the SshKeyPair.
Returns:
Created SshKeyPair.

getSSHKeyPair

SshKeyPair getSSHKeyPair(String name)
Retrieves the SSHKeyPairClient with given name.

Parameters:
name - name of the key pair
Returns:
SSH Key pair or null if not found.

deleteSSHKeyPair

void deleteSSHKeyPair(String name)
Deletes the SSHKeyPairClient with given name.

Parameters:
name - name of the key pair


Copyright © 2009-2012 jclouds. All Rights Reserved.