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

Creating FMC portobjectgroups

mwqawasmeh
Level 1
Level 1

Hi,

 

Is it possible to create port object group and specify the value for the protocol port objects in the same request ? 

 

for example, below is the basic request data for creating port object group: 

 

Is there any way to create the group members in the same request ?

 

{
  "name": "portgroup_obj1",
  "objects": [
    {
      "type": "ICMPV4Object",
      "id": "ICMPV4ObjectUUID"
    },
    {
      "id": "ICMPV6ObjectUUID",
      "type": "ICMPV6Object"
    },
    {
      "id": "ProtocolPortObjectUUID",
      "type": "ProtocolPortObject"
    }
  ],
  "type": "PortObjectGroup"
}

 

1 Reply 1

You can do this through a python script to initiate multiple requests in a
for loop to send the first request to create the object and upon 200OK you
can read the object to verify it and populate the ports.

If you use postman you can create object and assign ports in same post
request
Review Cisco Networking for a $25 gift card