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

ASA REST API call limited to 100 (Paginating)

vijai
Level 1
Level 1

REST API Call with limited(100) response:

URL: https://ip_address/api/objects/predefinednetworkservices

Response:

{

"range_Info":{

"offset":"0",

"limits":"100",

"total":"148",

}

"items":["100 indexed data"]

}

 

REST API call Response While using Paginating The Result:

URL: https://ip_address/api/objects/predefinednetworkservices?page=0&page-size=100

response:

{"messages":[{

"level": ""Error,

"code":"INVALID_INPUT",

"details":"INVALID_QUERY_PARAMETER"

}]}

As i was trying to get the missed out data Using PAGINATING the REST call, but the syntax seems to be wrong.

Kindly someone give me a example with the same URL i used. How to get all "N" number of data from the firewall.

Thanks in advance.

1 Reply 1

Alexander Stevenson
Cisco Employee
Cisco Employee

 

Hi @vijai,

I believe the correct API call would be something like:

https://ip_address/api/objects/predefinednetworkservices?order-by=faultInst.severity|desc&page=0&page-size=100

I found this answer on a discussion ASA REST API call limited to 100 where they link to this pagination section.

 

Of course, you may need to adjust or remove the part referencing faultInst.severity if that's what's needed.