cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1169
Views
0
Helpful
8
Replies

vManage API

OCT
Level 1
Level 1

Has anyone had success in calling generate bootstrap API ​/system​/device​/bootstrap​/download​/{id} ?

1 Accepted Solution

Accepted Solutions

Is your content set for application/octet-stream, has a bootstrap configuration has been generated for this device? 

 
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

8 Replies 8

Whats the error @OCT 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

{
    "error": {
        "message": "Bootstrap config file not found",
        "code": "VBOOTSTRAP0004",
        "details": "Bootstrap file not found for id ",
        "type": "error"
    }
 
i believe my syntax is not correct error 400 on postman 
 
 

What version are you running? 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Platform Version:

20.12.3.1

 

 

I think this is your issue as noted in https://developer.cisco.com/docs/sdwan/20-13/sd-wan-vmanage-v20-13-api-change-log/ they changed the content type to application/json and added property id (string) from the API JSON file looking at the AO sandbox which is running 20.10 it did use `application/octet-stream`. This a significant change because it means, the endpoint previously returned a binary file (octet-stream) which was likely the actual bootstrap configuration as a zip file.

Basically the change is 
  • Version pre 20.13:
  • Handles binary data (application/octet-stream)
  • Saves the response as a zip file
  • Uses streaming to handle potentially large file
  • Version 20.13:
  • Handles JSON data
  • Returns a Python dictionary
  • Sets Accept header to application/json
 
But this said, your error does not 100% output what i would expect, although i saw this a few time and the errors on sd-wan are not always the best. Your error message VBOOTSTRAP0004 with "Bootstrap file not found" suggests that your code is making and 
id parameter you're passing is either empty (notice how the error message shows "id " with nothing after it) or doesn't correspond to an existing bootstrap configuration file in the system.
 
Are you using the content type application/octet-stream and what is the ID you are passing?
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

I have tried the deviceid and uuid as the id 

Is your content set for application/octet-stream, has a bootstrap configuration has been generated for this device? 

 
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

https://{{vmanage}}:{{port}}/dataservice/template/device/config/attachedconfig?deviceId

i think i will use this for now thank you very much for the quick responses