REST Resource: customerLicense
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
منبع: مجوز مشتری
نمایندگی JSON |
---|
{
"kind": string,
"state": string,
"applicationId": string,
"editions": [
{
object (Editions )
}
],
"id": string,
"customerId": string
} |
فیلدها |
---|
kind | string نوع منبع API. این همیشه appsmarket#customerLicense است. |
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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده 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. |"]]