Hey!
I want to get list of all the droplets and SSH key ID linked to those droplets. I’m making this call right now
https://developers.digitalocean.com/documentation/v2/#list-all-droplets
I’m getting the droplet data but is there any way I can get the ID of the SSH key linked to the particular droplet?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello, @gaurav587379
To list all of the keys in your account, send a GET request to /v2/account/keys.
The response will be a JSON object with a key set to ssh_keys. The value of this will be an array of key objects, each of which contain the standard key attributes:
RESPONSE HEADERS:
RESPONSE BODY:
Regards, Alex
Hey @gaurav587379,
I don’t think that this is currently possible with the API.
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
Hope that helps! - Bobby.