All Products
Search
Document Center

Intelligent Media Services:GetMediaConnectFlowInput

Last Updated:Dec 23, 2025

Obtains information about the source of a MediaConnect flow.

Operation description

  • When the specified flow ID is not available, an error code is returned.

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:GetMediaConnectFlowInputcreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
FlowIdstringYes

The flow ID.

34900dc6-90ec-4968-af3c-fcd87f231a5f

Response parameters

ParameterTypeDescriptionExample
object

The response content.

Contentobject

The response body.

InputNamestring

The source name.

AliTestInput
InputProtocolstring

The source type.

Valid values:

  • RTMP-PUSH
  • SRT-Caller
  • RTMP-PULL
  • SRT-Listener
  • Flow
RTMP-PUSH
MaxBitrateinteger

The maximum bitrate. Unit: bit/s.

2000000
Cidrsstring

The IP address whitelist in CIDR format. CIDR blocks are separated with commas (,).

10.211.0.0/17
InputUrlstring

The source URL.

rtmp://1.2.3.4:1935/live/AliTestInput_8666ec062190f00e263012666319a5be
SrtLatencyinteger

The latency for the SRT stream. Unit: milliseconds. This parameter is returned when the source type is SRT-Listener or SRT-Caller.

1000
SrtPassphrasestring

The SRT key. This parameter is returned when the source type is SRT-Listener or SRT-Caller.

FICUBPX4Q77DYHRF
SrtPbkeyLeninteger

The encryption key length. This parameter is returned when the source type is SRT-Listener or SRT-Caller.

Valid values:

  • 0
  • 16
  • 24
  • 32
32
PairFlowIdstring

The ID of the source flow. This parameter is returned when the source type is Flow.

05c3adf4-aa0e-421d-a991-48ceae3e642e
PairOutputNamestring

The output of the source flow. This parameter is returned when the source type is Flow.

AliTestOutput
CreateTimestring

The time when the flow was created.

2024-07-18T01:29:24Z
Descriptionstring

The call description.

OK
RetCodeinteger

The returned error code. A value of 0 indicates the call is successful.

0
RequestIdstring

The ID of the request.

D4C231DF-103A-55FF-8D09-E699552457DE

Examples

Sample success responses

JSONformat

{
  "Content": {
    "InputName": "AliTestInput",
    "InputProtocol": "RTMP-PUSH",
    "MaxBitrate": 2000000,
    "Cidrs": "10.211.0.0/17",
    "InputUrl": "rtmp://1.2.3.4:1935/live/AliTestInput_8666ec062190f00e263012666319a5be",
    "SrtLatency": 1000,
    "SrtPassphrase": "FICUBPX4Q77DYHRF",
    "SrtPbkeyLen": 32,
    "PairFlowId": "05c3adf4-aa0e-421d-a991-48ceae3e642e",
    "PairOutputName": "AliTestOutput",
    "CreateTime": "2024-07-18T01:29:24Z"
  },
  "Description": "OK",
  "RetCode": 0,
  "RequestId": "D4C231DF-103A-55FF-8D09-E699552457DE"
}

Error codes

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