{"type":"api","title":"Get Device Template Variables","meta":{"id":"/apps/pubhub/media/edm-api-v2/a2a30bcc9ecab5281b65761ae61df7e0031d5691/f67a4e01-0023-334a-9a4a-7e606c2ef1a2","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/v1","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":{"description":"Returns a map of device template variable properties for single device object based on current config-group.\u003cbr /\u003e One of the below permissions is needed to invoke this API\u003cbr /\u003e- Tenant Management\u003cbr /\u003e- Troubleshoot Devices\u003cbr /\u003e- Manage Devices\u003cbr /\u003e- Manage Firmware Upgrades\u003cbr /\u003e- Manage Groups\u003cbr /\u003e- Manage Templates\u003cbr /\u003e- View Devices\u003cbr /\u003e- Delete_devices\u003cbr /\u003e- Deactivate Devices\u003cbr /\u003e- Request Device Deactivation/Deletion","operationId":"getDeviceTemplateVariables","parameters":[{"description":"The uuid of the tenant in whose context we are calling the api.","format":"uuid","in":"header","name":"x-tenant-id","required":true,"type":"string"},{"description":"EID for which device template properties to return","in":"path","name":"device_eid","required":true,"type":"string"},{"default":false,"description":"A boolean value which helps in deciding whether to include MgmtProfile , WAN sections in response","in":"query","name":"includeSections","required":false,"type":"boolean"}],"produces":["application/json"],"responses":{"200":{"description":"successful retrieval","schema":{"properties":{"sections":{"items":{"properties":{"enabled":{"example":true,"type":"boolean"},"info":{"items":{"properties":{"border":{"example":null,"type":"boolean"},"closeButton":{"example":null,"type":"boolean"},"filled":{"example":false,"type":"boolean"},"flavor":{"example":null,"type":"string"},"iconType":{"example":"information","type":"string"},"placement":{"example":"right","type":"string"},"text":{"example":"Configure cellular settings to establish connectivity to service provider network","type":"string"},"type":{"example":"tooltip","type":"string"}},"type":"object","$$ref":"#/definitions/TemplateVariablesInfo"},"type":"array"},"items":{"example":null},"key":{"description":"Section Key","example":"cellularsettings","type":"string"},"readOnly":{"example":true,"type":"boolean"},"section":{"description":"Section Key","example":"Cellular","type":"string"},"sections":{"example":null},"showInTree":{"example":true,"type":"boolean"},"showToggle":{"example":false,"type":"boolean"},"templateType":{"description":"Template Type","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"],"example":"CONFIG","type":"string"},"type":"array"}},"type":"object","$$ref":"#/definitions/TemplateVariablesSection"},"type":"array"}},"type":"object","$$ref":"#/definitions/TemplateVariablesResponse"}},"400":{"description":"Bad request","schema":{"description":"Specifies the error that occurred during the request.","example":{"code":"10000","message":"Short message about the error","meta":"more information about that error"},"properties":{"code":{"description":"The error code that occurred in application level.","type":"number"},"message":{"description":"A user readable message that describes the error in details.","type":"string"},"meta":{"description":"Contains more information about the error message. For example when a validation error occurs, this field describes the fields that were invalid and the validation error that occurred. The content of this object can vary based on the type of error.\n","type":"object"}},"required":["code","message"],"type":"object","$$ref":"#/definitions/error"}},"401":{"description":"Unauthorized","schema":{"example":"Unauthorized","type":"string"}},"403":{"description":"Forbidden","schema":{"example":"Permission denied to access the resource","type":"string"}},"404":{"description":"Not found","schema":{"example":"Device not found","type":"string"}}},"summary":"Find device template variable properties based on current configuration-group for device-eid","tags":["devices"],"__originalOperationId":"getDeviceTemplateVariables","security":[{"bearerAuth":[]}],"method":"get","path":"/devices/{device_eid}/templates/variables"}}