使用 IAM 控管存取權

總覽

Video Stitcher API 使用 Identity and Access Management (IAM) 進行存取控管。

您可以在專案層級設定 Video Stitcher API 的存取控管機制。舉例來說,您可以授權開發人員列出及取得專案中註冊的所有 CDN 金鑰。

如要進一步瞭解 IAM 及其功能,請參閱 IAM 說明文件。特別是管理 IAM 政策一節。

呼叫者必須具備必要權限,才能存取個別 Video Stitcher API 方法。詳情請參閱「權限」和「角色」。

權限

本節概述 IAM 支援的 Video Stitcher API 權限。

所需權限

下表列出與 Video Stitcher API 相關的 IAM 權限。

CDN 金鑰方法 所需權限
cdnKeys.create 上層專案的 videostitcher.cdnKeys.createGoogle Cloud 。
cdnKeys.delete CDN 金鑰資源的 videostitcher.cdnKeys.delete。
cdnKeys.get CDN 金鑰資源的 videostitcher.cdnKeys.get。
cdnKeys.list 上層專案的 videostitcher.cdnKeys.listGoogle Cloud 。
cdnKeys.update CDN 金鑰資源的 videostitcher.cdnKeys.update。
即時設定方法 所需權限
liveConfigs.create 上層專案的 videostitcher.liveConfigs.createGoogle Cloud 。
liveConfigs.delete 即時設定資源的 videostitcher.liveConfigs.delete。
liveConfigs.get 即時設定資源的 videostitcher.liveConfigs.get。
liveConfigs.list 上層專案的 videostitcher.liveConfigs.listGoogle Cloud 。
liveConfigs.update 即時設定資源的 videostitcher.liveConfigs.update。
VOD 設定方法 所需權限
vodConfigs.create 上層專案的 videostitcher.vodConfigs.createGoogle Cloud 。
vodConfigs.delete VOD 設定資源的 videostitcher.vodConfigs.delete。
vodConfigs.get VOD 設定資源的 videostitcher.vodConfigs.get。
vodConfigs.list 上層專案的 videostitcher.vodConfigs.listGoogle Cloud 。
vodConfigs.update VOD 設定資源的 videostitcher.vodConfigs.update。
Slates 方法 所需權限
slates.create 上層 Google Cloud 專案的 videostitcher.slates.create。
slates.delete videostitcher.slates.delete 權限。
slates.get videostitcher.slates.get 權限。
slates.list 上層 Google Cloud 專案的 videostitcher.slates.list。
slates.update videostitcher.slates.update 權限。
即時會議方法 所需權限
liveSessions.create 上層專案的 videostitcher.liveSessions.createGoogle Cloud 。
liveSessions.get videostitcher.liveSessions.get。
直播廣告代碼詳細資料方法 所需權限
liveSessions.liveAdTagDetails.get videostitcher.liveAdTagDetails.get 在直播廣告代碼詳細資料資源上。
liveSessions.liveAdTagDetails.list 上層專案的 videostitcher.liveAdTagDetails.list Google Cloud 。
VOD 工作階段方法 所需權限
vodSessions.create 上層專案的 videostitcher.vodSessions.createGoogle Cloud 。
vodSessions.get VOD 工作階段資源的 videostitcher.vodSessions.get。
VOD 廣告代碼詳細資料方法 所需權限
vodSessions.vodAdTagDetails.get videostitcher.vodAdTagDetails.get 隨選影片廣告代碼詳細資料資源。
vodSessions.vodAdTagDetails.list videostitcher.vodAdTagDetails.list父項專案。 Google Cloud
VOD 拼接詳細資料方法 所需權限
vodSessions.vodStitchDetails.get VOD 拼接詳細資料資源的 videostitcher.vodStitchDetails.get。
vodSessions.vodStitchDetails.list 上層專案的 videostitcher.vodStitchDetails.list Google Cloud 。

角色

下表列出 Video Stitcher API IAM 角色,包括與各角色相關聯的權限:

IAM 角色 權限

(roles/videostitcher.viewer)

具備影片拼接工具資源的唯讀存取權。

resourcemanager.projects.get

resourcemanager.projects.list

