diff options
Diffstat (limited to 'scripts/hostgroup-del2.sh')
-rwxr-xr-x | scripts/hostgroup-del2.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/hostgroup-del2.sh b/scripts/hostgroup-del2.sh new file mode 100755 index 0000000..7364b24 --- /dev/null +++ b/scripts/hostgroup-del2.sh @@ -0,0 +1,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 |