I have a jenkins instance which contains multiple credentials in different scope.
How do I get the list of jenkins credentials using curl?
I did try to fetch them using
curl -u [USERNAME]:[PASSWORD] -X GET http://[JENKINS_URL]/credentials/store/system/domain/_/api/json
But I’m getting below output which doesn’t contain creds IDs or names etc.
3326{“class":“com.cloudbees.plugins.credentials.CredentialsStoreAction$DomainWrapper”,“credentials”:[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],“description”:“Credentials that should be available irrespective of domain specification to requirements matching.”,“displayName”:“Global credentials (unrestricted)”,“fullDisplayName”:“System » Global credentials (unrestricted)”,“fullName”:"system/”,“global”:true,“urlName”:“_”}
How do I get the creds IDs and names which I see in Jenkins.