videostitcher.cdnKeys.get

videostitcher.cdnKeys.list

videostitcher.liveAdTagDetails.*

  • videostitcher.liveAdTagDetails.get
  • videostitcher.liveAdTagDetails.list

videostitcher.liveConfigs.get

videostitcher.liveConfigs.list

videostitcher.liveSessions.get

videostitcher.operations.get

videostitcher.operations.list

videostitcher.slates.get

videostitcher.slates.list

videostitcher.vodAdTagDetails.*

  • videostitcher.vodAdTagDetails.get
  • videostitcher.vodAdTagDetails.list

videostitcher.vodConfigs.get

videostitcher.vodConfigs.list

videostitcher.vodSessions.get

videostitcher.vodStitchDetails.*

  • videostitcher.vodStitchDetails.get
  • videostitcher.vodStitchDetails.list

(roles/videostitcher.user)

具備影片拼接工具工作階段的完整存取權限。

resourcemanager.projects.get

resourcemanager.projects.list

videostitcher.liveSessions.*

  • videostitcher.liveSessions.create
  • videostitcher.liveSessions.get

videostitcher.vodSessions.*

  • videostitcher.vodSessions.create
  • videostitcher.vodSessions.get

(roles/videostitcher.admin)

具備所有影片拼接工具資源的完整存取權限。

resourcemanager.projects.get

resourcemanager.projects.list

videostitcher.*

  • videostitcher.cdnKeys.create
  • videostitcher.cdnKeys.createTagBinding
  • videostitcher.cdnKeys.delete
  • videostitcher.cdnKeys.deleteTagBinding
  • videostitcher.cdnKeys.get
  • videostitcher.cdnKeys.list
  • videostitcher.cdnKeys.listEffectiveTags
  • videostitcher.cdnKeys.listTagBindings
  • videostitcher.cdnKeys.update
  • videostitcher.liveAdTagDetails.get
  • videostitcher.liveAdTagDetails.list
  • videostitcher.liveConfigs.create
  • videostitcher.liveConfigs.createTagBinding
  • videostitcher.liveConfigs.delete
  • videostitcher.liveConfigs.deleteTagBinding
  • videostitcher.liveConfigs.get
  • videostitcher.liveConfigs.list
  • videostitcher.liveConfigs.listEffectiveTags
  • videostitcher.liveConfigs.listTagBindings
  • videostitcher.liveSessions.create
  • videostitcher.liveSessions.get
  • videostitcher.operations.cancel
  • videostitcher.operations.delete
  • videostitcher.operations.get
  • videostitcher.operations.list
  • videostitcher.slates.create
  • videostitcher.slates.createTagBinding
  • videostitcher.slates.delete
  • videostitcher.slates.deleteTagBinding
  • videostitcher.slates.get
  • videostitcher.slates.list
  • videostitcher.slates.listEffectiveTags
  • videostitcher.slates.listTagBindings
  • videostitcher.slates.update
  • videostitcher.vodAdTagDetails.get
  • videostitcher.vodAdTagDetails.list
  • videostitcher.vodConfigs.create
  • videostitcher.vodConfigs.createTagBinding
  • videostitcher.vodConfigs.delete
  • videostitcher.vodConfigs.deleteTagBinding
  • videostitcher.vodConfigs.get
  • videostitcher.vodConfigs.list
  • videostitcher.vodConfigs.listEffectiveTags
  • videostitcher.vodConfigs.listTagBindings
  • videostitcher.vodConfigs.update
  • videostitcher.vodSessions.create
  • videostitcher.vodSessions.get
  • videostitcher.vodStitchDetails.get
  • videostitcher.vodStitchDetails.list

如要進一步瞭解角色,請參閱瞭解角色。

建議

負責建立直播或 VOD 工作階段的帳戶,角色應設為 roles/videostitcher.user。

如要管理及編輯 CDN 金鑰、直播設定、VOD 設定和節目表,請將帳戶角色設為 roles/videostitcher.admin。

如果帳戶只能檢視,無法編輯或建立 CDN 金鑰、直播設定、隨選影片設定、節目表或工作階段,則應將角色設為 roles/videostitcher.viewer。