{"type":"api","title":"Download image file by ID from device","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/27d6c440-9d60-38a9-ae4f-017212b48575","info":{"title":"Crosswork ZTP Image Service API","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"description":"This document explains the Crosswork REST APIs that you can use to manage software image files for Zero Touch Provisioning (ZTP) devices."},"security":[{"bearerAuth":[]}],"tags":[{"name":"Device Platform APIs","description":"List of Device Platform APIs."},{"name":"Image APIs","description":"List of Image APIs."}],"x-parser-conf":{"overview":{"markdownPath":"reference/EMF/ztp-image-service-api-overview.md"}},"openapi":"3.0.1","servers":[{"url":"/crosswork/ztpimage/v1"}],"securitySchemes":{"bearerAuth":{"description":"Security definition details.","in":"header","name":"Authorization","type":"apiKey"}}},"spec":{"parameters":[{"description":"image Id","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Cisco device serial number","in":"header","name":"X-cisco-serial*","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"type":"string","format":"binary","example":"0110101000101"}}},"description":"OK. The request was successful. The result is contained in the response body."},"401":{"description":"Unauthorized. The request has not been applied because it lacks valid authentication credentials for the target resource."},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request."},"404":{"description":"Not Found. The client made a request for a resource that does not exist."}},"tags":["Device Platform APIs"],"operationId":"downloadImageFromDeviceByImageIdUsingGET","summary":"Download image file by ID from device","description":"This API downloads image file by image id, and is meant to be used from Cisco devices.","__originalOperationId":"downloadImageFromDeviceByImageIdUsingGET","security":[{"bearerAuth":[]}],"method":"get","path":"/device/file/{id}"}}