REST Resource: licenseAssignments
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: LicenseAssignment
Hình minh hoạ việc chỉ định giấy phép.
Biểu diễn dưới dạng JSON |
{
"kind": string,
"etags": string,
"productId": string,
"userId": string,
"selfLink": string,
"skuId": string,
"skuName": string,
"productName": string
} |
Trường |
kind |
string
Xác định tài nguyên là LicenseAssignment, tức là licensing#licenseAssignment .
|
etags |
string
ETag của tài nguyên.
|
productId |
string
Giá trị nhận dạng riêng biệt của sản phẩm. Để biết thêm thông tin về sản phẩm trong phiên bản API này, hãy xem phần Mã sản phẩm và mã SKU.
|
userId |
string
Địa chỉ email chính hiện tại của người dùng. Nếu địa chỉ email của người dùng thay đổi, hãy sử dụng địa chỉ email mới trong các yêu cầu API. Vì userId có thể thay đổi, nên đừng sử dụng giá trị userId làm khoá cho dữ liệu ổn định. Khoá này có thể bị hỏng nếu địa chỉ email của người dùng hiện tại thay đổi. Nếu userId bị tạm ngưng, trạng thái giấy phép sẽ thay đổi.
|
selfLink |
string
Đường liên kết đến trang này.
|
skuId |
string
Giá trị nhận dạng duy nhất của SKU sản phẩm. Để biết thêm thông tin về các SKU hiện có trong phiên bản API này, hãy xem phần Sản phẩm và SKU.
|
skuName |
string
Tên hiển thị của mã SKU của sản phẩm.
|
productName |
string
Tên hiển thị của sản phẩm.
|
Phương thức |
|
Thu hồi giấy phép. |
|
Lấy giấy phép của một người dùng cụ thể theo SKU sản phẩm. |
|
Chỉ định giấy phép. |
|
Liệt kê tất cả người dùng được chỉ định giấy phép cho một SKU sản phẩm cụ thể. |
|
Liệt kê tất cả người dùng được chỉ định giấy phép cho một SKU sản phẩm cụ thể. |
|
Chỉ định lại SKU sản phẩm của người dùng bằng một SKU khác trong cùng một sản phẩm. |
|
Chỉ định lại SKU sản phẩm của người dùng bằng một SKU khác trong cùng một sản phẩm. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],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. |"]]