{"type":"api","title":"Create CLI Template","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/65ee78ac-32f3-329c-b00c-b5d29b6bef36","info":{"title":"UX 1.0 Configuration","description":"Configuration of UX 1.0 device and policy.\n\nIncludes API operations for the following:\n- Managing original SD-WAN device configurations and policy configurations\n- Device templates and feature templates\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Configuration - Template Master"],"description":"Create CLI template\u003cbr\u003e\u003cbr\u003e\u003cbr\u003eNote: In a multitenant vManage system, this API is only available in the Provider view.","operationId":"createCLITemplate","requestBody":{"description":"Create template request","content":{"application/json":{"schema":{"type":"object"},"examples":{"Template":{"description":"Template","value":{"templateName":"vSmartConfigurationTemplate","templateDescription":"Config template for vSmarts","deviceType":"vsmart","templateConfiguration":"system\n host-name {{Hostname}}\n gps-location latitude {{gps-latitude}}\n gps-location longitude {{gps-longitude}}\n system-ip {{System-IP}}\n site-id {{Site-ID}}\n organization-name \"Cisco Sy1 - 19968\"\n vbond vbond.cisco.com\n aaa\n auth-order local radius tacacs\n usergroup basic\n task system read write\n task interface read write\n !\n usergroup netadmin\n !\n usergroup operator\n task system read\n task interface read\n task policy read\n task routing read\n task security read\n !\n user admin\n password $6$YsNdljyTklJyRlUZ$u.vOqeMSUbzfc.aWBty9OIovNCxlUASviwfgXO2bTCJV5ddUoV7EG8Q3EA3Yl0aMv./GnJLPPbjC6uQPjtwVo.\n !\n !\n logging\n disk\n enable\n !\n !\n !\n omp\n no shutdown\n send-path-limit 8\n send-backup-paths\n graceful-restart\n !\n banner\n login \"Cisco SD-WAN/Viptela dCloud Demo V2\"\n !\n !\n vpn 0\n dns 198.18.1.1 secondary\n dns 198.18.1.254 primary\n host vbond.cisco.com ip 198.18.1.11 198.18.1.21\n interface eth0\n ip address {{Tunnel-IP-Address}}\n ipv6 dhcp-client\n tunnel-interface\n allow-service dhcp\n allow-service dns\n allow-service icmp\n allow-service sshd\n allow-service netconf\n no allow-service ntp\n no allow-service stun\n !\n no shutdown\n !\n ip route 0.0.0.0/0 {{Default GW}}\n !\n vpn 512\n !","factoryDefault":false,"configType":"file"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"},"examples":{"Template Id":{"description":"Template Id","value":{"templateId":"81b558c9-f575-4255-ac11-2e5437be1ea0"}}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"method":"post","path":"/template/device/cli"}}