All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
api_v1_topology_l2_vlan_id_get | GET /api/v1/topology/l2/{vlanID} | getL2Topology |
api_v1_topology_l3_topology_type_get | GET /api/v1/topology/l3/{topologyType} | getL3Topology |
api_v1_topology_physical_topology_get | GET /api/v1/topology/physical-topology | getPhysicalTopology |
api_v1_topology_site_topology_get | GET /api/v1/topology/site-topology | getSiteTopology |
api_v1_topology_vlan_vlan_names_get | GET /api/v1/topology/vlan/vlan-names | getVlanNames |
TopologyResult api_v1_topology_l2_vlan_id_get(vlan_id)
getL2Topology
This method is used to obtain the Layer 2 topology by Vlan ID
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.NetworksApi(dnac_api_client.ApiClient(configuration))
vlan_id = 'vlan_id_example' # str | Vlan Name for e.g Vlan1, Vlan23 etc
try:
# getL2Topology
api_response = api_instance.api_v1_topology_l2_vlan_id_get(vlan_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling NetworksApi->api_v1_topology_l2_vlan_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
vlan_id | str | Vlan Name for e.g Vlan1, Vlan23 etc |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TopologyResult api_v1_topology_l3_topology_type_get(topology_type)
getL3Topology
This method is used to obtain Layer 3 device topology by routing protocol type
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.NetworksApi(dnac_api_client.ApiClient(configuration))
topology_type = 'topology_type_example' # str | Type of topology(OSPF,ISIS,etc)
try:
# getL3Topology
api_response = api_instance.api_v1_topology_l3_topology_type_get(topology_type)
pprint(api_response)
except ApiException as e:
print("Exception when calling NetworksApi->api_v1_topology_l3_topology_type_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
topology_type | str | Type of topology(OSPF,ISIS,etc) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TopologyResult api_v1_topology_physical_topology_get(node_type=node_type)
getPhysicalTopology
This method is used to obtain the raw physical topology and filter based on nodeType
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.NetworksApi(dnac_api_client.ApiClient(configuration))
node_type = 'node_type_example' # str | nodeType (optional)
try:
# getPhysicalTopology
api_response = api_instance.api_v1_topology_physical_topology_get(node_type=node_type)
pprint(api_response)
except ApiException as e:
print("Exception when calling NetworksApi->api_v1_topology_physical_topology_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
node_type | str | nodeType | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SiteResult api_v1_topology_site_topology_get()
getSiteTopology
This method is used to obtain the site topology
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.NetworksApi(dnac_api_client.ApiClient(configuration))
try:
# getSiteTopology
api_response = api_instance.api_v1_topology_site_topology_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling NetworksApi->api_v1_topology_site_topology_get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VlanNamesResult api_v1_topology_vlan_vlan_names_get()
getVlanNames
This method is used to obtain the list of vlan names
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.NetworksApi(dnac_api_client.ApiClient(configuration))
try:
# getVlanNames
api_response = api_instance.api_v1_topology_vlan_vlan_names_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling NetworksApi->api_v1_topology_vlan_vlan_names_get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]