REST Resource: customerLicense
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
المرجع: ترخيص العميل
تمثيل JSON |
{
"kind": string,
"state": string,
"applicationId": string,
"editions": [
{
object (Editions )
}
],
"id": string,
"customerId": string
} |
الحقول |
kind |
string
نوع مورد واجهة برمجة التطبيقات. هذا دائمًا ما يكون appmarket#customer License.
|
state |
string
حالة ترخيص العميل. أحد الخيارات التالية:
ACTIVE : يمتلك العميل ترخيصًا صالحًا.
UNLICENSED : ليس هناك ترخيص: إما أن هذا العميل لم يثبّت تطبيقك مطلقًا، أو أن جهة أخرى قد حذفه.
|
applicationId |
string
رقم تعريف التطبيق المتوافق مع طلب البحث عن الترخيص هذا.
|
editions[] (deprecated) |
object (Editions )
(متوقّف نهائيًا)
|
id |
string
تمثّل هذه السمة رقم تعريف ترخيص العميل.
|
customerId |
string
اسم نطاق العميل.
|
إصدارات
تمثيل JSON |
{
"editionId": string,
"seatCount": integer,
"assignedSeats": integer
} |
الحقول |
editionId (deprecated) |
string
(متوقّف نهائيًا)
|
seatCount (deprecated) |
integer
(متوقّف نهائيًا)
|
assignedSeats (deprecated) |
integer
(متوقّف نهائيًا)
|
الطُرق |
|
يحصل على حالة الترخيص للعميل لتحديد ما إذا كان بإمكانه الوصول إلى تطبيق معيّن. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe CustomerLicense resource provides information about a customer's license status for a specific application.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details such as the license state (ACTIVE or UNLICENSED), application ID, customer ID, and license ID.\u003c/p\u003e\n"],["\u003cp\u003eThe Editions section within the resource, containing editionId, seatCount, and assignedSeats, is deprecated.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the license status for a customer using the \u003ccode\u003eget\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `CustomerLicense` resource represents a customer's license for an application. Key information includes the license `state` (ACTIVE or UNLICENSED), the associated `applicationId`, and the customer's `customerId`. It contains a unique `id` for the license. The `kind` always indicates `appsmarket#customerLicense`. The `get` method retrieves the license status, indicating whether the customer has access to the application. Several fields regarding `editions`, such as `editionId`, `seatCount`, and `assignedSeats` are deprecated.\n"],null,["# REST Resource: customerLicense\n\nResource: CustomerLicense\n-------------------------\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"state\": string, \"applicationId\": string, \"editions\": [ { object (/workspace/marketplace/reference/rest/v2/customerLicense#Editions) } ], \"id\": string, \"customerId\": string } ``` |\n\n| Fields ||\n|-------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` The type of API resource. This is always appsmarket#customerLicense. |\n| `state` | `string` The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license: either this customer has never installed your application, or else has deleted it. |\n| `applicationId` | `string` The ID of the application corresponding to this license query. |\n| `editions[]` **(deprecated)** | `object (`[Editions](/workspace/marketplace/reference/rest/v2/customerLicense#Editions)`)` | This item is deprecated! (Deprecated) |\n| `id` | `string` The ID of the customer license. |\n| `customerId` | `string` The domain name of the customer. |\n\nEditions\n--------\n\n| JSON representation |\n|---------------------------------------------------------------------------------|\n| ``` { \"editionId\": string, \"seatCount\": integer, \"assignedSeats\": integer } ``` |\n\n| Fields ||\n|----------------------------------|---------------------------------------------------|\n| `editionId` **(deprecated)** | `string` | This item is deprecated! (Deprecated) |\n| `seatCount` **(deprecated)** | `integer` | This item is deprecated! (Deprecated) |\n| `assignedSeats` **(deprecated)** | `integer` | This item is deprecated! (Deprecated) |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| ### [get](/workspace/marketplace/reference/rest/v2/customerLicense/get) | Gets the status of a license for a customer to determine if they have access for a given app. |"]]