Method: projects.locations.collections.dataConnector.checkRefreshToken

已淘汰:檢查特定連線的 EUC 使用者是否有重新整理權杖,並傳回詳細資料。請改用 dataConnector.acquireAccessToken,然後向第三方系統查詢,確認傳回的權杖是否有效。如要確認重新整理權杖是否有效,必須向第三方系統查詢。

HTTP 要求

GET https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}:checkRefreshToken

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
name

string

這是必要旗標,要查詢權杖的連接器資源名稱。

要求主體

要求主體必須為空白。

回應主體

DataConnectorService.CheckRefreshToken 方法的回應訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "refreshTokenInfo": {
    object (RefreshTokenInfo)
  }
}
欄位
refreshTokenInfo

object (RefreshTokenInfo)

已儲存更新權杖的相關資訊。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

需要 name 資源的下列 IAM 權限:

  • discoveryengine.dataConnectors.checkRefreshToken

詳情請參閱 IAM 說明文件