Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Kontingente und Limits
In diesem Dokument werden die Kontingente in API Gateway beschrieben.
Limits für APIs, API-Konfigurationen und Gateways
In API Gateway gelten folgende Limits für APIs, API-Konfigurationen und Gateways:
APIs – 50 insgesamt
API-Konfigurationen – 100 pro API
Gateways – 50 pro Region
Wenn Sie versuchen, eine zweite API-Konfiguration zu erstellen, bevor die Erstellung der ersten API-Konfiguration für dieselbe API abgeschlossen ist, sind eine oder beide Konfigurationen möglicherweise nicht für die spätere Verwendung in einem Gateway verfügbar.
Ratenlimits anfordern
Standardmäßig gilt ein Ratenlimit von 10.000.000 Kontingenteinheiten pro 100 Sekunden für jedes Diensterstellerprojekt.
Für jeden Aufruf von services.check und für jeden von services.report aufgezeichneten Vorgang wird jeweils eine Kontingenteinheit verbraucht.
Nutzlastgrößenlimits
Die folgenden Limits gelten speziell für die maximale Nutzlastgröße bei Traffic durch bereitgestellte Gateways:
Grenzwert
Menge
Größe der Anfrage
32 MB
Größe der Antwort
32 MB
Größe der gRPC-Transcodierungsantwort
1 Megabyte
Größe der gRPC-Transcodierungsanfrage
1 Megabyte
Streaming wird nicht unterstützt.
Beschränkungen der Kopfzeilengröße
Die folgenden Limits gelten speziell für die maximale Headergröße bei Traffic durch bereitgestellte Gateways:
Limit
Betrag
Größe der Anfrageheader
60 Kilobyte
Der von API Gateway aufgerufene Back-End-Dienst kann niedrigere Limits haben.
Kontingent erhöhen
So erhöhen Sie die Kontingente über die auf dieser Seite aufgeführten Standardwerte hinaus:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-18 (UTC)."],[[["\u003cp\u003eAPI Gateway enforces limits on the number of APIs (50 total), API configurations (100 per API), and gateways (5 per region).\u003c/p\u003e\n"],["\u003cp\u003eThe default rate limit is 10,000,000 quota units per 100 seconds per service producer project, with one unit consumed per \u003ccode\u003eservices.check\u003c/code\u003e call or \u003ccode\u003eservices.report\u003c/code\u003e operation, though APIs can support higher volumes due to caching.\u003c/p\u003e\n"],["\u003cp\u003ePayload size limits for traffic through deployed gateways are 32 megabytes for both request and response sizes, while gRPC transcoding requests and responses are limited to 1 megabyte each, and streaming is not supported.\u003c/p\u003e\n"],["\u003cp\u003eRequest header size is limited to 60 kilobytes for traffic through deployed gateways, and the backend service may enforce lower limits.\u003c/p\u003e\n"],["\u003cp\u003eQuotas can be increased above the defaults by accessing the Quotas page and submitting a request to edit specific limits.\u003c/p\u003e\n"]]],[],null,["# Quotas and limits\n=================\n\nThis document describes API Gateway's quota limits.\n\nLimits on APIs, API configs, and gateways\n-----------------------------------------\n\nAPI Gateway enforces the following limits on APIs, API configs, and gateways:\n\n- **APIs** - 50 total\n- **API Configs** - 100 per API\n- **Gateways** - 50 per region\n\nIf you attempt to create a second API config before the first API config\ncreation for the same API completes, one or both configs may not be available\nfor later use in a Gateway.\n\nRequest rate limits\n-------------------\n\nA rate limit of 10,000,000 quota units per 100 seconds per service producer project is enforced by default.\nOne quota unit is consumed for each call to [`services.check`](/service-control/reference/rest/v1/services/check)\nand for each operation reported by\n[`services.report`](/service-control/reference/rest/v1/services/report).\n| **Note:** API Gateway employs efficient caching algorithms so it doesn't call Service Control every time your API is called. So while the default limit is 10,000,000 per 100 seconds, your API can support a much higher volume.\n\nPayload size limits\n-------------------\n\nThe following limits apply specifically to max payload size for traffic through deployed gateways:\n\nStreaming is not supported.\n\nHeader size limits\n------------------\n\nThe following limits apply specifically to max header size for traffic through deployed gateways:\n\nThe backend service called by API Gateway may have lower limits.\n\nHow to increase quota\n---------------------\n\nTo increase quotas above the defaults listed on this page:\n\n1. Go to the\n [Quotas page](https://console.cloud.google.com/iam-admin/quotas?orgonly=true&supportedpurview=project&pageState=(%22expandableQuotasTable%22:(%22f%22:%22%255B%257B_22k_22_3A_22Service_22_2C_22t_22_3A10_2C_22v_22_3A_22_5C_22API%2520Gateway%2520API_5C_22_22_2C_22s_22_3Atrue_2C_22i_22_3A_22serviceTitle_22%257D%255D%22)22)).\n\n2. Select the quota(s) you want to modify and click **EDIT QUOTAS** at the top of the page.\n\n3. Supply your user information if prompted, and enter the new quota limit for each quota you selected."]]