Rate limits on Repository files API
- Tier: Free, Premium, Ultimate
- Offering: GitLab Self-Managed
The Repository files API enables you to fetch, create, update, and delete files in your repository. To improve the security and durability of your web application, you can enforce rate limits on this API. Any rate limits you create for the Files API override the general user and IP rate limits.
Define Files API rate limits
Rate limits for the Files API are disabled by default. When enabled, they supersede the general user and IP rate limits for requests to the Repository files API. You can keep any general user and IP rate limits already in place, and increase or decrease the rate limits for the Files API. No other new features are provided by this override.
Prerequisites:
- You must have administrator access to the instance.
To override the general user and IP rate limits for requests to the Repository files API:
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Network.
- Expand Files API Rate Limits.
- Select the checkboxes for the types of rate limits you want to enable:
- Unauthenticated API request rate limit
- Authenticated API request rate limit
- If you selected unauthenticated:
- Select the Max unauthenticated API requests per period per IP.
- Select the Unauthenticated API rate limit period in seconds.
- If you selected authenticated:
- Select the Max authenticated API requests per period per user.
- Select the Authenticated API rate limit period in seconds.
Related topics
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support