Method: labels.permissions.list
HTTP リクエスト
GET https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。ラベル権限が表示されている親ラベル リソース名。形式: labels/{label}
|
クエリ パラメータ
パラメータ |
useAdminAccess |
boolean
ユーザーの管理者認証情報を使用するには、true に設定します。アクセスを許可する前に、サーバーがラベルの管理者であることを確認する。
|
pageSize |
integer
ページごとに返される権限の最大数。デフォルト: 50。 最大: 200。
|
pageToken |
string
返されるページのトークン。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には ListLabelPermissionsResponse
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.labels.readonly
https://www.googleapis.com/auth/drive.admin.labels
https://www.googleapis.com/auth/drive.admin.labels.readonly
詳しくは、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-04 UTC。
[null,null,["最終更新日 2024-09-04 UTC。"],[[["This document details how to list a Label's permissions using the Drive Labels API's `ListLabelPermissions` method."],["The method uses an HTTP GET request with required path and optional query parameters."],["The request body should be empty, and a successful response will contain a `ListLabelPermissionsResponse` object."],["Proper authorization with specific OAuth scopes like `https://www.googleapis.com/auth/drive.labels` is required to access this functionality."]]],["This outlines how to list a Label's permissions using an HTTP GET request to `https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions`. The `parent` path parameter is mandatory, defining the Label's resource name. Optional query parameters include `useAdminAccess`, `pageSize` (default 50, max 200), and `pageToken` for pagination. The request body must be empty. A successful response provides a `ListLabelPermissionsResponse`. Authorization requires specific OAuth scopes related to Drive labels.\n"]]