All Products
Search
Document Center

Intelligent Media Services:ListMediaLiveChannels

Last Updated:Jan 14, 2026

Queries MediaLive channels.

Operation description

QPS limit

This operation can be called up to 50 times per second for each Alibaba Cloud account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:ListMediaLiveChannelslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
MaxResultsintegerNo

The number of entries per page. Valid values: 1 to 100. Default value:

  • If you do not specify this parameter or if you set a value smaller than 10, the default value is 10.
  • If you set a value greater than 100, the default value is 100.
10
SkipintegerNo

The number of entries to be skipped in the query. If the number of entries you attempt to skip exceeds the number of entries that meet the condition, an empty list is returned.

20
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.

caeba0bbb2be03f84eb48b699f0a4883
SortOrderstringNo

The sorting order of the channels by creation time. Default value: asc. Valid values: desc and asc. asc indicates the ascending order, and desc indicates the descending order.

desc
KeywordstringNo

The keyword of the query. You can perform a fuzzy search on channel ID or name.

123
StatesstringNo

The state of channels you want to query. You can separate multiple states with commas (,) in a JSON array.

["IDLE","RUNNING"]

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

******11-DB8D-4A9A-875B-275798******
Channelsarray<object>

The channels.

channelobject
ChannelIdstring

The ID of the channel.

SEGK5KA6KYKAWQQH
Namestring

The name of the channel.

mych
Statestring

The state of the channel. Valid values: IDLE, STARTING, RUNNING, RECOVERING, and STOPPING.

IDLE
InputAttachmentsarray<object>

The inputs associated with the channel.

inputAttachmentobject
InputIdstring

The ID of the input.

SEGK5KA6KYKAWQQH
InputNamestring

The name of the input.

myinput
LanguageNamestring

The name of the language.

eng
AudioSelectorsarray<object>

The audio selectors.

audioSelectorobject
Namestring

The name of the audio selector.

myselector
AudioLanguageSelectionobject

The audio language selection.

LanguageCodestring

A three-letter ISO 639-2 language code from within an audio source.

eng
AudioPidSelectionobject

The audio PID selection.

Pidlong

A PID from within a source.

123
AudioTrackSelectionarray<object>

The audio track selection.

audioTrackSelectionobject
TrackIdlong

The track ID from within a source.

1
OutputGroupsarray<object>

The output groups.

outputGroupobject
Namestring

The name of the output group.

group1
Typestring

The output group type.

MediaPackage
Outputsarray<object>

The outputs in the output group.

outputobject
Namestring

The name of the output.

output1
MediaTypeinteger

The media type of the output.

0
MediaPackageOutputSettingobject

The settings of the output delivered to MediaPackage.

NameModifierstring

The manifest name modifier. The child manifests include this modifier in their M3U8 file names.

480p
AudioGroupIdstring

The manifest audio group ID.

audiogroup
VideoSettingNamestring

The name of the referenced VideoSettings.

myVideo1
AudioSettingNamesarray

The referenced AudioSettings.

audioSettingNamestring

The name of the referenced AudioSettings.

myAudio1
MediaPackageGroupSettingobject

The MediaPackage destination.

GroupNamestring

GroupName in MediaPackage.

myPackageGroup
ChannelNamestring

ChannelName in MediaPackage.

myPackageChannel
MonitorUrlstring

The URL for monitoring the output group. The parameter is returned only when the output gourp type is MediaPackage.

rtmp://xxx
AudioSettingsarray<object>

The audio settings.

audioSettingobject
Namestring

The name of the audio settings.

zhuanfengzhuang
AudioSelectorNamestring

The name of the audio selector.

myselector
LanguageCodestring

A three-letter ISO 639-2 language code.

eng
LanguageNamestring

The name of the language.

English
AudioCodecstring

The audio codec.

aac
AudioCodecSettingobject

The audio encoding settings.

Profilestring

The audio codec profile.

AAC-LOW
Bitrateinteger

The audio bitrate. Unit: bit/s.

200000
SampleRateinteger

The audio sample rate. Unit: Hz.

44100
VideoSettingsarray<object>

The video settings.

videoSettingobject
Namestring

The name of the video settings.

video1
Widthinteger

The width of the video in pixels.

1280
Heightinteger

The height of the video in pixels.

720
VideoCodecstring

The video codec.

H264
VideoCodecSettingobject

The video encoding settings.

Rateobject

The video encoding rate.

Bitrateinteger

The video bitrate. Unit: bit/s.

