全部产品
媒体转码

遍历媒体工作流执行实例

更新时间:2017-06-07 13:26:11   分享:   

遍历媒体工作流执行实例

描述

遍历媒体工作流执行实例

请求参数

名称 类型 必填项 描述
Action String 操作接口名,系统规定参数,取值:ListMediaWorkflowExecutions
MediaWorkflowId String 媒体工作流ID
MediaWorkflowName String 媒体工作流名称
InputFileURL String 原文件URL。URL遵循 RFC 3986(UTF8编码,并对保留字符进行URLEncode)。示例:http://bucket-test.cn-hangzhou.aliyuncs.com/test-%e4%b8%ad%e6%96%87%e6%b5%8b%e8%af%95%e8%a7%86%e9%a2%91.flv
NextPageToken String 下一页标识,32位UUID
MaximumPageSize Long 最大可返回媒体工作流执行实例,默认10,范围[1,100]

返回参数

名称 类型 描述
MediaWorkflowExecutionList MediaWorkflowExecution[] 媒体工作流列表
NextPageToken String 下一页标识,32位UUID

示例

请求示例

  1. https://mts.cn-hangzhou.aliyuncs.com?MaximumPageSize=1&<公共参数>

返回示例

XML:

  1. <ListMediaWorkflowExecutionsResponse>
  2. <NextPageToken>0a44e3792080497d825e46859abbb218</NextPageToken>
  3. <RequestId>946690FA-E7B9-42AF-A05B-CB7CF7AF3596</RequestId>
  4. <MediaWorkflowExecutionList>
  5. <MediaWorkflowExecution>
  6. <CreationTime>2016-04-01T06:53:43Z</CreationTime>
  7. <Name>ConcurrentSuccess</Name>
  8. <Input>
  9. <InputFile>
  10. <Bucket>inputfirst</Bucket>
  11. <Location>oss-test</Location>
  12. <Object>mediaWorkflow/ConcurrentSuccess/test-1280x1280-0_wp.mp4</Object>
  13. </InputFile>
  14. </Input>
  15. <State>Success</State>
  16. <RunId>9bd5a286b59d4cf19685d5b3c501e528</RunId>
  17. <ActivityList>
  18. <Activity>
  19. <Name>Act-1</Name>
  20. <State>Success</State>
  21. <Type>Start</Type>
  22. <EndTime>2016-04-01T06:53:44Z</EndTime>
  23. <StartTime>2016-04-01T06:53:44Z</StartTime>
  24. </Activity>
  25. <Activity>
  26. <Name>Act-2</Name>
  27. <State>Success</State>
  28. <Type>Transcode</Type>
  29. <JobId>2376030d9d0849399cd20e20c876f4f3</JobId>
  30. <EndTime>2016-04-01T06:54:00Z</EndTime>
  31. <StartTime>2016-04-01T06:53:45Z</StartTime>
  32. </Activity>
  33. <Activity>
  34. <Name>Act-3</Name>
  35. <State>Success</State>
  36. <Type>Transcode</Type>
  37. <JobId>f2ffd10aee504c15b0bd6f39b92ca667</JobId>
  38. <EndTime>2016-04-01T06:54:03Z</EndTime>
  39. <StartTime>2016-04-01T06:53:47Z</StartTime>
  40. </Activity>
  41. <Activity>
  42. <Name>Act-5</Name>
  43. <State>Success</State>
  44. <Type>Snapshot</Type>
  45. <JobId>5dd9639f217c43eda011a95ee121ffc3</JobId>
  46. <EndTime>2016-04-01T06:53:47Z</EndTime>
  47. <StartTime>2016-04-01T06:53:47Z</StartTime>
  48. </Activity>
  49. <Activity>
  50. <Name>Act-6</Name>
  51. <State>Success</State>
  52. <Type>Snapshot</Type>
  53. <JobId>617cb572ad204e8daaa7da4bbd6f63af</JobId>
  54. <EndTime>2016-04-01T06:54:01Z</EndTime>
  55. <StartTime>2016-04-01T06:54:01Z</StartTime>
  56. </Activity>
  57. <Activity>
  58. <Name>Act-7</Name>
  59. <State>Success</State>
  60. <Type>Report</Type>
  61. <EndTime>2016-04-01T06:54:03Z</EndTime>
  62. <StartTime>2016-04-01T06:54:03Z</StartTime>
  63. </Activity>
  64. </ActivityList>
  65. <MediaId>21a32670ce4e1b1c93f569b2546f5180</MediaId>
  66. </MediaWorkflowExecution>
  67. </MediaWorkflowExecutionList>
  68. </ListMediaWorkflowExecutionsResponse>

Json:

  1. {
  2. "NextPageToken": "0a44e3792080497d825e46859abbb218",
  3. "RequestId": "F7353230-58EC-4866-B74B-F731C3A01D21",
  4. "MediaWorkflowExecutionList": {
  5. "MediaWorkflowExecution": [
  6. {
  7. "CreationTime": "2016-04-01T06:53:43Z",
  8. "Name": "ConcurrentSuccess",
  9. "Input": {
  10. "InputFile": {
  11. "Bucket": "inputfirst",
  12. "Location": "oss-test",
  13. "Object": "mediaWorkflow/ConcurrentSuccess/test-1280x1280-0_wp.mp4"
  14. }
  15. },
  16. "State": "Success",
  17. "RunId": "9bd5a286b59d4cf19685d5b3c501e528",
  18. "ActivityList": {
  19. "Activity": [
  20. {
  21. "Name": "Act-1",
  22. "State": "Success",
  23. "Type": "Start",
  24. "EndTime": "2016-04-01T06:53:44Z",
  25. "StartTime": "2016-04-01T06:53:44Z"
  26. },
  27. {
  28. "Name": "Act-2",
  29. "State": "Success",
  30. "Type": "Transcode",
  31. "JobId": "2376030d9d0849399cd20e20c876f4f3",
  32. "EndTime": "2016-04-01T06:54:00Z",
  33. "StartTime": "2016-04-01T06:53:45Z"
  34. },
  35. {
  36. "Name": "Act-3",
  37. "State": "Success",
  38. "Type": "Transcode",
  39. "JobId": "f2ffd10aee504c15b0bd6f39b92ca667",
  40. "EndTime": "2016-04-01T06:54:03Z",
  41. "StartTime": "2016-04-01T06:53:47Z"
  42. },
  43. {
  44. "Name": "Act-5",
  45. "State": "Success",
  46. "Type": "Snapshot",
  47. "JobId": "5dd9639f217c43eda011a95ee121ffc3",
  48. "EndTime": "2016-04-01T06:53:47Z",
  49. "StartTime": "2016-04-01T06:53:47Z"
  50. },
  51. {
  52. "Name": "Act-6",
  53. "State": "Success",
  54. "Type": "Snapshot",
  55. "JobId": "617cb572ad204e8daaa7da4bbd6f63af",
  56. "EndTime": "2016-04-01T06:54:01Z",
  57. "StartTime": "2016-04-01T06:54:01Z"
  58. },
  59. {
  60. "Name": "Act-7",
  61. "State": "Success",
  62. "Type": "Report",
  63. "EndTime": "2016-04-01T06:54:03Z",
  64. "StartTime": "2016-04-01T06:54:03Z"
  65. }
  66. ]
  67. },
  68. "MediaId": "21a32670ce4e1b1c93f569b2546f5180"
  69. }
  70. ]
  71. }
  72. }
本文导读目录
本文导读目录
以上内容是否对您有帮助?