Devapps or keys information from API product using management API calls

Not applicable

Hi All,

For an automated script we are making use of the below management API call to fetch keys and devapps associated with an API product.

This command helps us in identifying all the products which doesn't have any association with the keys/devapps in an organisation so that we can delete them. https://api.enterprise.apigee.com/v1/organizations/{org_name}/apiproducts/{apiproduct_name}?query=li....

But the below product documentation link says that this API is being depreciated and will be removed in the future releases. https://docs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/apiproducts/%7Bapiproduct_n....

Can someone please confirm, which apigee version will stop supporting these commands.

Will it get depreciated starting from 4.16.XX version ?

Since the API is being depreciated, is there any alternative command which can give the similar information(i.e keys/apps associated with the API product).

Thanks,

Prasad

Solved Solved
2 2 219
1 ACCEPTED SOLUTION

It gets deprecated with CPS. Not with OPDK.

The alternative is to search through the apps, and find the ones that have access to a particular API product.

Like this (psuedo code obvs):

LIST = ()
apps = GET /v1/o/ORGNAME/apps
foreach APPID : apps
  appdetail = GET /v1/o/ORGNAME/apps/APPID
  if (appdetail includes apiproduct)   
     add APPID to LIST  

See also, this question and answer.

View solution in original post

2 REPLIES 2

Not applicable

Can someone help with the requested information?

It gets deprecated with CPS. Not with OPDK.

The alternative is to search through the apps, and find the ones that have access to a particular API product.

Like this (psuedo code obvs):

LIST = ()
apps = GET /v1/o/ORGNAME/apps
foreach APPID : apps
  appdetail = GET /v1/o/ORGNAME/apps/APPID
  if (appdetail includes apiproduct)   
     add APPID to LIST  

See also, this question and answer.