사용량 한도 및 할당량
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
한도와 할당량은 리셀러 API를 부적절한 방식으로 사용하는 자동 프로세스로부터 Google 인프라를 보호합니다. API의 과도한 요청은 무해한 오타로 인해 발생할 수도 있고, 불필요한 API 호출을 하는 비효율적으로 설계된 시스템으로 인해 발생할 수도 있습니다. 원인과 무관하게 Google Workspace 시스템을 전반적으로 정상 상태로 유지하려면 특정 소스의 트래픽이 일정 수준에 도달할 때 트래픽을 차단해야 합니다. 이를 통해 한 개발자의 행위가 더 큰 커뮤니티에 부정적인 영향을 미치지 않도록 할 수 있습니다.
API 요청 실패
API 요청이 실패할 가능성은 낮지만, 실패할 경우 애플리케이션은 HTTP 상태 코드 응답을 수신합니다. 403
상태 코드에는 잘못된 입력에 관한 오류 정보가 있고 503
HTTP 상태 코드에는 초과된 API 할당량을 나타내는 오류 정보가 있습니다. 이러한 응답을 통해 맞춤 애플리케이션이 이러한 오류를 감지하고 적절한 조치를 취할 수 있습니다.
시간 기반 오류
시간 기반 오류 (스레드당 N초 동안 최대 N개)의 경우, 특히 503
상태 코드 오류의 경우 코드가 예외를 포착하고 지수 백오프 알고리즘을 사용하여 실패한 호출을 재시도하기 전에 약간의 지연 시간을 기다리는 것이 좋습니다. 한 스레드의 리셀러 API 예시는 5초 동안 기다린 후 실패한 호출을 다시 시도하는 것입니다. 요청이 성공하면 다른 스레드에 대해 이 패턴을 반복합니다. 두 번째 요청이 성공하지 않으면 호출이 성공할 때까지 애플리케이션에서 요청 빈도를 줄여야 합니다. 예를 들어 초기 5초 지연 시간을 10초로 늘리고 실패한 호출을 다시 시도합니다. 또한 재시도 한도를 결정합니다.
예를 들어 애플리케이션이 사용자에게 오류를 반환하기 전에 지연 시간을 다르게 하여 요청을 5~7회 재시도합니다.
한도
API 한도 카테고리 |
한도 |
구독 purchaseOrderId |
이 속성은 최대 80개의 일반 텍스트 문자를 허용합니다. |
구독 maxResults |
maxResults 쿼리 문자열은 1~100개의 결과를 가질 수 있습니다.
기본값은 결과 20개입니다.
|
전송 토큰 (customerAuthToken ) |
고객의 이전 토큰은 생성된 후 30일 동안 유효합니다.
|
고객의 최대 사용자 수 |
계약에 따라 최대 사용자 수는 50,000명 또는 리셀러 계약에 정의된 최대 사용자 수 중 하나입니다.
|
승인되지 않은 요청 |
Google에서는 Reseller API에 대한 승인되지 않은 요청을 허용하지 않습니다.
인증 토큰이 제공되지 않으면 요청이 승인되지 않은 것으로 간주됩니다. 자세한 내용은 인증 및 승인에 대해 알아보기를 참고하세요.
|
기타 유형의 한도
기타 유형의 한도 |
제한사항 및 가이드라인 |
데이터 형식 |
데이터 형식은 JavaScript 객체 표기법JSON입니다.
JSON은 임의의 데이터 구조를 나타내는 방법을 제공하는 일반적인 인터넷 형식입니다. JSON은 언어에 완전히 독립적인 텍스트 형식으로, C, C++, C#, Java, JavaScript, Perl, Python 등 C 계열 언어 프로그래머에게 친숙한 규칙을 사용합니다.
|
시간 형식 |
모든 날짜 시간은 밀리초 단위의 에포크 변환기에 있습니다. 이 형식은 정기 결제 생성 시간, 요금제의 약정 시작 및 종료 시간, 30일 무료 체험 종료 시간에 적용됩니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[],[],null,["# Usage limits and quotas\n\n\u003cbr /\u003e\n\nLimits and quotas protect the Google infrastructure from an automated process\nthat uses the Reseller API in an inappropriate way. Excessive requests from\nan API might result from a harmless typo, or might result from an inefficiently\ndesigned system that makes needless API calls. Regardless of the cause,\nblocking traffic from a specific source when it reaches a certain level is\nnecessary for the overall health of the Google Workspace system. It ensures that\none developer's actions can not negatively impact the larger community.\n\nAPI request failures\n--------------------\n\nIn the unlikely event that your API request fails, your application receives an\nHTTP status code response. A status code of `403` has error\ninformation about incorrect input and an HTTP status code of `503`\nhas error information indicating which API quotas have been exceeded. These\nresponses let your custom application detect these errors and take appropriate\naction.\n\nTime-based errors\n-----------------\n\nFor all errors that are time based (maximum of N things for N seconds per\nthread), especially the `503` status code errors, we recommend that\nyour code catch the exception and by using\nan\n[exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\nalgorithm, wait for a small delay before retrying the failed call. A\nReseller API example for one thread\nis to wait 5 seconds and retry the failed call. If the request is successful,\nrepeat this pattern for the other threads. If the second request isn't\nsuccessful, your application should scale back on the frequency of the request\nuntil a call is successful. For example, increase the initial 5 second delay\nto 10 seconds and retry your failed call again. Also, decide on a retry limit.\nFor example retry a request 5 to 7 times with different delay times before\nyour application returns an error to the user.\n\nLimits\n------\n\n| API limit categories | Limits |\n|----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Subscription `purchaseOrderId` | This property accepts up to 80 plain text characters. |\n| Subscription `maxResults` | The `maxResults` query string can be 1 - 100 results. The default is 20 results. |\n| Transfer Token (`customerAuthToken`) | A customer's transfer token is valid for 30 days after it's generated. |\n| Maximum number of users for a customer | Depending on your contract, the maximum number of users can either be 50,000 or the maximum defined in your reseller contract. |\n| Unauthorized requests | Google doesn't allow unauthorized requests to the Reseller API. A request is considered unauthorized if no authorization token is provided. For more information, see [Learn about authentication \\& authorization](/workspace/guides/auth-overview). |\n\nOther types of limits\n---------------------\n\n| Other types of limits | Limitations and guidelines |\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data format | The data format is in the JavaScript Object Notation [JSON](https://wikipedia.org/wiki/JSON). \u003cbr /\u003e \u003cbr /\u003e JSON is a common internet format that provides a method of representing arbitrary data structures. JSON is a text format that is completely language-independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, and Python. |\n| Time format | All date times are in the [Epoch converter](https://www.epochconverter.com/) in milliseconds. This format applies to the values for the subscription creation time, a plan's commitment start and end times, and a 30 day free trial's end time. |"]]