全部產品
Search
文件中心

Intelligent Media Services:GetLiveRecordTemplate

更新時間:Aug 14, 2026

調用GetLiveRecordTemplate獲取即時錄製範本明細或任務範本快照。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ice:GetLiveRecordTemplate

*All Resource

*

無 無

請求參數

名稱

類型

必填

描述

樣本值

TemplateId

string

是

範本 ID。

69e1f9fe-1e97-11ed-ba64-0c42a1b73d66

JobId

string

否

錄製任務 ID。傳入 JobId 獲取該任務使用的範本快照。

ab0e3e76-1e9d-11ed-ba64-0c42a1b73d66

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RecordTemplate

object

錄製範本。

RecordFormatList

array<object>

錄製格式列表。

object

錄製格式。

Format

string

The output file format.

m3u8

OssObjectPrefix

string

The name of the recording file that is stored in Object Storage Service (OSS).

record/{JobId}/{Sequence}{EscapedStartTime}{EscapedEndTime}

SliceOssObjectPrefix

string

The name of the TS segment.

record/{JobId}/{UnixTimestamp}_{Sequence}

CycleDuration

integer

The duration of the recording cycle. Unit: seconds. If you do not specify this parameter, the default value 6 hours is used.

7200

SliceDuration

integer

The duration of a single segment. Unit: seconds.

30

CreateTime

string

建立時間。

2022-07-20T03:26:36Z

LastModified

string

最後修改時間。

2022-07-20T03:26:36Z

TemplateId

string

範本 ID。

69e1f9fe-1e97-11ed-ba64-0c42a1b73d66

Name

string

範本名稱。

test template

Type

string

範本類型。

枚舉值:

  • system :

    系統預設範本

  • custom :

    使用者自訂範本

custom

RequestId

string

請求 ID。

C892855F-95DF-50D6-A28C-279ABDB76810

樣本

正常返回樣本

JSON格式

{
  "RecordTemplate": {
    "RecordFormatList": [
      {
        "Format": "m3u8",
        "OssObjectPrefix": "record/{JobId}/{Sequence}{EscapedStartTime}{EscapedEndTime}",
        "SliceOssObjectPrefix": "record/{JobId}/{UnixTimestamp}_{Sequence}",
        "CycleDuration": 7200,
        "SliceDuration": 30
      }
    ],
    "CreateTime": "2022-07-20T03:26:36Z",
    "LastModified": "2022-07-20T03:26:36Z",
    "TemplateId": "69e1f9fe-1e97-11ed-ba64-0c42a1b73d66",
    "Name": "test template",
    "Type": "custom"
  },
  "RequestId": "C892855F-95DF-50D6-A28C-279ABDB76810"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。