edit-icon download-icon

SearchTemplate

Last Updated: Mar 15, 2018

Description

The SearchTemplate API searches for custom templates in the specified state.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Set this parameter to SearchTemplate.
PageNumber Long No Current page number, which starts from 1. The default value is 1.
PageSize Long No When querying by page, this parameter indicates the size of each page. The default value is 10, and the maximum value is 100.
State String No Transcoding template status, which has the following options: All indicates all states, Normal indicates normal templates, and Deleted indicates deleted templates. The default value is All.

Return parameters

Name Type Description
TemplateList AliyunTemplate[ ] Template list

Example

Request example

  1. http://mts.cn-hangzhou.aliyuncs.com/?Action=SearchTemplate&<Public parameter>

Return example

XML

  1. <SearchTemplateResponse>
  2. <RequestId>017F1B2D-2B5B-4441-ABBA-E0DC08F5AFEC</RequestId>
  3. <TotalCount>1</TotalCount>
  4. <PageNumber>1</PageNumber>
  5. <PageSize>10</PageSize>
  6. <TemplateList list="true">
  7. <Template>
  8. <Id>88c6ca184c0e47098a5b665e2a126799</Id>
  9. <Name>MTS-example</Name>
  10. <Container>
  11. <Format>mp4</Format>
  12. </Container>
  13. <Video>
  14. <Codec>H.264</Codec>
  15. <Profile>high</Profile>
  16. <Bitrate>500</Bitrate>
  17. <Crf>Auto</Crf>
  18. <Width>256</Width>
  19. <Height>800</Height>
  20. <Fps>25</Fps>
  21. <Gop>10</Gop>
  22. <Preset>lower</Preset>
  23. <ScanMode></ScanMode>
  24. <Bufsize>6000</Bufsize>
  25. <Maxrate></Maxrate>
  26. <BitrateBnd>
  27. <Max></Max>
  28. <Min></Min>
  29. </BitrateBnd>
  30. </Video>
  31. <Audio>
  32. <Codec>aac</Codec>
  33. <Samplerate>44100</Samplerate>
  34. <Bitrate>Auto</Bitrate>
  35. <Channels>Auto</Channels>
  36. </Audio>
  37. <TransConfig>
  38. <TransMode>fixCRF</TransMode>
  39. </TransConfig>
  40. <State>Normal</State>
  41. </Template >
  42. </TemplateList>
  43. </SearchTemplateResponse>

JSON

  1. {
  2. "RequestId":"3E767BAD-9F4C-4FC8-9FAE-E3F4A639066B",
  3. "PageNumber":1,
  4. "PageSize":10,
  5. "TotalCount":1,
  6. "TemplateList": {
  7. "Template": [{
  8. "Id": "88c6ca184c0e47098a5b665e2a126799",
  9. "Name": "MTS-example",
  10. "Container": {
  11. "Format": "mp4"
  12. },
  13. "Video": {
  14. "Codec": "H.264",
  15. "Profile": "high",
  16. "Bitrate": "500",
  17. "Crf": "Auto",
  18. "Width": "256",
  19. "Height": "800",
  20. "Fps": "25",
  21. "Gop": "10",
  22. "Preset": "lower",
  23. "ScanMode": "",
  24. "Bufsize": "6000",
  25. "Maxrate": "500",
  26. "BitrateBnd":{
  27. "Max":"",
  28. "Min":""
  29. }
  30. },
  31. "Audio": {
  32. "Codec": "aac",
  33. " Samplerate": "44100",
  34. "Bitrate": "Auto",
  35. "Channels": "Auto"
  36. },
  37. "TransConfig":{
  38. "TransMode":"fixCRF"
  39. },
  40. "State": "Normal"
  41. }]
  42. }
  43. }
Thank you! We've received your feedback.