Loading

How to find unused client applications in Anypoint Platform?

Date de publication: Mar 2, 2024
Tâche

GOAL

As per the Organization Limits,  Anypoint Platform has a limitation of 10000 client applications per root organization, it might be important to find client applications that are not in use, especially since it is not possible to increase this limit.
While the definition of "in use" might differ for your organization, in this guide we consider a client application if it has no active contract(s) with any API in the organization.
This guide will provide the API calls that can be used to manually create a report of unused client applications or they can be used for automating this task too.
Étapes

The following endpoints belong to the API Platform REST API, please make sure that you are using an organization admin account for the following calls.

1) Query all client applications
GET <https://anypoint.mulesoft.com/apiplatform/repository/v2/organizations/{rootOrgId}/applications>?targetAdminSite=true
You might need to call this endpoint multiple times with limit and offset parameters to get all client applications.
By default, this endpoint only returns the client applications that belong to the user calling the endpoint, however, by adding the targetAdminSite=true parameter, an organization administrator user can query all client applications.

2) Query client applications that have an active contract with any API
GET <https://anypoint.mulesoft.com/apiplatform/repository/v2/organizations/{rootOrgId}/apis/versions/contracts/applications>

3) Compare the two lists to find the client applications that exist but have no active contract
To compare the lists, you could use for example Dataweave's Arrays module.

NOTES

Manage Client Applications and Contracts
Numéro d’article de la base de connaissances

001116542

 
Chargement
Salesforce Help | Article