OpenLMI documentation suite

Jan Synacek jsynacek at redhat.com
Wed Oct 2 06:00:59 UTC 2013


On 10/01/2013 07:37 PM, Russell Doty wrote:
> Excellent work!
> 
> I was looking at the Account Provider, specifically page
> http://jsafrane.fedorapeople.org/openlmi-storage/scratch/doc/admin/all/clones/openlmi-providers/src/account/doc/source/usage.html#list-users
> 
> In the example there is extensive us of name/value pairs. I can't find
> where the available names and allowed values are documented; can you
> point me to this?
> 
> Thanks,
> Russ
> 

It's the old way how filtering was done (it should still work). The key
parameter should be a property name of the instance/class you query, the value
parameter should be its value.

There is a bit of documentation about it at [1].

In the recent lmishell, the named parameters have been replaced by python
dictonaries. Instead of writing

c.root.cimv2.LMI_Account.first_instance(key="name", value="root")

you can use

c.root.cimv2.LMI_Account.first_instance({"name": "root"})

[1] https://fedorahosted.org/openlmi/wiki/shell/class#Filtering

Cheers,
-- 
Jan Synacek
Software Engineer, Red Hat


More information about the openlmi-devel mailing list