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.  Best Practices for Managing User-Defined Policies and Extensions in API Connect

    Posted Wed February 05, 2025 10:57 AM
    Hello Everyone,
     
    We have created a user-defined policy by following the below.
    https://www.ibm.com/docs/en/api-connect/10.0.5.x_lts?topic=apdag-defining-packaging-publishing-global-scoped-policy-api-gateway
     
    and I have choosen
    Step 2, Option B: Package and publish a global-scoped policy as a gateway extension that API Connect manages
     
    However, when we delete the extension from the Cloud Manager Gateway, we observe that the user-defined policies are also being deleted from the DataPower API Connect Gateway Service and the Assembly Palette. However, this does not always happen consistently.
     
     
    What is the correct process for deleting an extension that includes a gateway extension, extensions, and user-defined policies?
     
    The reason behind creating an user defined policy is, we have a script configured in multiple APIs. Whenever we make changes, we must manually open each API and apply the updates.
     
     
    To streamline this process, I created a user-defined policy for that script to configure it within the assembly. My rationale was that if I made any changes to the script, I could directly update the .js file uploaded in file management, and the changes would take effect without manually modifying each API.
     
    But I am not so sure on what if  we have to make changes in the gateway script. What could be the approach to make api refer to the updated  gateway script which is present in the user defined policy. 
     
     
    Is this approach correct? If not, could anyone suggest a more efficient method?



    ------------------------------
    Kumar
    ------------------------------


  • 2.  RE: Best Practices for Managing User-Defined Policies and Extensions in API Connect

    Posted Thu February 06, 2025 02:03 AM

    Hello All,

    Can anyone support me on this topic?



    ------------------------------
    Kumar
    ------------------------------



  • 3.  RE: Best Practices for Managing User-Defined Policies and Extensions in API Connect

    Posted Thu February 06, 2025 07:41 AM
    Edited by Kumar . Fri February 07, 2025 09:19 AM

    Dears,

    How to remove assembly functions and UDP from assembly palette?

    Which is the correct one between the two to create a user-defined policy and what's the difference between both of them?

    https://www.ibm.com/docs/en/api-connect/10.0.5.x_lts?topic=apdag-defining-packaging-publishing-global-scoped-policy-api-gateway
     
     
    https://www.ibm.com/docs/en/api-connect/10.0.x?topic=SSMNED_v10cd/com.ibm.apic.policy.doc/rapic_custpolicies_apigw_define.htm


    Please help with suggestions.
    ------------------------------
    Kumar
    ------------------------------



  • 4.  RE: Best Practices for Managing User-Defined Policies and Extensions in API Connect

    Posted Fri February 07, 2025 11:42 AM

    Dears,

    Can anyone support me with your suggestions?



    ------------------------------
    Kumar
    ------------------------------