Original Message:
Sent: Thu February 06, 2025 07:40 AM
From: Kumar .
Subject: Best Practices for Managing User-Defined Policies and Extensions in API Connect
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
Original Message:
Sent: Thu February 06, 2025 02:03 AM
From: Kumar .
Subject: Best Practices for Managing User-Defined Policies and Extensions in API Connect
Hello All,
Can anyone support me on this topic?
------------------------------
Kumar
Original Message:
Sent: Wed February 05, 2025 10:57 AM
From: Kumar .
Subject: Best Practices for Managing User-Defined Policies and Extensions in API Connect
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
------------------------------