Layer7 API Management

 View Only
  • 1.  Templatize Bundle from RESTMAN?

    Posted Nov 02, 2017 09:58 AM

    Hello,

     

    Is it possible to templatize a bundle fetched using RESTMAN API?  I'm considering using the API to perform migrations, but I need template support.  As far as I can tell, the GMU only delivers this support.  GMU doesn't play nice with export bundles because the scheme is different.  Any hints?

     

    Thanks,

     

    Alejandro



  • 2.  Re: Templatize Bundle from RESTMAN?
    Best Answer

    Broadcom Employee
    Posted Nov 02, 2017 03:27 PM

    Hi Alejandro,

    Unfortunately, this is not a feature of the RESTMAN API. It is something that has been discussed internally but not yet scheduled.

     

    What do you mean when you say: "GMU doesn't play nice with export bundles because the scheme is different"? 

    Can you try with a newer version of GMU is you are not using the latest.



  • 3.  Re: Templatize Bundle from RESTMAN?

    Posted Nov 03, 2017 09:44 AM

    Hey Victor,

     

    When I say GMU doesn't play nice with exported bundles from the API, I mean that the document structures are different and GMU isn't able to process it as it.

     

    • Bundles from the API have a document root of "Item" with child elements that GMU doesn't care about... 
    • GMU wants a document root of "Bundle"

     

    The GMU must apply some light transformation to the document to extract the Bundle from the Item/Resource elements.  I tried this by hand and it works as expected.

     

    Really wish the API was able to templatize...

     

    Thanks,

     

    Alejandro