Rate Limiting

Rate limiting options for Universal.

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.

Configuring Rate Limiting

The rate limiting UI will be added in PowerShell Universal 5.3

To configure rate limiting, visit the APIs / Rate Limiting page. Click the Add button and define a new rate limit rule.

Method

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.

Endpoint

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.

Limit

This is the number of requests in the time frame before rate limiting kicks in.

Period

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.

Allow Lists

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.

API

Last updated

Was this helpful?