Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Quotas e limites
Este documento descreve os limites de quota do API Gateway.
Limites nas APIs, nas configurações de APIs e nas gateways
O gateway da API aplica os seguintes limites às APIs, às configurações de APIs e aos gateways:
APIs: 50 no total
Configurações de API: 100 por API
Gateways: 50 por região
Se tentar criar uma segunda configuração de API antes de a primeira configuração de API para a mesma API ser concluída, uma ou ambas as configurações podem não estar disponíveis para utilização posterior num gateway.
Limites de taxa de pedidos
Por predefinição, é aplicada uma taxa limite de 10 000 000 de unidades de quota por 100 segundos por projeto de produtor de serviços.
É consumida uma unidade de quota para cada chamada a services.check e para cada operação comunicada por services.report.
Limites de tamanho do payload
Os seguintes limites aplicam-se especificamente ao tamanho máximo da carga útil para o tráfego através de gateways implementados:
Limite
Montante
Tamanho do pedido
32 megabytes
Tamanho da resposta
32 megabytes
Tamanho da resposta da transcodificação de gRPC
1 megabyte
Tamanho do pedido de transcodificação de gRPC
1 megabyte
O streaming não é suportado.
Limites de tamanho do cabeçalho
Os seguintes limites aplicam-se especificamente ao tamanho máximo do cabeçalho para tráfego através de gateways implementados:
Limite
Montante
Tamanho dos cabeçalhos dos pedidos
60 kilobytes
O serviço de back-end chamado pelo API Gateway pode ter limites inferiores.
Como aumentar a quota
Para aumentar as quotas acima das predefinições indicadas nesta página:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 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."]]