summaryrefslogtreecommitdiffstats
path: root/scripts/service-add-host.sh
blob: ecc8dfcf31ad8b2438693fccde26f2e79586648b (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh +x

curl\
  -H "Content-Type:application/json"\
  -H "Accept:applicaton/json"\
  --negotiate -u :\
  --cacert /etc/ipa/ca.crt\
  -d '{"method":"service_add_host","params":[["test/dev.example.com@DEV.EXAMPLE.COM"],{"host":"dev.example.com"}],"id":0}'\
  -X POST\
  https://dev.example.com/ipa/json