1
Token
source link: https://linuxsuren.github.io/blog/devops/jenkins/api/token/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Token
Token
curl http://localhost:8080/user/admin/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken --header "Authorization: Basic `echo -n admin:1182fc5ef9b28a630986cb50c0319eb9d0 | base64`" -X POST -d 'newTokenName=name'
返回的数据如下所示:
{"status":"ok","data":{"tokenName":"test","tokenUuid":"3a07e7d7-c864-4474-bc3c-d217938e460e","tokenValue":"1123acbf5d3e93e628a38dc0a671cf0194"}}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK