Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Step-by-Step Configuration and Troubleshooting Best Practices for the NGFW, NGIPS and AMP Technologies A Visual Guide to the Cisco Firepower Threat Defense (FTD)
Community Member

Get all members of network group in API

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
Highlighted
Community Member

Re: Get all members of network group in API

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.
1 REPLY
Highlighted
Community Member

Re: Get all members of network group in API

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.
236
Views
0
Helpful
1
Replies
CreatePlease to create content