查詢媒體直播輸入列表。
介面說明
調用本介面查詢媒體直播輸入列表。
QPS 限制
本介面的單使用者 QPS 限制為 50 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:ListMediaLiveInputs |
list |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| MaxResults |
integer |
否 |
分頁查詢時每頁行數。最大值為 100。 預設值: 當不設定值或設定的值小於 10 時,預設值為 10。 當設定的值大於 100 時,預設值為 100。 |
10 |
| Skip |
integer |
否 |
分頁查詢時跳過的條目數。 當跳過的條目數超過合格條目總數時,會返回空列表。 |
20 |
| NextToken |
string |
否 |
查詢憑證(Token),取值為上一次 API 呼叫返回的 NextToken 參數值。 |
caeba0bbb2be03f84eb48b699f0a4883 |
| SortOrder |
string |
否 |
指定查詢的定序,用於按輸入的建立時間排序。預設是 asc。 可選值:desc(降序排序),asc(升序排序)。 |
desc |
| Keyword |
string |
否 |
指定查詢的關鍵詞。對輸入 ID/名稱進行搜尋,均支援模糊搜尋。 |
123 |
| Types |
string |
否 |
指定查詢的輸入類型,可以由多個輸入類型組成一個 JSON 數組,輸入類型值之間用半形逗號(,)隔開。 |
["RTMP_PUSH","SRT_PULL"] |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
******11-DB8D-4A9A-875B-275798****** |
| Inputs |
array<object> |
輸入列表。 |
|
|
array<object> |
輸入配置 |
||
| Type |
string |
輸入類型。 |
RTMP_PUSH |
| CreateTime |
string |
輸入建立時間,格式為:yyyy-MM-ddTHH:mm:ssZ(RFC 3339 格式),採用 UTC +0 時區。 |
2024-12-03T06:56:42Z |
| InputId |
string |
輸入 ID。 |
SEGK5KA6KYKAWQQH |
| InputInfos |
array<object> |
輸入配置列表。 |
|
|
object |
|||
| FlowId |
string |
MediaConnect Flow 的 Flow ID。 |
******81-9693-40dc-bbab-db5e49****** |
| SourceUrl |
string |
拉流的流地址,輸入為 PULL 類型時返回。 |
rtmp://domain/app/stream |
| StreamName |
string |
推流的流名稱,輸入為 PUSH 類型時返回。 |
mystream |
| MonitorUrl |
string |
輸入監看地址,用於監播。 |
rtmp://domain/app/stream_for_monitor |
| SrtPassphrase |
string |
SRT 加密配置,SRT 流的密碼。 |
srtencryption |
| SrtMaxBitrate |
integer |
SRT 流的最大碼率,單位 bps。 |
3000000 |
| FlowOutputName |
string |
MediaConnect Flow 的輸出名稱。 |
myFlowOutputName |
| SrtLatency |
integer |
SRT 流的延遲,單位 ms。 |
1000 |
| DestHost |
string |
PUSH 類型產生的推流地址。 |
rtmp://domain/app/stream |
| SrtPbKeyLen |
integer |
SRT 加密配置,SRT 流的密鑰長度。 |
16 |
| SecurityGroupIds |
array |
輸入關聯的安全性群組 ID 列表。 |
|
|
string |
輸入關聯的安全性群組 ID。 |
SEGK5KA6KYKAWQQH |
|
| ChannelIds |
array |
輸入關聯的頻道 ID 列表。 |
|
|
string |
輸入關聯的頻道 ID。 |
SEGK5KA6KYKAWQQH |
|
| Name |
string |
輸入執行個體名稱。 |
myinput |
| MaxResults |
integer |
分頁查詢時每頁行數。 |
10 |
| NextToken |
string |
查詢憑證。 |
caeba0bbb2be03f84eb48b699f0a4883 |
| TotalCount |
integer |
符合分頁條件查詢的總條目數。 |
200 |
樣本
正常返回樣本
JSON格式
{
"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
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。