VMware Horizon Community
mvogt1
Enthusiast
Enthusiast

Rest API rate limit limitation

 

I think, I'm hitting a rate limit in the rest API and there is no documentation about it.

I run on a host

while true; do
 check_some_value_with_rest_api.py
 sleep 1
done

 

This works for maybe a minute or so.

After that I get 401 Forbidden.

If I stop the script, wait a minute it works, a few times, but not as many times as before.

For me it looks like a "rate" limitation, but I cannot find documentation about it.

Reply
0 Kudos
1 Reply
mvogt1
Enthusiast
Enthusiast

 

After some experiments I found out:

- If the login is successfull you need to logout from the rest API

otherwise you will soon get out of "handles" etc and login does not work anymore.

 

 

 

Reply
0 Kudos