edit-icon download-icon

ListMedia

Last Updated: Apr 18, 2018

Description

The ListMedia API lists all media resources, which are sorted by creation time in descending order.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Set this parameter to ListMedia.
NextPageToken Long No Identifier of the next page, which is a 32-bit UUID
MaximumPageSize Number No Maximum number of media workflow execution instances that can be returned. The value range is [1, 100]. The default value is 10.
From String No Start time. The date format follows the ISO8601 standard and uses UTC time. The format is YYYY-MM-DDThh:mm:ssZ, for example, 2014-01-10T12:00:00Z (January 10, 2014 at 20:00:00, Beijing time).
To String No End time. The date format follows the ISO8601 standard and uses UTC time. The format is YYYY-MM-DDThh:mm:ssZ, for example, 2014-01-11T12:00:00Z (January 11, 2014 at 20:00:00, Beijing time).

Return parameters

Name Type Description
MediaList Media[] Media list
NextPageToken String Identifier of the next page, which is a 32-bit UUID

Example

Request example

  1. http://mts.cn-hangzhou.aliyuncs.com/?From=2014-01-10T12%3A00%3A00Z&To=2014-01-11T12%3A00%3A00Z&Action=ListMedia&<public parameter>

Return example

XML

  1. <LisMediaResponse>
  2. <RequestId>58CBF1B8-048C-4550-B59C-F6EA57A8CEB6</RequestId>
  3. <NextPageToken>8c6ca184c0e47098a5b665e2a126797</NextPageToken>
  4. <MediaList list="true">
  5. <Media>
  6. <CreationTime>2016-09-20T05:26:48Z</CreationTime>
  7. <CoverURL>http://zzzinput-test.oss-cn-hangzhou.aliyuncs.com/tail_comm-33.jpg</CoverURL>
  8. <RunIdList>
  9. <RunId>2490402d4a204f899a64473844e50a24</RunId>
  10. </RunIdList>
  11. <CateId>0</CateId>
  12. <Description>tag1,tag2</Description>
  13. <PublishState>UnPublish</PublishState>
  14. <File>
  15. <State>Normal</State>
  16. <URL>http://zzzinput-test.oss-cn-hangzhou.aliyuncs.com/tail_comm-493.mp4</URL>
  17. </File>
  18. <MediaId>b2cb1183559e49ad81e767045624b9b8</MediaId>
  19. <Title>10</Title>
  20. </Media>
  21. </MediaList>
  22. </LisMediaResponse>

JSON

  1. {
  2. "NextPageToken":"8c6ca184c0e47098a5b665e2a126797",
  3. "RequestId":"06CB45EF-903C-4464-A812-AD276948D5BB",
  4. "MediaList":{
  5. "Media": [
  6. {
  7. "CreationTime": "2016-09-20T05:26:48Z",
  8. "CoverURL": "http://zzzinput-test.oss-cn-hangzhou.aliyuncs.com/tail_comm-33.jpg",
  9. "RunIdList": {
  10. "RunId": [
  11. "2490402d4a204f899a64473844e50a24"
  12. ]
  13. },
  14. "CateId": 0,
  15. "Description": "tag1,tag2",
  16. "PublishState": "UnPublish",
  17. "File": {
  18. "State": "Normal",
  19. "URL": "http://zzzinput-test.oss-cn-hangzhou.aliyuncs.com/tail_comm-493.mp4"
  20. },
  21. "MediaId": "b2cb1183559e49ad81e767045624b9b8",
  22. "Title": "10"
  23. }
  24. ]
  25. }
Thank you! We've received your feedback.