{"type":"model","meta":{"id":"/apps/pubhub/media/edm-api-v2/a2a30bcc9ecab5281b65761ae61df7e0031d5691/22db37d1-bb2c-3814-9940-2f648c7f33ab","swagger":"2.0","info":{"contact":{"email":"devmgmt@cisco.com"},"description":"This is the IoT device management core service. The service is responsible for managing the lifecycle of various IoT gateways and endpoints deployed as part of the Field Area Networks","license":{"name":"Licensing is primarily subscription based. Call Andy now!","url":"https://www.cisco.com"},"termsOfService":"http://swagger.io/terms/","title":"IoT Device Lifecycle Management","version":"4.0.0"},"host":"us.ciscoiot.com","basePath":"/nbapi/edm/v2","schemes":["https"],"securityDefinitions":{"bearerAuth":{"description":"This is the bearer Auth token.","in":"header","name":"Authorization","type":"apiKey"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"apiKeyGenerator":{"$remoteModule":"./config/apikey.js"}}},"spec":{"properties":{"description":{"example":"","type":"string"},"deviceType":{"example":"ir800","type":"string"},"name":{"example":"test1","type":"string"},"templateCli":{"items":{"properties":{"templateType":{"description":"Template Type","enum":["CONFIG","EMBEDDED_AP_CONFIG","ROUTER_TUNNEL_ADD","HER_TUNNEL_ADD","HER_TUNNEL_DELETE","FACTORY_CONFIG","ROUTER_TUNNEL_DELETE","GATEWAY_TUNNEL_ADD","GATEWAY_TUNNEL_DELETE"],"example":"FACTORY_CONFIG","type":"string"},"templateValue":{"description":"Template Value(CLI or Fremmarker template)","example":"\u003c#-- Default BootStrap Configuration --\u003e\n\u003c#if far.isRunningIos()\u003e\n \u003c#assign sublist = far.eid?split(\"+\")[0..1]\u003e\n \u003c#assign pid = sublist[0]\u003e\n \u003c#assign model = pid[0..4]\u003e\n\u003c#if isRollbackConfig?has_content && isRollbackConfig == true\u003e\n.......","type":"string"}},"required":["templateType","templateValue"],"type":"object","$$ref":"#/definitions/CreateCliTemplateItem"},"type":"array"},"templateForm":{"items":{"properties":{"referenceTemplateUuid":{"description":"uuid of the reference template used for variable template","type":"string"},"templateVariables":{"items":{"properties":{"key":{"type":"string"},"templateType":{"items":{"enum":["CONFIG","EMBEDDED_AP_CONFIG","ROUTER_TUNNEL_ADD","HER_TUNNEL_ADD","HER_TUNNEL_DELETE","FACTORY_CONFIG","ROUTER_TUNNEL_DELETE","GATEWAY_TUNNEL_ADD","GATEWAY_TUNNEL_DELETE"],"type":"string"},"type":"array"},"value":{"type":"string"}},"type":"object","$$ref":"#/definitions/TemplateVariablesData"},"type":"array"}},"required":["referenceTemplateUuid","templateVariables"],"type":"object","$$ref":"#/definitions/CreateVariableTemplateItem"},"type":"array"}},"required":["name","description","deviceType"],"type":"object","title":"CreateTemplateRequest"}}