Retrieving SSH Deploy Key using API


#1

Hello,

I’m currently developing a small bash script using the GitLab API that automatically creates a new repository as well as associates a deploy key to this new repository. I do not have admin access to the group which I’m developing for, however, I do have access to the needed deploy keys, so I cannot use the “List all deploy keys” functionality in the API. Is there a way to either retrieve an SSH Deploy Key using its title, or to list all of the deploy keys and their IDs that I have access to? Thank you.

For reference, I’m using this part of the API Documentation: https://docs.gitlab.com/ce/api/deploy_keys.html