02-07-2017 04:09 AM - edited 03-12-2019 06:16 AM
Dear Support,
am trying to use API to push a bulk of configuration to Firepower 6.1 or 6.2 but without success, i tried to POST multi Network Object as shown below :
under network i POST the below configuration:
https://xxx.xxx.xxx.xxx/api/fmc_config/v1/domain/e233abec-e0f2-11e3-2321-6d9ed49b625f/object/networks
Body:
-----------------------
{
"name":"testing",
"type":"Network",
"description": "testing",
"value": "2.2.90.0/24"
},
{
"name":"testing2",
"type":"Network",
"description": "testing2",
"value": "2.2.91.0/24"
}
----------------
it return with Syntax errors.
can you please provide me with right way to POST multi network Object or any kind of configuration through REST API.
BR,
Hamoud Hamdan
Solved! Go to Solution.
07-20-2019 06:06 PM
Thanks Hkuespert
I was looking for this info. Have you tried using this for access control policies?
05-01-2019 12:16 PM
Found a great post on this. Has a wonderful python scripts.
http://ciscotom.com/creating-multiple-network-objects-using-python-csv/
08-14-2020 06:01 AM
This is a good post so just wanted to contribute as I was lost with this issue as well.
Looking at the script above I reviewed the API documentation there seems to be a parameter that you pass where you could just post your objects in one Post rather than multiple.
Adding ?bulk=true to the end of your post URL should enable you to import multiple object which are comma separated.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide