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()
{
'publicKeyBase64': 'string',
'privateKeyBase64': 'string',
'createdAt': datetime(2015, 1, 1)
}
Response Structure
A base64-encoded public key of the ssh-rsa
type.
A base64-encoded RSA private key.
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