创建一个新的源。
接口说明
调用 CreateSource 接口创建源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ice:CreateSource |
create |
*全部资源
|
无 | 无 |
请求语法
POST / HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SourceLocationName |
string |
是 |
源位置名称。 |
MySourceLocation |
| SourceType |
string |
是 |
源类型:vodSource,liveSource |
vodSource |
| SourceName |
string |
是 |
源名称。 |
MyVodSource |
| HttpPackageConfigurations |
string |
是 |
源配置。 |
“[{ "sourceGroupName": "mySourceGroup-1", "relativePath": "group1/hls.m3u8", "type": "hls" }]” |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID |
xxx-xxxx-xxxxx-xxxx |
| Source | ChannelAssemblySource |
源信息。 |
示例
正常返回示例
JSON格式
{
"RequestId": "xxx-xxxx-xxxxx-xxxx",
"Source": {
"GmtCreate": "2022-10-20T07:15:51Z",
"SourceLocationName": "MySourceLocation\n",
"State": 0,
"SourceType": "vodSource",
"GmtModified": "2024-11-07T10:12:01Z\n",
"SourceName": "MyVodSource\n",
"HttpPackageConfigurations": "[{\n\t\"sourceGroupName\": \"mySourceGroup-1\",\n\t\"relativePath\": \"group1/hls.m3u8\",\n\t\"packageType\": \"hls\"\n}]",
"Arn": "acs:ims:mediaweaver:::vodSource/mySourceLocation/mySource\n"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?