Interface KeyPairApi
-
@Beta @Consumes("application/json") @Path("/os-keypairs") public interface KeyPairApiProvides access to the OpenStack Compute (Nova) Key Pair Extension API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPaircreate(String name)Creates aKeyPair.KeyPaircreateWithPublicKey(String name, String publicKey)Creates aKeyPairwith a public key.booleandelete(String name)Deletes aKeyPair.KeyPairget(String name)Gets a specificKeyPairby name.com.google.common.collect.FluentIterable<KeyPair>list()Lists all Key Pairs.
-
-
-
Method Detail
-
list
@Named("keypair:list") @GET com.google.common.collect.FluentIterable<KeyPair> list()Lists all Key Pairs.- Returns:
- all Key Pairs
-
create
@Named("keypair:create") @POST @Produces("application/json") KeyPair create(String name)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.
-
-