Rob & Martin,

Thanks.  This is a great resource.  Is there a way to generate sample
JSONs for each command?  For instance, when I make a call to
user_search, I use the following:

String lookupjson =
"{\"method\":\"batch\",\"params\":[[{\"method\":\"user_show\",\"params\":[[\""
+ userID + 
"\"],{\"all\":true,\"rights\":true}]},{\"method\":\"pwpolicy_show\",\"params\":[[],{\"user\":\""
+ userID + 
"\",\"all\":true,\"rights\":true}]},{\"method\":\"krbtpolicy_show\",\"params\":[[\""
+ userID + "\"],{\"all\":true,\"rights\":true}]}],{\"version\":\"2.112\"}]}";

This was figured out by reverse engineering the calls from the browser
to IPA Web.  Looking at the API browser its clear that using batch
here is probably overkill.  Based on the api browser I think I can do:

{
  "method":"user_show",
 "params":[
    ["myuser"],
    {
      "all":true,
      "rights":true
    }
 ]
}

Is that accurate?  For the result object, is there something documented?

Thanks

Marc Boorshtein
CTO Tremolo Security
marc.boorsht...@tremolosecurity.com
(703) 828-4902


On Wed, Dec 2, 2015 at 2:53 AM, Martin Babinsky <mbabi...@redhat.com> wrote:
> On 12/01/2015 07:56 PM, Marc Boorshtein wrote:
>>
>> Great.  Doesn't look like its made it into CentOS yet (still at 7.1).
>> OK, going to go ahead and get it running on Fedora 23.
>>
>> Thanks
>> Marc Boorshtein
>> CTO Tremolo Security
>> marc.boorsht...@tremolosecurity.com
>> (703) 828-4902
>>
>>
>> On Tue, Dec 1, 2015 at 1:42 PM, Rob Crittenden <rcrit...@redhat.com>
>> wrote:
>>>
>>> Marc Boorshtein wrote:
>>>>>
>>>>>
>>>>> IPA 4.2 has an experimental API browser in the GUI, IPA Server -> API
>>>>> browser.
>>>>>
>>>>
>>>> has 4.2 made it into centos 7 yet?  or only in fedora?
>>>>
>>>
>>> It is in RHEL 7.2 and Fedora 23.
>>>
>>> rob
>>
>>
>
> Hi Marc,
>
> the FreeIPA public demo also features an API browser for you to inspect. See
> http://www.freeipa.org/page/Demo and then go to
> https://ipa.demo1.freeipa.org/ipa/ui/#/p/apibrowser/type=command
>
> --
> Martin^3 Babinsky
>
> --
> Manage your subscription for the Freeipa-users mailing list:
> https://www.redhat.com/mailman/listinfo/freeipa-users
> Go to http://freeipa.org for more info on the project

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Reply via email to