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
商品の一意の ID。このバージョンの API のプロダクトの詳細については、プロダクト ID と 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 Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 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. |"]]