infamousjoeg
8/28/2017 - 5:03 PM

Example of how to create a host using host factory token via curl

Example of how to create a host using host factory token via curl

## 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