Skip to content

Latest commit

 

History

History
194 lines (139 loc) · 7.7 KB

IntentHealthApi.md

File metadata and controls

194 lines (139 loc) · 7.7 KB

dnac_api_client.IntentHealthApi

All URIs are relative to http://localhost

Method HTTP request Description
dna_intent_api_v1_client_health_get GET /dna/intent/api/v1/client-health Client Health
dna_intent_api_v1_network_health_get GET /dna/intent/api/v1/network-health Network Health
dna_intent_api_v1_site_hierarchy_get GET /dna/intent/api/v1/site-hierarchy Site Hierarchy

dna_intent_api_v1_client_health_get

ClientHealthResponse dna_intent_api_v1_client_health_get(start_time, end_time, runsync=runsync, timeout=timeout)

Client Health

Get overall Client Health along with beak down on categories of wired and wireless

Example

  • 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.IntentHealthApi(dnac_api_client.ApiClient(configuration))
start_time = 'start_time_example' # str | Start Time
end_time = 'end_time_example' # str | End Time
runsync = False # bool | Enable this parameter to execute the API and return a response synchronously (optional) (default to False)
timeout = 10.0 # float | During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated (optional) (default to 10.0)

try:
    # Client Health
    api_response = api_instance.dna_intent_api_v1_client_health_get(start_time, end_time, runsync=runsync, timeout=timeout)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IntentHealthApi->dna_intent_api_v1_client_health_get: %s\n" % e)

Parameters

Name Type Description Notes
start_time str Start Time
end_time str End Time
runsync bool Enable this parameter to execute the API and return a response synchronously [optional] [default to False]
timeout float During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated [optional] [default to 10.0]

Return type

ClientHealthResponse

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dna_intent_api_v1_network_health_get

dna_intent_api_v1_network_health_get(start_time, end_time, runsync=runsync, timeout=timeout)

Network Health

Network Devices and their health by category

Example

  • 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.IntentHealthApi(dnac_api_client.ApiClient(configuration))
start_time = 'start_time_example' # str | Start Time
end_time = 'end_time_example' # str | End Time
runsync = False # bool | Enable this parameter to execute the API and return a response synchronously (optional) (default to False)
timeout = 10.0 # float | During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated (optional) (default to 10.0)

try:
    # Network Health
    api_instance.dna_intent_api_v1_network_health_get(start_time, end_time, runsync=runsync, timeout=timeout)
except ApiException as e:
    print("Exception when calling IntentHealthApi->dna_intent_api_v1_network_health_get: %s\n" % e)

Parameters

Name Type Description Notes
start_time str Start Time
end_time str End Time
runsync bool Enable this parameter to execute the API and return a response synchronously [optional] [default to False]
timeout float During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated [optional] [default to 10.0]

Return type

void (empty response body)

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dna_intent_api_v1_site_hierarchy_get

SiteHierarchyResponse dna_intent_api_v1_site_hierarchy_get(timestamp, runsync=runsync, timeout=timeout)

Site Hierarchy

Site Hierarchy along with health Info

Example

  • 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.IntentHealthApi(dnac_api_client.ApiClient(configuration))
timestamp = 'timestamp_example' # str | Timestamp 
runsync = False # bool | Enable this parameter to execute the API and return a response synchronously (optional) (default to False)
timeout = 10.0 # float | During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated (optional) (default to 10.0)

try:
    # Site Hierarchy
    api_response = api_instance.dna_intent_api_v1_site_hierarchy_get(timestamp, runsync=runsync, timeout=timeout)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IntentHealthApi->dna_intent_api_v1_site_hierarchy_get: %s\n" % e)

Parameters

Name Type Description Notes
timestamp str Timestamp
runsync bool Enable this parameter to execute the API and return a response synchronously [optional] [default to False]
timeout float During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated [optional] [default to 10.0]

Return type

SiteHierarchyResponse

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]