cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
466
Views
0
Helpful
3
Replies

Using REST API within DNA to get list of subnets

Hi Guys,

 

Is it possible to use DNAs REST API to pull all subnets within DNA including the VLAN name?

 

Thanks,

Connor

3 Replies 3

yawming
Cisco Employee
Cisco Employee

Cannot think of an API which gives us all these information. But indirectly I wonder if we can get all interface - /dna/intent/api/v1/interface.

In the response we have IP and IP MASK then apply some logic and programming.
Also /topology/vlan/vlan-names returns the list of VLAN names

 

Basically checking all APIs in Know Your Network section in DNAC API doc may give you some idea.

Many thanks, do you know of a way to pull this info via a report or another feature of DNA? 

 

This feels like a basic task a SDA should be able to do with ease?

 

Best Regards,

Connor

If you search for "pool" in the Developer Toolkit (Platform->Developer Toolkit), you will see the APIs related to the IP Pool configurations.  Perhaps /business/sda/virtualnetwork/ippool or /reserve-ip-subpool will get you what you need.