API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Thu June 29, 2023 12:25 AM

    In IBM API Gateway, the user agents are automatically deleted frequently, Please suggest how can we resolve this? We are using IBM API Gateway v10.



    ------------------------------
    Nrusingha
    ------------------------------


  • 2.  RE: User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Thu June 29, 2023 03:15 AM

    Hiya,

    Please provide the exact APIC and datapower versions being used. "v10" isnt really descriptive enough.

    What user agents are being deleted?

    Can you provide some more information please ?



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Fri August 04, 2023 03:20 AM

    Hi Chris, Apologies for late reply..
    We are using the APIC v10.0.1.5 and the proxy policies are deleting frequently.

    The proxy are configured in APIC domain.
    Also we are using API Gateway v5c.

    Please let me know if you need any more details.



    ------------------------------
    Nrusingha Sahoo
    Nrusingha
    ------------------------------



  • 4.  RE: User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Fri June 30, 2023 10:48 AM

    Hello Nrusingha,

    to add a permanent Connection Policy (comparable to User Agents) at an API Gateway on a Datapower you have to create a Config File (.cfg) which you should include into a gateway extension as described here: Extending the Gateway server behavior - IBM Documentation

    The Config File should inculde some commands which are run each time the API Gateway configuration is refreshed by API Connect. To configure your Connection Policy the config file should contain something like the following:

    top; configure terminal
    
    apigw "<Your API Gateway name>"
        no proxy
        proxy <API Endpoint> <Proxy-Host> <Proxy-Port>
        ...
    exit

    and your manifest.json File should include the following lines:

    {
        "extension": {
            "properties": {
                ....
            },
            "files": [
                {
                    "filename": "<Your name of the zipped .cfg-File>.zip",
                    "deploy": "immediate",
                    "type": "extension"
                },
                ...
            ]
        }
    }


    ------------------------------
    Lars Ottawa
    ------------------------------



  • 5.  RE: User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Mon July 10, 2023 09:19 AM

    To amplify Lars' suggestion .....   Please take a look at:



    ------------------------------
    Ravi Ramnarayan
    Technical Account Manager - Expertise Connect
    IBM
    ------------------------------



  • 6.  RE: User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Fri August 04, 2023 02:04 AM
    Edited by kandula nagababu Fri August 04, 2023 07:08 AM

    Hi,

    I am extending the question with Nrusingha Sahoo,

    Whenever we modify with new URL's and Proxy IP in User agent multiple times, same details need to update in extension also, so we need to modify everytime, this is not good practice right?.



    ------------------------------
    kandula nagababu
    ------------------------------



  • 7.  RE: User Agents are removed automatically in API Gateway for IBM API Connect v10, how can we resolve this?

    Posted Fri August 04, 2023 04:43 AM

    Hello Kandula,

    you're right that you have to republish the gateway extension each time you want to add some URL's and Proxy IP's. This can't be done within the API Connect Manager Web UI. Here you just can add a gateway extension initially.

    After adding an extension to a Gateway you have to use the APIC Toolkit to update the extension.

    Therefore you have to use the following APIC Toolkit (CLI) command:

    apic gateway-extensions:update <YOUR-GATEWAY-EXTENSION.zip> --scope org --org admin --gateway-service <YOUR-API-GATEWAY> --availability-zone <YOUR-AVAILABILITY-ZONE> --server <YOUR-APIC-SERVER> --output -

    You can also read something about configuring the gateway extension in the IBM documentation.



    ------------------------------
    Lars Ottawa
    ------------------------------