v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.

The get instance access details operation supports tag-based access control via resource tags applied to the resource identified by instance name. For more information, see the Amazon Lightsail Developer Guide.

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

Headers

X-Amz-Target'Lightsail_20161128.GetInstanceAccessDetails' required

Request body

instanceNamestring required

The name of the instance to access.

protocol'ssh' | 'rdp'

The protocol to use to connect to your instance. Defaults to <code>ssh</code>.

Response

Success