Method: sites.versions.get

取得已為指定網站建立的指定版本。

這可以包括為預設live頻道或指定網站的任何活動預覽頻道建立的版本。

HTTP請求

GET https://firebasehosting.googleapis.com/v1beta1/{name=sites/*/versions/*}

URL 使用gRPC 轉碼語法。

路徑參數

參數
name

string

必需的。版本的完全限定資源名稱,格式為:

sites/ SITE_ID /versions/ VERSION_ID

請求正文

請求內文必須為空。

響應體

如果成功,回應正文將包含Version的實例。

授權範圍

需要以下 OAuth 範圍之一:

  • https://www.googleapis.com/auth/firebase.hosting.readonly
  • https://www.googleapis.com/auth/firebase.hosting
  • https://www.googleapis.com/auth/firebase.readonly
  • https://www.googleapis.com/auth/firebase
  • https://www.googleapis.com/auth/cloud-platform.read-only
  • https://www.googleapis.com/auth/cloud-platform

有關詳細信息,請參閱身份驗證概述