apim-cli icon indicating copy to clipboard operation
apim-cli copied to clipboard

apim api get querying remote hosts users individually

Open emmanuel-galindo opened this issue 1 year ago • 4 comments
trafficstars

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?

emmanuel-galindo avatar Mar 08 '24 22:03 emmanuel-galindo

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

rathnapandi avatar Mar 11 '24 19:03 rathnapandi

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?

emmanuel-galindo avatar Mar 11 '24 21:03 emmanuel-galindo