Method: sites.channels.create

在指定網站中建立新頻道。

HTTP請求

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

URL 使用gRPC 轉碼語法。

路徑參數

參數
parent

string

必需的。建立此頻道的站點,格式為:

sites/ SITE_ID

查詢參數

參數
channelId

string

必需的。不變的。站點內用於識別頻道的唯一 ID。

請求正文

請求正文包含Channel的實例。

響應體

如果成功,回應正文將包含新建立的Channel實例。

授權範圍

需要以下 OAuth 範圍之一:

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

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