Interface KeyPairApi
@Beta
@Consumes("application/json")
@Path("/os-keypairs")
public interface KeyPairApi
Provides access to the OpenStack Compute (Nova) Key Pair Extension API.
- 
Method Details
- 
list
Lists all Key Pairs.- Returns:
 - all Key Pairs
 
 - 
create
Creates aKeyPair.- Returns:
 - the created 
KeyPair. 
 - 
createWithPublicKey
@Named("keypair:create") @POST @Produces("application/json") KeyPair createWithPublicKey(String name, String publicKey) Creates aKeyPairwith a public key.- Returns:
 - the created 
KeyPair. 
 - 
get
@Named("keypair:get") @GET @Path("/{name}") @Consumes("application/json") @Nullable KeyPair get(@PathParam("name") String name) Gets a specificKeyPairby name. - 
delete
Deletes aKeyPair. 
 -