It Meme wrote:
Hi.
Would be any online examples for calling the IPA JSON APIs from a java
application?
I gather from the lack of response that there aren't a lot of java users.
Here is a sample of what a batch command would look like in json:
{"method":"batch","params":[[
{"method":"user_show","params":[["admin"],{"all":true}]}
],{}],"id":1}
You can see it in action with:
$ curl -H "Content-Type:application/json" -H "Accept:application/json"
-H "Referer: https://ipa.example.com/ipa/json" -H "Accept-Language:en"
--negotiate -u : --cacert /etc/ipa/ca.crt -d @req.json
https://ipa.example.com/ipa/json
A simple user-show admin looks like:
{"method":"user_show","params":[["admin"],{"all":true}]}
How you do this in Java I have no idea.
rob
_______________________________________________
Freeipa-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-users