Layer7 API Management

Expand all | Collapse all

Policy is not synchronized within Gateway and Developer Portal

Jump to Best Answer
  • 1.  Policy is not synchronized within Gateway and Developer Portal

    Posted 02-20-2017 04:49 AM

    We find that there are policies that should not exist in "Available APIs". (see screenshot 1)

     

    The case is like this:

    1. We migrate the policies from environment A (A) to environment B (B).
    2. We find that some of the APIs should not be migrated to (B), such as "CRM - Temp2Hardware_ERP-ITSM", so that we delete all policies and re-migrate those that are intended to be migrated.
    3. We find that we can still choose the API that have been deleted in "Available APIs" (see screenshot 1).
    4. We double-check the gateway and don't find the API "CRM - Temp2Hardware_ERP-ITSM".
    5. We double-check the APIS section in the Developer Portal and don't find the API "CRM - Temp2Hardware_ERP-ITSM"(see screenshot 2)

     

     

    screenshot 1

    screenshot 2

     

     

    We would like to know why would this happen and how can we remove the unwanted policies from "Available APIs".

     

    Thank you in advance on your reply!



  • 2.  Re: Policy is not synchronized within Gateway and Developer Portal
    Best Answer

    Posted 02-21-2017 04:18 PM

    Patrick,

     

    The list of APIs from the 1st screenshot is retrieved from the filesystem, whereas the list of APIs from the 2nd screenshot is retrieved from a call to the API Gateway. The issue you are seeing is what we refer to as "Orphaned APIs", where an API that was removed or changed on the API Gateway still has a reference to it on the filesystem, and thus is still visible in the dropdown (1st screenshot) even though it's not listed on the APIs page (2nd screenshot).

     

    We have a knowledge base article that discusses this, as well as providing instructions on how to remove the orphaned APIs:
    https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.tec0000001409.html

     

    Regards,

    Azad



  • 3.  Re: Policy is not synchronized within Gateway and Developer Portal

    Posted 02-21-2017 09:24 PM

    Thanks Azad,

     

    It solves my problem nicely!

    I also find the standard way to remove an API : Remove APIs - CA API Developer Portal - 3.5 - CA Technologies Documentation 

     

    Best regards,

    Patrick