tencent cloud

APIs

文档APIsVideo on DemandTask Flow APIsDescribeProcedureTemplates

DescribeProcedureTemplates

Download
聚焦模式
字号
最后更新时间: 2026-05-19 15:00:31

1. API Description

Domain name for API request: vod.intl.tencentcloudapi.com.

This API is used to get the list of task flow template details by task flow template name.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeProcedureTemplates.
Version Yes String Common Params. The value used for this API: 2018-07-17.
Region No String Common Params. This parameter is not required.
SubAppId No Integer

Video-on-demand (VOD) application ID. Customers who activate on-demand services from December 25, 2023 must fill this field with the app ID when accessing resources in on-demand applications (whether the default application or a newly created application).

Names.N No Array of String

Task flow template name filter conditions. The array can contain up to 100 conditions.

Type No String

Filtering condition for the task flow template type. Valid values:

  • Preset: system preset task flow template;
  • Custom: user-defined task flow template.
  • Offset No Integer

    Paging offset. Default value: 0.

    Limit No Integer

    Number of returned entries. Default value: 10. Maximum value: 100.

    SortBy.N No Array of SortBy

    Specify the field to sort the returned results in ascending or descending order. Sort.Field currently only supports CreateTime. Sort.Order can be desc (descending order) or asc (ascending order).

    Input parameter limitation: Currently only the CreateTime field is supported for sorting.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer

    Total number of records that meet filter conditions.

    ProcedureTemplateSet Array of ProcedureTemplate

    Task flow template detail list.

    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Query task flows of the designated application in descending order by creation time

    Input Example

    POST / HTTP/1.1
    Host: vod.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeProcedureTemplates
    <Common request parameters>
    
    {
        "SubAppId": 221094,
        "SortBy": [
            {
                "Field": "create_time",
                "Order": "desc"
            }
        ]
    }
    

    Output Example

    {
        "Response": {
            "ProcedureTemplateSet": [
                {
                    "AiAnalysisTask": null,
                    "AiContentReviewTask": null,
                    "AiRecognitionTask": null,
                    "AiRecognitionTaskSet": [],
                    "Comment": "",
                    "CreateTime": "2026-05-12T14:58:40+08:00",
                    "MediaProcessTask": {
                        "AdaptiveDynamicStreamingTaskSet": [],
                        "AnimatedGraphicTaskSet": [],
                        "CoverBySnapshotTaskSet": [],
                        "ImageSpriteTaskSet": [],
                        "SampleSnapshotTaskSet": [],
                        "SnapshotByTimeOffsetTaskSet": [],
                        "TranscodeTaskSet": [
                            {
                                "BlindWatermark": null,
                                "CopyRightWatermark": {
                                    "Text": ""
                                },
                                "Definition": 1140,
                                "EndTimeOffset": 0,
                                "HeadTailSet": [],
                                "MosaicSet": [],
                                "StartTimeOffset": 0,
                                "SubtitleInfoSet": [],
                                "TraceWatermark": {
                                    "Definition": 0,
                                    "Switch": ""
                                },
                                "WatermarkSet": []
                            }
                        ]
                    },
                    "MiniProgramPublishTask": null,
                    "Name": "hy-test2",
                    "ReviewAudioVideoTask": null,
                    "Type": "Custom",
                    "UpdateTime": "2026-05-12T14:58:40+08:00"
                }
            ],
            "TotalCount": 5,
            "RequestId": "884b286f-de85-4065-a5d5-64ce54dfe5bf"
        }
    }
    

    Example2 Query all task flows of the designated application

    Input Example

    POST / HTTP/1.1
    Host: vod.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeProcedureTemplates
    <Common request parameters>
    
    {
        "SubAppId": 221094
    }
    

    Output Example

    {
        "Response": {
            "ProcedureTemplateSet": [
                {
                    "AiAnalysisTask": null,
                    "AiContentReviewTask": null,
                    "AiRecognitionTask": {
                        "Definition": 70
                    },
                    "AiRecognitionTaskSet": [],
                    "Comment": "",
                    "CreateTime": "2019-10-23T20:47:15+08:00",
                    "MediaProcessTask": {
                        "AdaptiveDynamicStreamingTaskSet": [],
                        "AnimatedGraphicTaskSet": [],
                        "CoverBySnapshotTaskSet": [],
                        "ImageSpriteTaskSet": [],
                        "SampleSnapshotTaskSet": [],
                        "SnapshotByTimeOffsetTaskSet": [],
                        "TranscodeTaskSet": [
                            {
                                "BlindWatermark": null,
                                "CopyRightWatermark": {
                                    "Text": ""
                                },
                                "Definition": 1010,
                                "EndTimeOffset": 0,
                                "HeadTailSet": [],
                                "MosaicSet": [],
                                "StartTimeOffset": 0,
                                "SubtitleInfoSet": [],
                                "TraceWatermark": {
                                    "Definition": 0,
                                    "Switch": ""
                                },
                                "WatermarkSet": []
                            }
                        ]
                    },
                    "MiniProgramPublishTask": null,
                    "Name": "default",
                    "ReviewAudioVideoTask": null,
                    "Type": "Preset",
                    "UpdateTime": "2019-10-23T20:47:15+08:00"
                }
            ],
            "TotalCount": 5,
            "RequestId": "84dc6ce1-df4c-4950-88a4-1d9c4cf96e2d"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    FailedOperation Operation failed.
    FailedOperation.InvalidVodUser The VOD service is not activated.
    InternalError Internal error.
    InvalidParameterValue.Limit Invalid parameter: Limit.
    InvalidParameterValue.Names Too many elements in the Names array.
    InvalidParameterValue.Type Incorrect Type parameter value.
    UnauthorizedOperation Unauthorized operation.

    帮助和支持

    本页内容是否解决了您的问题?

    填写满意度调查问卷,共创更好文档体验。

    文档反馈