Forum Discussion

Zdenek's avatar
Zdenek
Icon for Cirrostratus rankCirrostratus
Aug 06, 2024

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?

  • Zdenek's avatar
    Zdenek
    Icon for Cirrostratus rankCirrostratus

    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.

    • Jmtaylor's avatar
      Jmtaylor
      Icon for Moderator rankModerator

      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.  

  • Zdenek's avatar
    Zdenek
    Icon for Cirrostratus rankCirrostratus

    Thanks, I know, but for security reasons this is not what I need. I need to find solution for the original question. Thx