更新媒体工作流的触发状态。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String UpdateMediaWorkflowTriggerMode

操作接口名,系统规定参数,取值:UpdateMediaWorkflowTriggerMode

MediaWorkflowId String e00732b977da427d9177a4de****b1aa

媒体工作流ID

TriggerMode String NotInAuto

触发模式。取值范围:OssAutoTrigger、NotInAuto。

返回数据

名称 类型 示例值 描述
RequestId String A1326BD4-30B1-4CB6-****-3330B877B0D4

请求ID

MediaWorkflow Struct

媒体工作流

MediaWorkflowId String e00732b977da427d9177a4dee646b1aa

媒体工作流ID

Name String mediaworkflow-test

媒体工作流名称

Topology String {\"Activities\":{\"Act-Start\":{\"Parameters\":{\"PipelineId\":\"130266f58161436a80bf07cb12c8009a\",\"InputFile\":\"{\\\"Bucket\\\": \\\"panda-vod\\\",\\\"Location\\\": \\\"oss-cn-hangzhou\\\"}\"},\"Type\":\"Start\"},\"Act-Report\":{\"Parameters\":{},\"Type\":\"Report\"},\"Act-Transcode-M3U8\":{\"Parameters\":{\"Outputs\":\"[{\\\"OutputObject\\\":\\\"transcode%2F%7BObjectPrefix%7D%7BFileName%7D\\\",\\\"TemplateId\\\": \\\"957d1719ee85ed6527b90cf62726cbef\\\"}]\",\"OutputBucket\":\"panda-vod-hls\",\"OutputLocation\":\"oss-cn-hangzhou\"},\"Type\":\"Transcode\"}},\"Dependencies\":{\"Act-Start\":[\"Act-Transcode-M3U8\"],\"Act-Report\":[],\"Act-Transcode-M3U8\":[\"Act-Report\"]}}

媒体工作流拓扑结构

TriggerMode String OssAutoTrigger

触发模式

State String Inactive

状态。

取值范围Inactive、Active、Deleted。

CreationTime String 2016-04-01T05:29:37Z

创建时间

示例

请求示例

http(s)://[Endpoint]/?Action=UpdateMediaWorkflowTriggerMode
&MediaWorkflowId=e00732b977da427d9177a4de****b1aa
&TriggerMode=NotInAuto
&<公共请求参数>

正常返回示例

XML 格式

<UpdateMediaWorkflowTriggerModeResponse>
      <RequestId>A1326BD4-30B1-4CB6-****-3330B877B0D4</RequestId>
      <MediaWorkflow>
            <CreationTime>2016-04-01T05:29:37Z</CreationTime>
            <Name>mediaworkflow-test</Name>
            <State>Inactive</State>
            <TriggerMode>NotInAuto</TriggerMode>
            <Topology>{"Activities":{"Act-Start":{"Parameters":{"PipelineId":"130266f58161436a80bf07cb****009a","InputFile":"{\"Bucket\": \"panda-vod\",\"Location\": \"oss-cn-hangzhou\"}"},"Type":"Start"},"Act-Report":{"Parameters":{},"Type":"Report"},"Act-Transcode-M3U8":{"Parameters":{"Outputs":"[{\"OutputObject\":\"transcode%2F%7BObjectPrefix%7D%7BFileName%7D\",\"TemplateId\": \"957d1719ee85ed6527b90cf6****cbef\"}]","OutputBucket":"panda-vod-hls","OutputLocation":"oss-cn-hangzhou"},"Type":"Transcode"}},"Dependencies":{"Act-Start":["Act-Transcode-M3U8"],"Act-Report":[],"Act-Transcode-M3U8":["Act-Report"]}}</Topology>
            <MediaWorkflowId>e00732b977da427d9177a4de****b1aa</MediaWorkflowId>
      </MediaWorkflow>
</UpdateMediaWorkflowTriggerModeResponse>

JSON 格式

{
     "RequestId":"A1326BD4-30B1-4CB6-****-3330B877B0D4",
     "MediaWorkflow": {
            "CreationTime": "2016-04-01T05:29:37Z",
            "Name": "mediaworkflow-test",
            "State": "Inactive",
            "TriggerMode":"NotInAuto",
            "Topology": "{\"Activities\":{\"Act-Start\":{\"Parameters\":{\"PipelineId\":\"130266f58161436a80bf07cb****009a\",\"InputFile\":\"{\\\"Bucket\\\": \\\"panda-vod\\\",\\\"Location\\\": \\\"oss-cn-hangzhou\\\"}\"},\"Type\":\"Start\"},\"Act-Report\":{\"Parameters\":{},\"Type\":\"Report\"},\"Act-Transcode-M3U8\":{\"Parameters\":{\"Outputs\":\"[{\\\"OutputObject\\\":\\\"transcode%2F%7BObjectPrefix%7D%7BFileName%7D\\\",\\\"TemplateId\\\": \\\"957d1719ee85ed6527b90cf6****cbef\\\"}]\",\"OutputBucket\":\"panda-vod-hls\",\"OutputLocation\":\"oss-cn-hangzhou\"},\"Type\":\"Transcode\"}},\"Dependencies\":{\"Act-Start\":[\"Act-Transcode-M3U8\"],\"Act-Report\":[],\"Act-Transcode-M3U8\":[\"Act-Report\"]}}",
            "MediaWorkflowId": "e00732b977da427d9177a4de****b1aa"
     }
 }

错误码

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