diff options
Diffstat (limited to 'scripts/hbac-remove-sourcehost.sh')
-rwxr-xr-x | scripts/hbac-remove-sourcehost.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/hbac-remove-sourcehost.sh b/scripts/hbac-remove-sourcehost.sh new file mode 100755 index 0000000..3eccb40 --- /dev/null +++ b/scripts/hbac-remove-sourcehost.sh @@ -0,0 +1,24 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"hbac_remove_sourcehost\", + \"params\": [ + [ \"test\" ], + { + \"host\": \"dev.example.com\", + \"hostgroup\": \"staging\" + } + ], + \"id\":0 +}"\ + +curl\ + -H "Content-Type:application/json"\ + -H "Accept:applicaton/json"\ + --negotiate -u :\ + --cacert /etc/ipa/ca.crt\ + -d "$json"\ + -X POST\ + $IPA_JSON_URL |