Reply

cannot filter extattrs

[ Edited ]
Member
Posts: 1
132     0

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

Community Manager
Community Manager
Posts: 212
133     0

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'"
Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin