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

Get all members of network group in API

brentestep
Level 1
Level 1

Hi! I am trying to get all members of a specific network group through the FMC API but when I run the query, it is only returning the hosts manually entered into the group. It doesnt seem to return the nested network groups. Here is the example:

 

GET 'https://<IP>/api/fmc_config/v1/domain/<DOMAIN>/object/networkgroups/<NETWORKGROUP>'

 

In this case, it only returns about 43 hosts instead of the 242+ objects that are actually in the group. Any suggestions on how I can get these "nested" objects?

1 Accepted Solution

Accepted Solutions

brentestep
Level 1
Level 1
Digging into this a little more, it appears it has nothing to do with nested groups. From within the network group, it appeared you can build out hosts or add "literals". In this case, in the response, there are two sections. One is literals and the other is objects.

View solution in original post

1 Reply 1

brentestep
Level 1
Level 1
Digging into this a little more, it appears it has nothing to do with nested groups. From within the network group, it appeared you can build out hosts or add "literals". In this case, in the response, there are two sections. One is literals and the other is objects.
Review Cisco Networking for a $25 gift card