summaryrefslogtreecommitdiffstats
path: root/scripts/json_metadata_methods.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/json_metadata_methods.sh')
-rwxr-xr-xscripts/json_metadata_methods.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/json_metadata_methods.sh b/scripts/json_metadata_methods.sh
new file mode 100755
index 0000000..523f983
--- /dev/null
+++ b/scripts/json_metadata_methods.sh
@@ -0,0 +1,21 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"json_metadata\",
+ \"params\": [
+ [], { \"methodname\": \"all\" }
+ ],
+ \"id\": 0
+}"
+
+curl\
+ -H "Content-Type: application/json"\
+ -H "Accept: applicaton/json"\
+ --delegation always\
+ --negotiate -u :\
+ --cacert /etc/ipa/ca.crt\
+ -d "$json"\
+ -X POST\
+ $IPA_JSON_URL