diff options
Diffstat (limited to 'scripts/hostgroup-member-host.sh')
-rwxr-xr-x | scripts/hostgroup-member-host.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/hostgroup-member-host.sh b/scripts/hostgroup-member-host.sh new file mode 100755 index 0000000..4e30f39 --- /dev/null +++ b/scripts/hostgroup-member-host.sh @@ -0,0 +1,32 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"batch\", + \"params\": [ + [ + { + \"method\": \"host_show\", + \"params\": [ + [ \"dev.example.com\" ], + { + \"all\": true, + \"rigts\": true + } + ] + } + ], + { } + ], + \"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 |