datacenter / cobra

Cobra - Python bindings for the ACI REST API
Other
88 stars 41 forks source link

Need additional Documentation for lookupByClass method #115

Open praveent78 opened 8 years ago

praveent78 commented 8 years ago

**queryparams indicates that a dictionary needs to be passed. However, there is more to this as Timm explained to me over Jabber. Additional documentation is needed to help clear the confusion to not use a dictionary in the raw form.

For example: if I want to query a tenant with the filter on Name.

Incorrect Query I tried: moDir.lookupByClass("fvTenant", parentDn= "uni", {'name':'Tenant1'})

Correct Query: moDir.lookupByClass("fvTenant", propFilter='and(eq(fvTenant.name, "Tenant1"))')

kecorbin commented 8 years ago

+1 on this. Thanks for raising this issue @praveent78 this helped me work through same.

robphoenix commented 7 years ago

Is this closed by #119?