cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community will be experiencing a downtime on 17/Dec/18 02:20 AM GMT-0600 / 17-Dec 12 AM PST for 15 mins. Sorry for the inconvenience.

102
Views
5
Helpful
2
Replies
Beginner

FMC API Maximum Objects - 1000?

Hi,

I have an FMC with 1260 TCP/UDP protocol objects configured in it. However when I try to pull down all the objects via a python script using a GET request using this URL:

 

https://10.0.0.1/api/fmc_config/v1/domain/12345678-12345678/object/protocolportobjects?limit=2000 (<<notice the 2000 here)

 

Only 1000 objects are extracted.

The script writes the GET data to a file, and in the file is the "links" section:

 

"links": {
        "self": "https://10.232.6.65/api/fmc_config/v1/domain/12345678-12345678/object/protocolportobjects?offset=0&limit=1000" (<<notice the 1000 here)
    }

 

It looks like the FMC changes the 2000 to 1000 and starts using an offset of 0.

I assume I can create a loop in python and get all the objects by changing the offset value and making multiple GET requests, but is it the case the FMC will only allow 1000 objects per GET request. Does anyone know if this is a hardcoded maximum?

Regards

Mark

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Master

Re: FMC API Maximum Objects - 1000?

1000 is the limit in Firepower 6.2.x.

 

https://www.cisco.com/c/en/us/td/docs/security/firepower/622/api/REST/Firepower_Management_Center_REST_API_Quick_Start_Guide_622/objects_in_the_rest_api.html#reference_zmj_lny_1cb

 

They haven't updated that guide for 6.3 yet - it may have changed as they have been working on increasing API functionality a lot.

 

2 REPLIES
Hall of Fame Master

Re: FMC API Maximum Objects - 1000?

1000 is the limit in Firepower 6.2.x.

 

https://www.cisco.com/c/en/us/td/docs/security/firepower/622/api/REST/Firepower_Management_Center_REST_API_Quick_Start_Guide_622/objects_in_the_rest_api.html#reference_zmj_lny_1cb

 

They haven't updated that guide for 6.3 yet - it may have changed as they have been working on increasing API functionality a lot.

 

Highlighted
Beginner

Re: FMC API Maximum Objects - 1000?

Thanks Marvin!!

CreatePlease to create content
Ask the Expert- DMVPN on Cisco routers