summaryrefslogtreecommitdiffstats
path: root/scripts/json_metadata_methods.sh
blob: 523f9830368b1885a7eb9c78d5363b8fb61446d1 (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\": \"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