Policy creation workflow for Gateway Published API
Article ID: 192219
CA API GatewayCA API Developer Portal
What happens when an Gateway Published API is created from Policy Manager? Which tables are updated in the Portal and Gateway ssg databases.
API Developer Portal 3.5
Service is created on the gateway using Policy Manager
'Set as Portal Managed' assertion is added to policy for the service
A custom module on the gateway watches for policies containing 'Set as Portal Managed' assertion and creates records in generic_entity table with classname = 'com.l7tech.external.assertions.apiportalintegration.server.PortalManagedService' as needed
Portal page /dashboard/apis calls /portalman/1/apis to get a list of services with 'Set as Portal Managed' assertion. This service reads from generic_entity table
When API is enabled on the portal, an XML document is created on the portal which stores the API ID of the service (attribute of 'Set as Portal Managed Service assertion) and other metadata only used by the portal
When an application is added on the portal with a set of APIs. This invokes the gateway service /api/keys/generate to generate a key/secret, adds records to lrsapplication and lrsapikey tables, and then invokes the gateway service /api/keys/register to register the key with the apis. /api/keys/register adds records to generic_entity table with classname = 'com.l7tech.external.assertions.apiportalintegration.server.apikey.manager.ApiKey'
When an organization is assigned an account plan, the gateway service /portalman/1/account/plans is invoked to store the organization ids associated with the account plan. This information is stored in generic_entity with classname = 'com.l7tech.external.assertions.apiportalintegration.server.accountplan.AccountPlan' with the ids XML having the ids of the associated orgs
Account plans are stored as XML documents on portal. id and rate limits are sent to the gateway using /portalman/1/account/plans and are stored in generic_entity table with classname = 'com.l7tech.external.assertions.apiportalintegration.server.accountplan.AccountPlan'
API Plans are stored as XML documents on portal. id and rate limits are sent to the gateway using /portalman/1/api/plans and are stored in generic_entity table with classname = ' com.l7tech.external.assertions.apiportalintegration.server.apiplan.ApiPlan'
Organizations are stored in cmsorganization table on the portal. Only the orgid is transmitted to the gateway.
Users are stored in cmsusers table on the portal. This is not transmitted to the gateway.