Forum Discussion
F5OS download backup via API
Hi there,
I need to create and download F5OS backup via API.
I checked the documentation I could find, but even I use content-type header as described (first time I see 2 Content-type headers at the HTTP header, but OK) but I keep getting this:
415 (Unsupported media type)
<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
<error>
<error-type>application</error-type>
<error-tag>malformed-message</error-tag>
<error-message>Unsupported media type: multipart/form-data; boundary=--------------------------821439130941430490548847 ; Should be one of: application/yang-data+json, application/yang-data+xml.</error-message>
</error>
</errors>
Looke like Content-type: multipart/form-data is not supported even though the documentation guides me to use it. Anyone knows what to do with this?
Thanks
Zdenek - wondering if you ever figured out how to accomplish this?
If so - would be awesome to share your solution.
If not, perhaps I'll be able to escalate this question?- ZdenekCirrostratus
Hi, well it is bug - Not able to upload/download files from F5OS via /API.
F5OS does not allow to download backup when using /api, only when using /restconf. It is planned to be corrected, but who knows.. It's bit annoying for us, we need to use port 443 and not 8888 and inability to download the file is breaking our workflow..
I will update our solution to work with files being sent from F5 device (as that should work).
So if you escalate/fix this, then you make it easier for other guys going to hit this one. So it's up to you :)
Thanks
Thanks for this Zdenek
I've taken the liberty of looking into an escalation - maybe this will help?Cheers.
- JmtaylorModerator
Hello Zdenek
I looked over this request and see you had opened a support ticket with this question. Currently this is still set to be corrected in future release.
One option is to open up a new ticket with this question and ask if this can be escalated to our product development team.
You can see F5 Velos/rSeries/F5OS code for automating config backup with the new RESTCONF API and Ansible | DevCentral as for example with the endpoint '''/restconf/data/f5-utils-file-transfer:file/export''' you can make F5OS send the backup to a web hosting server after it has been generated.
- ZdenekCirrostratus
Thanks, I know, but for security reasons this is not what I need. I need to find solution for the original question. Thx
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com