Layer7 API Management

 View Only
Expand all | Collapse all

Creating a policy fragment with given GUID

Jump to Best Answer
  • 1.  Creating a policy fragment with given GUID

    Posted Aug 15, 2017 07:56 AM

    Hi, How can i create a policy fragment with a predefined guid?


    When I create my entire setup from postman and don't provide a guid, I get errors that some policy fragments cannot be found, due to them being created with a new guid each time:


    Below the rest_soap_fragment that was created by posting via restman is shown. it has a new guid, not the same as the service policy above was expecting. I have tried putting guid in the xml.


    <wsp:Policy xmlns:L7p="" xmlns:wsp="" guid="123-132-123-123"


    How can I make sure the connection between fragment and policy works when I create them both via restman?

    Can I force a guid to my liking?



    Best Regards David Karlsson

  • 2.  Re: Creating a policy fragment with given GUID
    Best Answer

    Broadcom Employee
    Posted Aug 15, 2017 12:27 PM



    Good morning. You can create known GUIDs during the creation of the policy and then link in the policy of the service. The key part is that the GUID needs to be 36 bytes in length so the example you provided will not work but something like a12b04c4-9b8d-4d26-b1cb-886dd3874ec3 would. I've attached 2 sample XML payloads for creating a policy with a set GUID and then create a service with a policy include.




    Stephen Hughes

    Director, CA Support