全部产品
Search
文档中心

智能媒体服务:CreateChannel - 创建频道组装频道

更新时间:Jan 14, 2026

创建一个新的频道。

接口说明

调用 CreateChannel 接口创建频道。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ice:CreateChannelcreate
*全部资源
*

请求参数

名称类型必填描述示例值
ChannelNamestring

频道名称。

MyChannel
ChannelTierstring

频道等级。

basic
PlaybackModestring

播放模式。

loop
AccessPolicyboolean

是否开启访问控制。

false
AccessTokenstring

频道访问凭证。

xxxxx
FillerSourceLocationNamestring

垫片源位置名称。

MySourceLocation
FillerSourceNamestring

垫片源名称。

FillerSource
OutPutConfigListstring

频道输出配置。

[{ "ManifestName": "manifest-1", "Format": "HLS", "SourceGroupName": "source-group-1", "ManifestSettings": { "WindowDuration": 60, "AdMarkType": "Daterange" } }]

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID

xxx-xxxx-xxxxx-xxxx
ChannelChannelAssemblyChannel

频道信息。

示例

正常返回示例

JSON格式

{
  "RequestId": "xxx-xxxx-xxxxx-xxxx",
  "Channel": {
    "FillerSourceName": "MySource",
    "FillerSourceLocationName": "MySourceLocation",
    "GmtCreate": "2024-01-15T03:44:16Z\n",
    "ChannelName": "MyChannel",
    "ChannelTier": "basic",
    "AccessToken": "xxxxx",
    "State": 0,
    "GmtModified": "2024-09-01T10:09Z\n",
    "Arn": "acs:ims:mediaweaver:<regionId>:<userId>:channel/myChannel\n",
    "PlaybackMode": "loop",
    "OutPutConfigList": [
      {
        "ManifestName": "index1",
        "ChannelName": "MyChannel",
        "Format": "hls",
        "PlaybackUrl": "https://xxxxx.com/xxx.m3u8\n",
        "ManifestSettings": {
          "WindowDuration": 60,
          "AdMarkType": "Daterange"
        },
        "SourceGroupName": "group1"
      }
    ],
    "AccessPolicy": true
  }
}

错误码

访问错误中心查看更多错误码。