All Products
Search
Document Center

Intelligent Media Services:ListMediaLiveInputs

Last Updated:Dec 23, 2025

Queries MediaLive inputs.

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:ListMediaLiveInputslist
*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 inputs 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 input ID or name.

123
TypesstringNo

The type of inputs you want to query. You can separate multiple input types with commas (,) in a JSON array.

["RTMP_PUSH","SRT_PULL"]

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

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

The inputs.

inputobject

The input configurations.

InputIdstring

The ID of the input.

SEGK5KA6KYKAWQQH
Namestring

The name of the input.

myinput
Typestring

The input type.

RTMP_PUSH
InputInfosarray<object>

The input configurations.

inputInfoobject
DestHoststring

The endpoint that the stream is pushed to. This parameter is returned for PUSH inputs.

rtmp://domain/app/stream
StreamNamestring

The name of the pushed stream. This parameter is returned for PUSH inputs.

mystream
SourceUrlstring

The source URL where the stream is pulled from. This parameter is returned for PULL inputs.

rtmp://domain/app/stream
MonitorUrlstring

The URL for input monitoring.

rtmp://domain/app/stream_for_monitor
FlowIdstring

The ID of the flow from MediaConnect.

******81-9693-40dc-bbab-db5e49******
FlowOutputNamestring

The output name of the MediaConnect flow.

myFlowOutputName
CreateTimestring

The time when the input 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
ChannelIdsarray

The IDs of the channels associated with the input.

channelIdstring

The ID of the channel.

SEGK5KA6KYKAWQQH
SecurityGroupIdsarray

The IDs of the security groups associated with the input.

securityGroupIdstring

The ID of the security group.

SEGK5KA6KYKAWQQH
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.

200

Examples

Sample success responses

JSONformat

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "Inputs": [
    {
      "InputId": "SEGK5KA6KYKAWQQH",
      "Name": "myinput",
      "Type": "RTMP_PUSH",
      "InputInfos": [
        {
          "DestHost": "rtmp://domain/app/stream",
          "StreamName": "mystream",
          "SourceUrl": "rtmp://domain/app/stream",
          "MonitorUrl": "rtmp://domain/app/stream_for_monitor",
          "FlowId": "******81-9693-40dc-bbab-db5e49******",
          "FlowOutputName": "myFlowOutputName"
        }
      ],
      "CreateTime": "2024-12-03T06:56:42Z",
      "ChannelIds": [
        "SEGK5KA6KYKAWQQH"
      ],
      "SecurityGroupIds": [
        "SEGK5KA6KYKAWQQH"
      ]
    }
  ],
  "MaxResults": 10,
  "NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
  "TotalCount": 200
}

Error codes

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