org.jclouds.openstack.nova.v2_0.extensions
Interface KeyPairApi


@Beta
public interface KeyPairApi

Provides access to the OpenStack Compute (Nova) Key Pair Extension API.


Method Summary
 KeyPair create(String name)
          Creates a KeyPair.
 KeyPair createWithPublicKey(String name, String publicKey)
          Creates a KeyPair with a public key.
 boolean delete(String name)
          Deletes a KeyPair.
 KeyPair get(String name)
          Gets a specific KeyPair by name.
 com.google.common.collect.FluentIterable<KeyPair> list()
          Lists all Key Pairs.
 

Method Detail

list

@Named(value="keypair:list")
com.google.common.collect.FluentIterable<KeyPair> list()
Lists all Key Pairs.

Returns:
all Key Pairs

create

@Named(value="keypair:create")
KeyPair create(String name)
Creates a KeyPair.

Returns:
the created KeyPair.

createWithPublicKey

@Named(value="keypair:create")
KeyPair createWithPublicKey(String name,
                                  String publicKey)
Creates a KeyPair with a public key.

Returns:
the created KeyPair.

get

@Named(value="keypair:get")
@Nullable
KeyPair get(String name)
Gets a specific KeyPair by name.

Parameters:
name - the name of the KeyPair
Returns:
the specified KeyPair, otherwise null.

delete

@Named(value="keypair:delete")
boolean delete(String name)
Deletes a KeyPair.

Parameters:
name - the name of the KeyPair
Returns:
true if the KeyPair was deleted, otherwise false.


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.