cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
190
Views
0
Helpful
0
Replies

Complex Filtering issue with Python dnacentersdk

jacob-cuperus
Level 1
Level 1

Hello,

When I the Python SDK use for the method: clients.retrieves_the_list_of_clients_by_applying_complex_filters_while_also_supporting_aggregate_attributes_v1() and I use the following filter: [{"key": "connectionStatus", "operator": "eq", "value": "connected"}]

I get the following error: dnacentersdk.exceptions.MalformedRequest: {'startTime': 1746705865418, 'endTime': 1746707545418, 'views': ['Wireless'], 'filters': [{'key': 'connectionStatus', 'operator': 'eq', 'value': 'connected'}]} is invalid. Reason: data.filters[0].value must be integer.

When I send the same request directly to the API without the use of SDK the call goes trough without errors.

Why does the direct API call work with other types then only integer for value and the SDK ONLY accept integers?

I also created an issue on the Github  page of dnacentersdk. Here is the URL: Filter issue with Retrieves the list of clients by applying complex filters · Issue #212 · cisco-en-programmability/dnacentersdk

With Kind Regards,

Jacob

0 Replies 0