Layer7 API Management

 View Only
  • 1.  Bulk Configuration of Listen Ports via Script on L7 API GW

    Posted Nov 14, 2019 10:14 AM
    Hello,
    I am setting up a Layer7 Gateway in our system for the first time and at this time, there are around 400+ unique ports that have to be configured on the Gateway. Currently, this can be done via the Policy Manager GUI, but it would require quite an effort.
    Hence, is it possible to use a SQL script to bulk insert the respective records/port into connector and connector_property tables instead of going through a GUI. If it is, then what values should be used as the primary key in the connector table.

    Thanks in Advance for helping out!

    ------------------------------
    Thank you very much,
    Chaya Pothuraju.
    ------------------------------


  • 2.  RE: Bulk Configuration of Listen Ports via Script on L7 API GW
    Best Answer

    Broadcom Employee
    Posted Nov 14, 2019 11:23 AM
    The safest way to do this is to use the restman service. You can post information for additional ports as XML to the listenPorts resource. This will likely involve some amount of coding/scripting to generate the XML from a template and post it using curl or similar.

    ------------------------------
    Jay MacDonald - Adoption Architect - Broadcom API Management (Layer 7)
    ------------------------------



  • 3.  RE: Bulk Configuration of Listen Ports via Script on L7 API GW

    Posted Nov 14, 2019 11:32 AM
    Thanks for the advice Jay. I will go through the RestMan service and will write a bash script to generate the CURL commands.

    ------------------------------
    Thank you very much,
    Chaya Pothuraju.
    ------------------------------