Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 2.38 KB

files_api_rate_limits.md

File metadata and controls

51 lines (40 loc) · 2.38 KB
stage group info type
Create
Source Code
To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
reference

Rate limits on Repository files API (FREE SELF)

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.

Prerequisite:

  • You must have administrator access to the instance.

To override the general user and IP rate limits for requests to the Repository files API:

  1. On the left sidebar, expand the top-most chevron ({chevron-down}).
  2. Select Admin Area.
  3. Select Settings > Network.
  4. Expand Files API Rate Limits.
  5. Select the checkboxes for the types of rate limits you want to enable:
    • Unauthenticated API request rate limit
    • Authenticated API request rate limit
  6. If you selected unauthenticated:
    1. Select the Max unauthenticated API requests per period per IP.
    2. Select the Unauthenticated API rate limit period in seconds.
  7. If you selected authenticated:
    1. Select the Max authenticated API requests per period per user.
    2. Select the Authenticated API rate limit period in seconds.

Related topics