Last active
August 28, 2017 17:41
-
-
Save infamousjoeg/6b436bcdec7a46d04dde27d9f1ce3c24 to your computer and use it in GitHub Desktop.
Example of how to create a host using host factory token via curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Machine identity Example (-k due to self-signed cert on Conjur Master) | |
token=hostfactorytokenvalue | |
hostid="jenkins/masters/master01" | |
baseurl="https://devops" | |
curl --request POST -k --data-urlencode id=$hostid --header "Authorization: Token token=\"$token\"" $baseurl/api/host_factories/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment