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 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
      • create

        Keypair create​(String name,
                       @Nullable
                       String publicKey)
        Generates or imports a keypair
        Parameters:
        name - the name of the keypair
        publicKey - the public key (optional), Null indicates one will be generated
        Returns:
        the newly created keypair