Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Quote e limiti
Questo documento descrive i limiti di quota per API Gateway.
Limiti relativi ad API, configurazioni API e gateway
API Gateway applica i seguenti limiti alle API, alle configurazioni API e ai gateway:
API - 50 in totale
Configurazioni API - 100 per API
Gateway - 50 per regione
Se provi a creare una seconda configurazione API prima del completamento della prima configurazione API per la stessa API, una o entrambe le configurazioni potrebbero non essere disponibili per un uso successivo in un gateway.
Limiti di frequenza delle richieste
Per impostazione predefinita si applica una limitazione di frequenza di 10.000.000 di unità di quota ogni 100 secondi per progetto di producer di servizi.
Viene consumata un'unità di quota per ogni chiamata a services.check
e per ogni operazione segnalata tramite
services.report.
Limiti di dimensione del payload
I seguenti limiti si applicano in modo specifico alla dimensione massima del payload per il traffico tramite gateway di cui è stato eseguito il deployment:
Limite
Quantità
Dimensioni richiesta
32 megabyte
Dimensione della risposta
32 megabyte
Dimensioni della risposta della transcodifica gRPC
1 megabyte
Dimensione della richiesta di transcodifica gRPC
1 megabyte
Lo streaming non è supportato.
Limiti di dimensione dell'intestazione
I seguenti limiti si applicano in modo specifico alla dimensione massima dell'intestazione per il traffico tramite gateway di cui è stato eseguito il deployment:
Limite
Importo
Dimensioni delle intestazioni delle richieste
60 kilobyte
Il servizio di backend chiamato da API Gateway potrebbe avere limiti inferiori.
Come aumentare la quota
Per aumentare le quote oltre i valori predefiniti elencati in questa pagina:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-03 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."]]