dnac_pnp.api_endpoint_handler module

This module handles API endpoints

generate_api_url(host=None, api_type=None)

This function creates appropriate API URL based on vendor and api call type

Parameters
  • host – (str) IP or FQDN of DNAC

  • api_type – (str) API call type (name) e.g. generate-token, import-device

Returns

(str) API endpoint