search cancel

ApiKey expiration

book

Article ID: 238476

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

Is it possible to set an expiration date on an apiKey entity through PAPI? This is something that is doable when using the Layer7 ClientStore API but I haven't found an equivalent setting on the Portal.

Environment

Release : 5.1

Component : API PORTAL

Resolution

 

There is no expiration date for APIKey

To verify, review the Portal API explorer calls to get AppUID

https://apim-ssg.<portal-domain>:9443/tenant502/api-management/1.0/api-keys

    "results": [

        {

            "applicationUuid": "733d142e-ae53-4975-8847-11f170f9a977",

            "name": "api key 1",

            "apiKey": "l7f7e2f69550cf4829b397d6b6f115bf34",

            "defaultKey": true,

            "status": "ENABLED"

        }

 

 

Then review application with APIKey

https://apim-ssg.<portal_domain>:9443/tenant502/api-management/1.0/applications/733d142e-ae53-4975-8847-11f170f9a977/api-keys

There is not expirations time for APIkey and the only updates can be made with PUT  can update the key's name, secret, OAuth values, and default key setting. 

        {

            "applicationUuid": "733d142e-ae53-4975-8847-11f170f9a977",

            "name": "api key 1",

            "apiKey": "l7f7e2f69550cf4829b397d6b6f115bf34",

            "keySecret": "f4564184af074c3e9b1a3f9db87611c3",

            "defaultKey": true,

            "oauthCallbackUrl": null,

            "oauthScope": "OOB",

            "oauthType": "PUBLIC",

            "status": "ENABLED",

            "keySecretHashed": false,

            "createTs": 1648583445247,

            "modifyTs": 1648583487178

        }