v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

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.

post/#X-Amz-Target=Lightsail_20161128.DownloadDefaultKeyPair

Headers

X-Amz-Target'Lightsail_20161128.DownloadDefaultKeyPair' required

Request body

DownloadDefaultKeyPairRequest required

Response

Success

publicKeyBase64string

A base64-encoded public key of the <code>ssh-rsa</code> type.

privateKeyBase64string

A base64-encoded RSA private key.

createdAtstring date-time

The timestamp when the default key pair was created.