Method: revisions.get
リビジョンのメタデータまたはコンテンツを ID で取得します。
HTTP リクエスト
GET https://www.googleapis.com/drive/v3/files/{fileId}/revisions/{revisionId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
fileId |
string
ファイルの ID。
|
revisionId |
string
リビジョンの ID。
|
クエリ パラメータ
パラメータ |
acknowledgeAbuse |
boolean
ユーザーが既知のマルウェアやその他の不正なファイルをダウンロードするリスクがあることを認識しているかどうか。これは、alt パラメータが media に設定され、ユーザーがファイルのオーナーまたはファイルが存在する共有ドライブの管理者である場合にのみ適用されます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には Revision
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.meet.readonly
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive.photos.readonly
https://www.googleapis.com/auth/drive.readonly
一部のスコープは制限されており、アプリで使用するにはセキュリティ評価が必要です。詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-03 UTC。
[null,null,["最終更新日 2024-09-03 UTC。"],[[["Retrieves metadata or content of a specific file revision using its ID."],["Requires providing `fileId` and `revisionId` as path parameters in the request URL."],["Optionally, acknowledge potential risks when downloading files by setting the `acknowledgeAbuse` query parameter."],["Successful responses return a `Revision` object containing the requested information."],["Requires authorization with specific OAuth scopes like `https://www.googleapis.com/auth/drive` or others depending on the access level needed."]]],["This outlines how to retrieve a file revision's metadata or content using a `GET` HTTP request. The request requires a `fileId` and `revisionId` as path parameters. An optional `acknowledgeAbuse` boolean query parameter is available. The request body must be empty, and the successful response will contain a `Revision` instance. Authorization requires one of several specified OAuth scopes, some of which have restricted use.\n"]]