Axway-API-Management-Plus / apim-cli

Axway API-Management CLI - Manage your platform from the command line or with your CI/CD pipeline
Apache License 2.0
43 stars 17 forks source link

apim api get querying remote hosts users individually #462

Open emmanuel-galindo opened 7 months ago

emmanuel-galindo commented 7 months ago

APIM-CLI version

1.14.2

API-Management version

7.7.20231130

Question

Hi, checking the DEBUG of "apim api get" command, it seems to be loading the user details of the remotehosts entries. It does this for each user (/api/portal/v1.4/users/{id}). In our implementation we have a lot of remote hosts defined, added by different users, and it ends up adding a lot of delay for each export we need to do. I wonder if by just calling /api/portal/v1.4/users wouldn't be enough to get what apim-cli needs at this stage?

Or if there's any cache that can be setup for users?

rathnapandi commented 6 months ago

Hi @emmanuel-galindo, Check https://github.com/Axway-API-Management-Plus/apim-cli/wiki/8.4.-Caching.

emmanuel-galindo commented 6 months ago

Hi @rathnapandi but is there any cache, or anything, to improve "apim api get" execution for remote hosts? I guess there are no more caches that could be enabled? or I am not reading anything there to make it faster when iterating "apim api get" many times on the same instance?