api endpoint to list user ssh keys

_blsk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 17, 2024

I'm using the api to list user keys and while there is at least 1 ssh key i get empty result.
My use case is still for bitbucket server (DC) API

curl -w "%{http_code}" -u "root:$BITBUCKET_ADMIN_TOKEN" \
-X GET 'https://bitbucket.dev.smurf.com/rest/ssh/latest/keys?userName=my-user'

{"size":0,"limit":25,"isLastPage":true,"values":[],"start":0}200


Also, the docs omit the information, that the API endpoint only works with local Bitbucket admin account used for authorization.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events