All Products
Search
Document Center

ApsaraVideo Live:DescribeLiveRecordConfig

Last Updated:Jun 22, 2026

Mengkueri semua konfigurasi perekaman APP di bawah domain live streaming.

Deskripsi operasi

Pertama, dapatkan nama domain streaming, lalu panggil operasi ini untuk mengkueri semua konfigurasi perekaman APP di bawah domain live streaming.

Batas QPS

Batas QPS pengguna tunggal untuk operasi ini adalah 100 panggilan per detik. Jika batas tersebut terlampaui, panggilan API akan dibatasi, yang dapat memengaruhi bisnis Anda. Harap lakukan panggilan dengan frekuensi yang wajar.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

live:DescribeLiveRecordConfig

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DomainName

string

Yes

Nama domain streaming.

example.com

AppName

string

No

Nama aplikasi tempat stream berada.

liveApp****

StreamName

string

No

Nama stream.

liveStream****

PageNum

integer

No

Nomor halaman saat ini. Nilai default: 1.

1

PageSize

integer

No

Jumlah entri per halaman. Nilai default: 10. Nilai yang valid: 5 hingga 30.

5

Order

string

No

Urutan pengurutan berdasarkan waktu pembuatan. Nilai yang valid:

  • asc (default): urutan naik.

  • desc: urutan turun.

Valid values:

  • asc :

    Naik

  • desc :

    Turun

asc

Elemen respons

Element

Type

Description

Example

object

PageNum

integer

Nomor halaman.

5

RequestId

string

ID permintaan.

5056369B-D337-499E-B8B7-B761BD37B08A

Order

string

Urutan pengurutan.

desc

TotalPage

integer

Jumlah total halaman.

20

PageSize

integer

Jumlah entri per halaman.

10

TotalNum

integer

Jumlah total entri yang memenuhi kondisi yang ditentukan.

12

LiveAppRecordList

object

LiveAppRecord

array<object>

Daftar konfigurasi perekaman.

array<object>

Daftar konfigurasi perekaman.

EndTime

string

The end time of the recording. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2018-11-08T03:49:18Z

StartTime

string

The start time of the recording. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2018-11-08T02:49:18Z

AppName

string

The AppName of the live stream.

liveApp****

StreamName

string

The name of the live stream.

liveStream****

DelayTime

integer

The window in seconds for merging fragmented recording after an interruption. If a stream disconnects and reconnects within this window, the recording will continue in the same file. Valid values: 15 to 21600.

180

CreateTime

string

The time when the recording configuration was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2016-05-20T09:33:38Z

OnDemond

integer

The configuration of on-demand recording. Valid values:

  • 0: disables on-demand recording.

  • 1: on-demand recording that is triggered by HTTP callbacks.

  • 2: on-demand recording that is triggered by stream ingest parameters.

  • 7: Call the RealTimeRecordCommand API to manually start or stop recording.

Catatan

If you set OnDemand to 1, you must call the AddLiveRecordNotifyConfig operation to configure OnDemandUrl. Otherwise, the configuration of on-demand recording is invalid.

0

OssBucket

string

The name of the Object Storage Service (OSS) bucket in which the recordings are stored.

liveBucket****

DomainName

string

The main streaming domain.

example.com

OssEndpoint

string

The endpoint of the OSS bucket.

cn-oss-****.aliyuncs.com

RecordFormatList

object

RecordFormat

array<object>

The recording formats of the original stream.

object

SliceDuration

integer

The duration of a single segment. Unit: seconds.

30

CycleDuration

integer

The duration of a recording cycle. Unit: seconds.

3600

SliceOssObjectPrefix

string

The naming pattern for segments.

record/{liveApp****}/{liveStream****}/{UnixTimestamp}

OssObjectPrefix

string

The naming pattern for the recording file stored in OSS.

record/{liveApp****}/{liveStream****}

Format

string

The recording format.

M3U8

TranscodeRecordFormatList

object

RecordFormat

array<object>

The recording formats of transcoded streams.

object

SliceDuration

integer

The duration of a single segment for transcoded stream recording. Unit: seconds.

30

CycleDuration

integer

The duration of a single recording cycle in seconds.

3600

SliceOssObjectPrefix

string

The naming pattern for segments of the transcoded stream.

record/{liveApp****}/{liveStream****}/{UnixTimestamp}

OssObjectPrefix

string

The maning pattern of the recording file stored in OSS for transcoded stream.

record/{liveApp****}/{liveStream****}

Format

string

The recording format.

M3U8

TranscodeTemplates

object

Templates

array

The transcoding templates.

string

The transcoding template used. If all transcoded streams are recorded, ["*"] is returned.

["sd","hd"]

Contoh

Respons sukses

JSONformat

{
  "PageNum": 5,
  "RequestId": "5056369B-D337-499E-B8B7-B761BD37B08A",
  "Order": "desc",
  "TotalPage": 20,
  "PageSize": 10,
  "TotalNum": 12,
  "LiveAppRecordList": {
    "LiveAppRecord": [
      {
        "EndTime": "2018-11-08T03:49:18Z",
        "StartTime": "2018-11-08T02:49:18Z",
        "AppName": "liveApp****",
        "StreamName": "liveStream****",
        "DelayTime": 180,
        "CreateTime": "2016-05-20T09:33:38Z",
        "OnDemond": 0,
        "OssBucket": "liveBucket****",
        "DomainName": "example.com",
        "OssEndpoint": "cn-oss-****.aliyuncs.com",
        "RecordFormatList": {
          "RecordFormat": [
            {
              "SliceDuration": 30,
              "CycleDuration": 3600,
              "SliceOssObjectPrefix": "record/{liveApp****}/{liveStream****}/{UnixTimestamp}",
              "OssObjectPrefix": "record/{liveApp****}/{liveStream****}",
              "Format": "M3U8"
            }
          ]
        },
        "TranscodeRecordFormatList": {
          "RecordFormat": [
            {
              "SliceDuration": 30,
              "CycleDuration": 3600,
              "SliceOssObjectPrefix": "record/{liveApp****}/{liveStream****}/{UnixTimestamp}",
              "OssObjectPrefix": "record/{liveApp****}/{liveStream****}",
              "Format": "M3U8"
            }
          ]
        },
        "TranscodeTemplates": {
          "Templates": [
            "[\"sd\",\"hd\"]"
          ]
        }
      }
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.