edit-icon download-icon

UpdateMediaWorkflowTriggerMode

Last Updated: Apr 20, 2018

Description

Update the trigger mode of media workflow.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Value: UpdateMediaWorkflowTriggerMode
MediaWorkflowId String Yes Media workflow Id.
TriggerMode String No Trigger mode. Range: OssAutoTrigger, NotInAuto.

Return parameters

None

Example

Request example

  1. https://mts.cn-hangzhou.aliyuncs.com/?MediaWorkflowId=e00732b977da427d9177a4dee646b1aa&TriggerMode=NotInAuto<Public parameter>

Return example

XML

  1. <UpdateMediaWorkflowTriggerModeResponse>
  2. <RequestId>A1326BD4-30B1-4CB6-B116-3330B877B0D4</RequestId>
  3. <MediaWorkflow>
  4. <CreationTime>2016-04-01T05:29:37Z</CreationTime>
  5. <Name>mediaworkflow-test</Name>
  6. <State>Inactive</State>
  7. <TriggerMode>NotInAuto</TriggerMode>
  8. <Topology>{"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"]}}</Topology>
  9. <MediaWorkflowId>e00732b977da427d9177a4dee646b1aa</MediaWorkflowId>
  10. </MediaWorkflow>
  11. </UpdateMediaWorkflowTriggerModeResponse>

JSON

  1. {
  2. "RequestId":"A1326BD4-30B1-4CB6-B116-3330B877B0D4",
  3. "MediaWorkflow": {
  4. "CreationTime": "2016-04-01T05:29:37Z",
  5. "Name": "mediaworkflow-test",
  6. "State": "Inactive",
  7. "TriggerMode":"NotInAuto",
  8. "Topology": "{\"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\"]}}",
  9. "MediaWorkflowId": "e00732b977da427d9177a4dee646b1aa"
  10. }
  11. }
Thank you! We've received your feedback.