pythonpython-2.7sdkciscoapic

cobra.mit.request.QueryError: Unable to process the query, result dataset is too big


I try to run a Python Cobra SDK script to do a query in Cisco ACI APIC database for class l1PhysIf to obtain a port inventory. The code seems to be ok, but when I execute code I get error:

cobra.mit.request.QueryError: Unable to process the query, result dataset is too big

In my code I use a for loop to append data obtained through queries to a empty list.

My fabric has about 6900 ports so query results can be big. How can handle the code for obtain the data?


Solution

  • use paging / pagination to reduce the size of query results