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

ASA REST API call limited to 100

WVD
Level 1
Level 1

Hey all,

It looks like I'm hitting the limit of my REST API call, see below.

"kind": "collection#NetworkObj",
"selfLink": "https://x.x.x.x/api/objects/networkobjects/",
"rangeInfo": {
"offset": 0,
"limit": 100,
"total": 110
},

Is there a workaround for this? Can I increase the limit? If so, how?

Thank you.

1 Accepted Solution

Accepted Solutions

Claudia de Luna
Spotlight
Spotlight

 

I believe what you are running into is pagination.  Pretty common in REST APIs in order to manage what is returned.

Have you seen this section in the documentation?  If the link below does not get you to the right section just search for "pagin"


Sorting and Paginating Query Results

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/2-x/rest_cfg/2_1_x/b_Cisco_APIC_REST_API_Configuration_Guide/b_Cisco_APIC_REST_API_Configuration_Guide_chapter_01.html#concept_ACBD6DDCEDE64FCF9DAE8134123C8F3C

 

View solution in original post

3 Replies 3

Claudia de Luna
Spotlight
Spotlight

 

I believe what you are running into is pagination.  Pretty common in REST APIs in order to manage what is returned.

Have you seen this section in the documentation?  If the link below does not get you to the right section just search for "pagin"


Sorting and Paginating Query Results

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/2-x/rest_cfg/2_1_x/b_Cisco_APIC_REST_API_Configuration_Guide/b_Cisco_APIC_REST_API_Configuration_Guide_chapter_01.html#concept_ACBD6DDCEDE64FCF9DAE8134123C8F3C

 

Thanks again @Claudia de Luna. Based on the total value I've created a loop that will pull down requests by adjusting the offset value. This has worked a treat. The script looks ugly but it works!

Hi @WVD,  I'm happy that helped.  Thats exactly what I do!  Not ugly if it gets the job done!