الحدود القصوى والحصص للاستخدام
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تعمل الحدود والحصص على حماية بنية Google الأساسية من العمليات التلقائية التي تستخدم Reseller API بطريقة غير ملائمة. قد تنتج الطلبات المفرطة من واجهة برمجة التطبيقات عن خطأ إملائي غير ضار، أو قد تنتج عن نظام مصمّم بشكل غير فعّال يرسل طلبات غير ضرورية إلى واجهة برمجة التطبيقات. وبغض النظر عن السبب، من الضروري حظر عدد الزيارات الواردة من مصدر معيّن عندما يصل إلى مستوى معيّن، وذلك للحفاظ على سلامة نظام Google Workspace بشكل عام. ويضمن هذا الإجراء ألا تؤثر إجراءات أحد المطوّرين سلبًا في المنتدى الأوسع.
تعذُّر طلب البيانات من واجهة برمجة التطبيقات
في حال تعذّر تنفيذ طلب البيانات من واجهة برمجة التطبيقات، سيتلقّى تطبيقك استجابة تتضمّن رمز حالة HTTP. يشير رمز الحالة 403
إلى معلومات خطأ بشأن الإدخال غير الصحيح، بينما يشير رمز الحالة 503
إلى معلومات خطأ توضّح حصص واجهة برمجة التطبيقات التي تم تجاوزها. تتيح هذه الردود لتطبيقك المخصّص رصد هذه الأخطاء واتّخاذ الإجراء المناسب.
الأخطاء المستندة إلى الوقت
بالنسبة إلى جميع الأخطاء المستندة إلى الوقت (بحد أقصى N عنصر لمدة N ثانية لكل سلسلة محادثات)، وخاصةً أخطاء رمز الحالة 503
، ننصح بأن يرصد الرمز البرمجي الاستثناء وأن ينتظر فترة تأخير قصيرة قبل إعادة محاولة إجراء المكالمة التي تعذّر إجراؤها، وذلك باستخدام خوارزمية التراجع الأسي. أحد الأمثلة على استخدام Reseller API في سلسلة محادثات واحدة هو الانتظار لمدة 5 ثوانٍ ثم إعادة محاولة إجراء المكالمة التي تعذّر إجراؤها. في حال نجاح الطلب، كرِّر هذا النمط لسلاسل التعليمات الأخرى. إذا لم ينجح الطلب الثاني، يجب أن يخفّض تطبيقك معدّل تكرار الطلب إلى أن ينجح أحد الطلبات. على سبيل المثال، يمكنك زيادة مدة التأخير الأوّلي البالغة 5 ثوانٍ إلى 10 ثوانٍ وإعادة محاولة إجراء المكالمة التي تعذّر إجراؤها. عليك أيضًا تحديد حدّ لعدد محاولات إعادة التشغيل.
على سبيل المثال، أعِد محاولة تنفيذ الطلب من 5 إلى 7 مرات مع فترات تأخير مختلفة قبل أن يعرض تطبيقك رسالة خطأ للمستخدم.
الحدود
فئات حدود واجهة برمجة التطبيقات |
الحدود |
الاشتراك purchaseOrderId |
تقبل هذه السمة ما يصل إلى 80 حرفًا من النص العادي. |
الاشتراك maxResults |
يمكن أن تتضمّن سلسلة طلب البحث maxResults من نتيجة واحدة إلى 100 نتيجة.
القيمة التلقائية هي 20 نتيجة.
|
الرمز المميز للنقل (customerAuthToken ) |
يكون رمز النقل الخاص بالعميل صالحًا لمدة 30 يومًا بعد إنشائه.
|
الحدّ الأقصى لعدد المستخدمين للعميل |
استنادًا إلى عقدك، يمكن أن يكون الحد الأقصى لعدد المستخدمين 50,000 أو الحد الأقصى المحدّد في عقد الموزّع.
|
الطلبات غير المصرّح بها |
لا تسمح Google بالطلبات غير المصرّح بها إلى Reseller API.
يُعدّ الطلب غير مصرّح به إذا لم يتم تقديم رمز تفويض. لمزيد من المعلومات، يُرجى الاطّلاع على مزيد من المعلومات حول المصادقة والتفويض.
|
أنواع أخرى من الحدود
أنواع أخرى من الحدود |
القيود والإرشادات |
تنسيق البيانات |
يكون تنسيق البيانات بتنسيق JavaScript Object Notation
JSON.
JSON هو تنسيق شائع على الإنترنت يوفّر طريقة لتمثيل بنى البيانات العشوائية. JSON هو تنسيق نصي مستقل تمامًا عن اللغة، ولكنه يستخدم اصطلاحات مألوفة لمبرمجي عائلة لغات C، بما في ذلك C وC++ وC# وJava وJavaScript وPerl وPython.
|
تنسيق الوقت |
تكون جميع التواريخ والأوقات في أداة تحويل الحقبة
بالملّي ثانية. ينطبق هذا التنسيق على قيم وقت إنشاء الاشتراك ووقتَي بدء وانتهاء مدة الاشتراك في الخطة ووقت انتهاء الفترة التجريبية المجانية لمدة 30 يومًا.
|
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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. |"]]