Method: projects.locations.dataStores.branches.documents.get

Document を取得します。

HTTP リクエスト

GET https://discoveryengine.googleapis.com/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}

この URL では gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
name

string

必須。Document の完全なリソース名(projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{document} など)。

呼び出し元に Document へのアクセス権がない場合、Document が存在するかどうかにかかわらず、PERMISSION_DENIED エラーが返されます。

リクエストされた Document が存在しない場合は、NOT_FOUND エラーが返されます。

リクエストの本文

リクエストの本文は空にする必要があります。

レスポンスの本文

成功した場合、レスポンスの本文には Document のインスタンスが含まれます。

認可スコープ

次の OAuth スコープのいずれかが必要です。

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

詳細については、Authentication Overview をご覧ください。

IAM 権限

name リソースに対する次の IAM 権限が必要です。

  • discoveryengine.documents.get

詳細については、IAM のドキュメントをご覧ください。