ListMediaLiveInputs
Query the list of media live inputs.
Operation description
You can invoke this API to query the list of media live inputs.
QPS Limit
The queries per second (QPS) limit for this API is 50 requests per second per user. If the limit is exceeded, API calls will be subject to rate limiting, which may impact your business. Please invoke the API appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListMediaLiveInputs |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
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 |
| Skip |
integer |
No |
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 |
| NextToken |
string |
No |
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 |
| SortOrder |
string |
No |
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 |
| Keyword |
string |
No |
The keyword of the query. You can perform a fuzzy search on input ID or name. |
123 |
| Types |
string |
No |
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 elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
| Inputs |
array<object> |
The inputs. |
|
|
array<object> |
The input configurations. |
||
| Type |
string |
The input type. |
RTMP_PUSH |
| CreateTime |
string |
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 |
| InputId |
string |
The ID of the input. |
SEGK5KA6KYKAWQQH |
| InputInfos |
array<object> |
The input configurations. |
|
|
object |
|||
| FlowId |
string |
The ID of the flow from MediaConnect. |
******81-9693-40dc-bbab-db5e49****** |
| SourceUrl |
string |
The source URL where the stream is pulled from. This parameter is returned for PULL inputs. |
rtmp://domain/app/stream |
| StreamName |
string |
The name of the pushed stream. This parameter is returned for PUSH inputs. |
mystream |
| MonitorUrl |
string |
The URL for input monitoring. |
rtmp://domain/app/stream_for_monitor |
| SrtPassphrase |
string |
SRT encryption configuration—the password for the SRT stream. |
srtencryption |
| SrtMaxBitrate |
integer |
The maximum bitrate of the SRT stream, in bps. |
3000000 |
| FlowOutputName |
string |
The output name of the MediaConnect flow. |
myFlowOutputName |
| SrtLatency |
integer |
Latency of the SRT stream, in milliseconds (ms). |
1000 |
| DestHost |
string |
The endpoint that the stream is pushed to. This parameter is returned for PUSH inputs. |
rtmp://domain/app/stream |
| SrtPbKeyLen |
integer |
Encryption configuration for SRT. Specifies the key length for the SRT stream. |
16 |
| SecurityGroupIds |
array |
The IDs of the security groups associated with the input. |
|
|
string |
The ID of the security group. |
SEGK5KA6KYKAWQQH |
|
| ChannelIds |
array |
The IDs of the channels associated with the input. |
|
|
string |
The ID of the channel. |
SEGK5KA6KYKAWQQH |
|
| Name |
string |
The name of the input. |
myinput |
| MaxResults |
integer |
The number of entries returned per page. |
10 |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. |
caeba0bbb2be03f84eb48b699f0a4883 |
| TotalCount |
integer |
The total number of entries returned. |
200 |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"Inputs": [
{
"Type": "RTMP_PUSH",
"CreateTime": "2024-12-03T06:56:42Z",
"InputId": "SEGK5KA6KYKAWQQH",
"InputInfos": [
{
"FlowId": "******81-9693-40dc-bbab-db5e49******",
"SourceUrl": "rtmp://domain/app/stream",
"StreamName": "mystream",
"MonitorUrl": "rtmp://domain/app/stream_for_monitor",
"SrtPassphrase": "srtencryption",
"SrtMaxBitrate": 3000000,
"FlowOutputName": "myFlowOutputName",
"SrtLatency": 1000,
"DestHost": "rtmp://domain/app/stream",
"SrtPbKeyLen": 16
}
],
"SecurityGroupIds": [
"SEGK5KA6KYKAWQQH"
],
"ChannelIds": [
"SEGK5KA6KYKAWQQH"
],
"Name": "myinput"
}
],
"MaxResults": 10,
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"TotalCount": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.