download_default_key_pair

Lightsail.Client.download_default_key_pair()

Downloads the regional Amazon Lightsail default key pair.

This action also creates a Lightsail default key pair if a default key pair does not currently exist in the Amazon Web Services Region.

See also: AWS API Documentation

Request Syntax

response = client.download_default_key_pair()
Return type
dict
Returns
Response Syntax
{
    'publicKeyBase64': 'string',
    'privateKeyBase64': 'string',
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --
    • publicKeyBase64 (string) --

      A base64-encoded public key of the ssh-rsa type.

    • privateKeyBase64 (string) --

      A base64-encoded RSA private key.

    • createdAt (datetime) --

      The timestamp when the default key pair was created.

Exceptions

  • Lightsail.Client.exceptions.ServiceException
  • Lightsail.Client.exceptions.InvalidInputException
  • Lightsail.Client.exceptions.NotFoundException
  • Lightsail.Client.exceptions.OperationFailureException
  • Lightsail.Client.exceptions.AccessDeniedException
  • Lightsail.Client.exceptions.AccountSetupInProgressException
  • Lightsail.Client.exceptions.UnauthenticatedException