@Beta
@Consumes(value="application/json")
@Path(value="/os-keypairs")
public interface KeyPairApi
| Modifier and Type | Method and Description |
|---|---|
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.
|
@Named(value="keypair:list") @GET com.google.common.collect.FluentIterable<KeyPair> list()
@Named(value="keypair:create") @POST @Produces(value="application/json") KeyPair create(String name)
KeyPair.KeyPair.@Named(value="keypair:create") @POST @Produces(value="application/json") KeyPair createWithPublicKey(String name, String publicKey)
KeyPair with a public key.KeyPair.@Named(value="keypair:get")
@GET
@Path(value="/{name}")
@Consumes(value="application/json")
@Nullable
KeyPair get(@PathParam(value="name")
String name)
KeyPair by name.Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.