cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
36374
Views
30
Helpful
32
Replies

Multi Network Object POST

hamoudud1
Level 1
Level 1

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 

32 Replies 32

Thanks Hkuespert

I was looking for this info. Have you tried using this for access control policies?

 

Joshua Gilmet
Level 1
Level 1

Found a great post on this. Has a wonderful python scripts.

 

 

http://ciscotom.com/creating-multiple-network-objects-using-python-csv/

 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.

 

 

Review Cisco Networking for a $25 gift card