Rate Limiting
Rate limiting options for Universal.
Last updated
Rate limiting options for Universal.
Last updated
Rate limiting requires a license.
PowerShell Universal lets you rate limit requests made to the web server. You can configure rate limiting per endpoint and per period. By default, the client IP address rate limits clients.
Configuration data for rate limits are stored in the ratelimits.ps1
file.
To configure rate limiting, visit the APIs / Rate Limiting page. Click the Add button and define a new rate limit rule.
Rate limiting affects all URLs for the server. If you enforce rate limiting that isn't correctly configured, you can negatively affect the management API.
The method is the HTTP method to for this rule. If you use *
, this rule affects all HTTP methods. You can also select a single method by picking it from the drop down.
The endpoint is the URL that you are rate limiting. You can rate limit all URLs by using a *
. You can define specific URLs by defining the relative path: /api/user
.
This is the number of requests in the time frame before rate limiting kicks in.
This is the period over which the rate limit is counted. For example, if you select a period of 10 minutes and a limit of 100, then up to 100 requests can be made to the method and endpoint you have selected.
To disable rate limiting for particular IP Addresses, clients, and endpoints, add them to the rate limiting allow lists. Find these by clicking the settings button.