Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need additional Documentation for lookupByClass method #115

Open
praveent78 opened this issue Oct 22, 2015 · 2 comments
Open

Need additional Documentation for lookupByClass method #115

praveent78 opened this issue Oct 22, 2015 · 2 comments
Assignees
Labels

Comments

@praveent78
Copy link

**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"))')

@mtimm mtimm added the docs label Nov 12, 2015
@mtimm mtimm self-assigned this Nov 12, 2015
@kecorbin
Copy link

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

mbshields added a commit to mbshields/cobra that referenced this issue Jan 13, 2016
@robphoenix
Copy link

Is this closed by #119?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants