- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
cannot filter extattrs
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2021 06:46 AM - edited 09-27-2021 08:27 AM
When I try to filter a call by an extattr, then I get an empty response:
curl -k1 -u user:pw -X GET "https://gridmaster/wapi/v2.11/dtc:lbdn?_return_fields=extattrs&*RequestorOrg:='AD-IB-Groupname'"
Whereas when calling without filter, then I see the extattr:
curl -k1 -u user:pw -X GET "https://gridmaster/wapi/v2.11/dtc:lbdn?_return_fields=extattrs"
The response is:
[ { "_ref": "dtc:lbdn/ZG5zLml...kldC5jaA:lbdn1.example.com", "extattrs": { "RequestorOrg": { "value": "AD-IB-Groupname" } } }, { "_ref": "dtc:lbdn/ZG5zLml...uZXQuY2g:lbdn2.example.com", "extattrs": {} } ]
I checked this page here for searching by extattrs:
https://mygridmaster/wapidoc/additional/extattrsearch.html#extattrs-search
How to search correctly for extattrs?
Re: cannot filter extattrs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2021 05:23 AM
Try using a percent-20-equals instead of just equals, on the _return_fields field.
This means we're asking to add the EA values to the list of fields returned (in addition to the object defaults), instead of just returning the EA values.
curl -k1 -u user:pw -X GET "https://gridmaster/wapi/v2.11/dtc:lbdn?_return_fields%20=extattrs&*RequestorOrg:='AD-IB-Groupname'"