Get SSH Public Key

Version 4.0.25.18 (latest)

Get the SSH public key

Get the public key created for this instance to identify itself to a remote SSH server.

Request

GET/ssh_public_key
Datatype
Description
Request
HTTP Request

Response

200: SSH Public Key

Datatype
Description
(object)
public_key
string
The SSH public key created for this instance

400: Bad Request

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

429: Too Many Requests

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-08 UTC.