全部產品
Search
文件中心

Intelligent Media Services:ListLiveRecordTemplates

更新時間:Aug 14, 2026

呼叫ListLiveRecordTemplates取得即時錄製範本清單。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

ice:ListLiveRecordTemplates

*All Resource

*

無 無

請求參數

名稱

類型

必填

描述

樣本值

Keyword

string

否

搜尋關鍵字,可以根據範本 ID 和名稱搜尋。名稱支援模糊搜尋。

test template

Type

string

否

範本類型。

枚舉值:

  • system :

    系統預置

  • custom :

    自訂

custom

TemplateIds

array

否

string

否

範本 ID。

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

PageNo

integer

否

分頁的頁碼。最小值:1。預設值:1。

1

PageSize

integer

否

分頁大小。1~100。預設值 10。

10

SortBy

string

否

排序參數,預設按建立時間倒序。

枚舉值:

  • asc :

    升序排列

  • desc :

    降序排列(預設值)

desc

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RecordTemplateList

array<object>

錄製範本清單。

array<object>

錄製範本。

Name

string

範本名稱。

test template

Type

string

範本類型。

custom

LastModified

string

最後修改時間。

2022-07-20T03:26:36Z

TemplateId

string

範本 ID。

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

RecordFormatList

array<object>

錄製格式清單。

object

錄製格式。

Format

string

The output file format.

m3u8

SliceDuration

integer

The duration of a single segment. Unit: seconds.

30

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.

21600

CreateTime

string

建立時間。

2022-07-20T02:48:58Z

RequestId

string

請求 ID。

BEA98A0C-7870-15FE-B96F-8880BB600A2C

TotalCount

integer

總記錄數。

5

PageNo

integer

分頁的頁碼。

1

PageSize

integer

分頁大小。

10

SortBy

string

排序參數,預設按建立時間倒序。

枚舉值:

  • asc :

    升序排列

  • desc :

    降序排列(預設值)

desc

樣本

正常返回樣本

JSON格式

{
  "RecordTemplateList": [
    {
      "Name": "test template",
      "Type": "custom",
      "LastModified": "2022-07-20T03:26:36Z",
      "TemplateId": "69e1f9fe-1e97-11ed-ba64-0c42a1b73d66",
      "RecordFormatList": [
        {
          "Format": "m3u8",
          "SliceDuration": 30,
          "OssObjectPrefix": "record/{JobId}/{Sequence}_{EscapedStartTime}_{EscapedEndTime}",
          "SliceOssObjectPrefix": "record/{JobId}/{UnixTimestamp}_{Sequence}",
          "CycleDuration": 21600
        }
      ],
      "CreateTime": "2022-07-20T02:48:58Z"
    }
  ],
  "RequestId": "BEA98A0C-7870-15FE-B96F-8880BB600A2C",
  "TotalCount": 5,
  "PageNo": 1,
  "PageSize": 10,
  "SortBy": "desc"
}

錯誤碼

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

變更歷史

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