summaryrefslogtreecommitdiffstats
path: root/scripts/hostgroup-del2.sh
blob: 7364b24aa25611cf51fb374bce34ce4d4ee87f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh +x

. ./include.sh

json="{
    \"method\": \"hostgroup_del\",
    \"params\": [
        [ \"staging\" ],
        { }
    ],
    \"id\":0
}"

curl\
  -H "Content-Type:application/json"\
  -H "Accept:applicaton/json"\
  --negotiate -u :\
  --cacert /etc/ipa/ca.crt\
  -d "$json"\
  -X POST\
  https://dev.example.com/ipa/json