Cloud Endpoints 提供了配额功能,这有助于您控制应用调用 API 的速率。通过设置配额,您可以指定用量限额,以免 API 收到调用应用的过多请求。请求过多可能是由于简单的拼写错误所致,也可能是由于低效系统对您的 API 进行不必要的调用所致。无论是何种原因,您都应在来自特定来源的流量达到某一级别时阻止该流量,这是保证 API 总体运行良好所必需的。通过设置配额,您可以确保一个应用不会对使用您的 API 的其他应用产生负面影响。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThis is a Beta feature, governed by the "Pre-GA Offerings Terms," available "as is," and may have limited support, as detailed in the launch stage descriptions.\u003c/p\u003e\n"],["\u003cp\u003eCloud Endpoints provides quota controls that allow you to limit the rate at which applications can call your API.\u003c/p\u003e\n"],["\u003cp\u003eSetting quotas is important for preventing excessive requests and protecting your API's health from a specific application impacting the API performance for other applications.\u003c/p\u003e\n"],["\u003cp\u003eDetailed quota information can be found in the documentation for OpenAPI, gRPC, and Frameworks implementations.\u003c/p\u003e\n"]]],[],null,["# Cloud Endpoints Quotas\n\n| **Beta**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nCloud Endpoints provides quotas, which let you control the rate at which\napplications can call your API. Setting a quota allows you to specify usage\nlimits to protect your API from an excessive number of requests from\ncalling applications. The excessive requests might have been caused\nby a simple typo or from an inefficiently designed system that makes needless\ncalls to your API. Regardless of the cause, blocking traffic from a specific\nsource once it reaches a certain level is necessary for the overall health of\nyour API. By setting a quota, you ensure that one application cannot negatively\nimpact other applications that use your API.\n\nTo learn more about quotas, see the \"About Quotas\" page in the documentation for\nyour API implementation:\n\n- [Endpoints OpenAPI documentation](/endpoints/docs/openapi/quotas-overview)\n- [Endpoints gRPC documentation](/endpoints/docs/grpc/quotas-overview)\n- [Endpoints Frameworks documentation](/endpoints/docs/frameworks/quotas-overview)"]]