Method: sites.channels.list

列出指定站點的頻道。

所有站點都有一個預設的live頻道。

HTTP請求

GET https://firebasehosting.googleapis.com/v1beta1/{parent=sites/*}/channels

URL 使用gRPC 轉碼語法。

路徑參數

參數
parent

string

必需的。要列出頻道的站點,格式為:

sites/ SITE_ID

查詢參數

參數
pageSize

integer

傳回的最大通道數。

如果存在的通道少於此最大數量,則服務可能會傳回較小的數量。
如果未指定,則預設為 10。最大值為 100;高於 100 的值將被強制為 100。

pageToken

string

來自先前呼叫channels.list的令牌,告訴伺服器從哪裡恢復清單。

請求正文

請求內文必須為空。

響應體

如果成功,回應正文包含具有以下結構的資料:

JSON 表示
{
  "channels": [
    {
      object (Channel)
    }
  ],
  "nextPageToken": string
}
領域
channels[]

object ( Channel )

頻道清單。

nextPageToken

string

分頁標記(如果存在此回應中的結果之外的更多結果)。

下次呼叫channels.list時包含此令牌。頁面令牌是短暫的,不應儲存。

授權範圍

需要以下 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

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