search cancel

About using the "Select App" pulldown of the portal reporting function (Analytics Report)

book

Article ID: 134213

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

Select "Select APP" drom drop menu in "Home > Dsah board View".

It shows "unauthorized" always.

However, the graph shows the application.

The problem occrred in API that Published from Gateway.

"Enable Analytics for Gateway-Published APIs".

https://docops.ca.com/ca-api-developer-portal-enhanced-experience/4-2/en/publishers/manage-apis/publish-apis#PublishAPIs-EnableAnalyticsforGateway-PublishedAPIs

"From the Internal Assertions list, add API Portal Integration Fragment - API Key or API Portal Integration Fragment - OAuth 2.0 snippet to your API service, depending on your method of API protection."

API Portal Integration Fragment-API Key is the policy that was added then

It is not occre in API that Published from Portal.

Also, the APIs of this application is private.

And it does not exceed the limit of account plan.


Environment

Release :

Component : API PORTAL

Resolution

Change the setting value of the "portal.analytics.application.uuid" context variable at line 83 and line 108 of the "API Portal Integration Fragment-API Key" fragment

 before: ${apiKeyRecord.applicationId}

 after : ${apiKeyRecord.id}

The problem here is that there is no variable defined "apiKeyRecord.applicationId" in the assertion at line 41 "Portal Look API Key" and that is why this variable always go as empty from the gateway. So after changing the above policy assertions to use "apiKeyRecord.id" it will reflect the correct application uuid of the api. The customer can go ahead and apply the workaround in their other environments