Package org.openstack4j.api.compute
Interface KeypairService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
KeypairServiceImpl
public interface KeypairService extends RestService
Keypair Service manages SSH Keys within OpenStack Compute (Nova).- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Keypaircreate(String name, String publicKey)Generates or imports a keypairActionResponsedelete(String name)Deletes the keypair by nameKeypairget(String name)Gets the keypair by nameList<? extends Keypair>list()Lists keypairs that are associated with the account making the request
-
-
-
Method Detail
-
list
List<? extends Keypair> list()
Lists keypairs that are associated with the account making the request- Returns:
- the list of keypairs
-
get
Keypair get(String name)
Gets the keypair by name- Parameters:
name- the keypair name- Returns:
- the keypair
-
delete
ActionResponse delete(String name)
Deletes the keypair by name- Parameters:
name- the keypair name- Returns:
- the action response
-
-