pydo.ssh_keys.get()
Generated on 16 Jun 2025
from pydo
version
v0.11.0
Description
To get information about a key, send a GET request to /v2/account/keys/$KEY_ID
or /v2/account/keys/$KEY_FINGERPRINT
.
The response will be a JSON object with the key ssh_key
and value an ssh_key object which contains the standard ssh_key attributes.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
ssh_key_identifier |
JSON | True | Either the ID or the fingerprint of an existing SSH key. |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.ssh_keys.get(ssh_key_identifier=512190)
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.