2500000
RateControlModestring

The bitrate control mode.

ABR
MaxBitrateinteger

The maximum bitrate. Unit: bit/s.

6000000
BufferSizeinteger

The video buffer size. Unit: bit/s.

6000000
Framerateobject

The frame rate.

FramerateControlstring

The frame rate mode.

SPECIFIED
FramerateNumeratorinteger

The numerator of the fixed frame rate.

25
FramerateDenominatorinteger

The denominator of the fixed frame rate.

1
Gopobject

The GOP setting.

GopSizeUnitsstring

The GOP size unit.

FRAMES
GopSizeinteger

The GOP size.

90
BframesNuminteger

The number of B frames.

3
CodecDetailobject

The video encoding settings.

Profilestring

The H.264 profile.

MAIN
Levelstring

The video encoding level. It is not supported yet.

H264_LEVEL_AUTO
VideoCodecTypestring

The video transcoding method. Valid values: NORMAL (regular transcoding) and NBHD (Narrowband HD™ transcoding).

NORMAL
CreateTimestring

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

2024-12-03T06:56:42Z
LastStartTimestring

The time when the channel was last started. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. If the channel has never been started since it was created, an empty string is returned.

2024-12-03T06:56:42Z
LastStopTimestring

The time when the channel was last stopped. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. If the channel has never stopped since it was created, an empty string is returned.

2024-12-03T06:56:42Z
MaxResultsinteger

The number of entries returned per page.

10
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

caeba0bbb2be03f84eb48b699f0a4883
TotalCountinteger

The total number of entries returned.

100

Examples

Sample success responses

JSONformat

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "Channels": [
    {
      "ChannelId": "SEGK5KA6KYKAWQQH",
      "Name": "mych",
      "State": "IDLE",
      "InputAttachments": [
        {
          "InputId": "SEGK5KA6KYKAWQQH",
          "InputName": "myinput",
          "LanguageName": "eng",
          "AudioSelectors": [
            {
              "Name": "myselector",
              "AudioLanguageSelection": {
                "LanguageCode": "eng"
              },
              "AudioPidSelection": {
                "Pid": 123
              },
              "AudioTrackSelection": [
                {
                  "TrackId": 1
                }
              ]
            }
          ]
        }
      ],
      "OutputGroups": [
        {
          "Name": "group1",
          "Type": "MediaPackage",
          "Outputs": [
            {
              "Name": "output1",
              "MediaType": 0,
              "MediaPackageOutputSetting": {
                "NameModifier": "480p",
                "AudioGroupId": "audiogroup"
              },
              "VideoSettingName": "myVideo1",
              "AudioSettingNames": [
                "myAudio1"
              ]
            }
          ],
          "MediaPackageGroupSetting": {
            "GroupName": "myPackageGroup",
            "ChannelName": "myPackageChannel"
          },
          "MonitorUrl": "rtmp://xxx"
        }
      ],
      "AudioSettings": [
        {
          "Name": "zhuanfengzhuang",
          "AudioSelectorName": "myselector",
          "LanguageCode": "eng",
          "LanguageName": "English",
          "AudioCodec": "aac",
          "AudioCodecSetting": {
            "Profile": "AAC-LOW",
            "Bitrate": 200000,
            "SampleRate": 44100
          }
        }
      ],
      "VideoSettings": [
        {
          "Name": "video1",
          "Width": 1280,
          "Height": 720,
          "VideoCodec": "H264",
          "VideoCodecSetting": {
            "Rate": {
              "Bitrate": 2500000,
              "RateControlMode": "ABR",
              "MaxBitrate": 6000000,
              "BufferSize": 6000000
            },
            "Framerate": {
              "FramerateControl": "SPECIFIED",
              "FramerateNumerator": 25,
              "FramerateDenominator": 1
            },
            "Gop": {
              "GopSizeUnits": "FRAMES",
              "GopSize": 90,
              "BframesNum": 3
            },
            "CodecDetail": {
              "Profile": "MAIN",
              "Level": "H264_LEVEL_AUTO"
            }
          },
          "VideoCodecType": "NORMAL"
        }
      ],
      "CreateTime": "2024-12-03T06:56:42Z",
      "LastStartTime": "2024-12-03T06:56:42Z",
      "LastStopTime": "2024-12-03T06:56:42Z"
    }
  ],
  "MaxResults": 10,
  "NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
  "TotalCount": 100
}

Error codes

For a list of error codes, visit the Service error codes.