REST Resource: licenseAssignments
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:LicenseAssignment
JSON 表示法 |
{
"kind": string,
"etags": string,
"productId": string,
"userId": string,
"selfLink": string,
"skuId": string,
"skuName": string,
"productName": string
} |
字段 |
kind |
string
将资源标识为 LicenseAssignment(即 licensing#licenseAssignment )。
|
etags |
string
资源的 ETag。
|
productId |
string
商品的唯一标识符。如需详细了解此版本 API 中的商品,请参阅商品和 SKU ID。
|
userId |
string
用户当前的主电子邮件地址。如果用户的电子邮件地址发生变化,请在 API 请求中使用新电子邮件地址。 由于 userId 可能会发生变化,因此请勿将 userId 值用作永久性数据的键。如果当前用户的电子邮件地址发生变化,此密钥可能会失效。 如果 userId 被暂停,许可状态也会发生变化。
|
selfLink |
string
此网页的链接。
|
skuId |
string
商品 SKU 的唯一标识符。如需详细了解此版本 API 中的可用 SKU,请参阅产品和 SKU。
|
skuName |
string
商品 SKU 的显示名称。
|
productName |
string
商品的显示名称。
|
方法 |
|
撤消许可。 |
|
根据商品 SKU 获取特定用户的许可。 |
|
分配许可。 |
|
列出为特定商品 SKU 分配了许可的所有用户。 |
|
列出为特定商品 SKU 分配了许可的所有用户。 |
|
使用同一商品中的其他 SKU 重新分配用户的商品 SKU。 |
|
使用同一商品中的其他 SKU 重新分配用户的商品 SKU。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# REST Resource: licenseAssignments\n\n- [Resource: LicenseAssignment](#LicenseAssignment)\n - [JSON representation](#LicenseAssignment.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LicenseAssignment\n---------------------------\n\nRepresentation of a license assignment.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etags\": string, \"productId\": string, \"userId\": string, \"selfLink\": string, \"skuId\": string, \"skuName\": string, \"productName\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the resource as a LicenseAssignment, which is `licensing#licenseAssignment`. |\n| `etags` | `string` ETag of the resource. |\n| `productId` | `string` A product's unique identifier. For more information about products in this version of the API, see [Product and SKU IDs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `userId` | `string` The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes. |\n| `selfLink` | `string` Link to this page. |\n| `skuId` | `string` A product SKU's unique identifier. For more information about available SKUs in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `skuName` | `string` Display Name of the sku of the product. |\n| `productName` | `string` Display Name of the product. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|\n| ### [delete](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/delete) | Revoke a license. |\n| ### [get](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/get) | Get a specific user's license by product SKU. |\n| ### [insert](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/insert) | Assign a license. |\n| ### [listForProduct](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/listForProduct) | List all users assigned licenses for a specific product SKU. |\n| ### [listForProductAndSku](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/listForProductAndSku) | List all users assigned licenses for a specific product SKU. |\n| ### [patch](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/patch) | Reassign a user's product SKU with a different SKU in the same product. |\n| ### [update](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/update) | Reassign a user's product SKU with a different SKU in the same product. |"]]