tencent cloud

Feedback

DescribeWorkflows

Last updated: 2024-09-30 14:48:01

    1. API Description

    Domain name for API request: mps.tencentcloudapi.com.

    This API is used to get the list of workflow details by workflow ID.

    A maximum of 20 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: DescribeWorkflows.
    Version Yes String Common Params. The value used for this API: 2019-06-12.
    Region No String Common Params. This parameter is not required for this API.
    WorkflowIds.N No Array of Integer Workflow ID filter. Array length limit: 100.
    Status No String Workflow status. Valid values:
  • Enabled: Enabled,
  • Disabled: Disabled.

  • If this parameter is left empty, the workflow status will not be distinguished.
    Offset No Integer Paging offset. Default value: 0.
    Limit No Integer Number of returned entries. Default value: 10. Maximum value: 100.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Number of eligible entries.
    WorkflowInfoSet Array of WorkflowInfo Workflow information array.
    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 Querying a Workflow

    This example shows you how to query the workflow with ID 78459.

    Input Example

    https://mps.tencentcloudapi.com/?Action=DescribeWorkflows
    &WorkflowIds.0=78459
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "RequestId": "6ca31e3a-6b8e-4b4e-9256-fdc700064ef3",
            "TotalCount": 1,
            "WorkflowInfoSet": [
                {
                    "WorkflowId": 78459,
                    "WorkflowName": "transcode-10",
                    "Status": "Enabled",
                    "Trigger": {
                        "Type": "CosFileUpload",
                        "CosFileUploadTrigger": {
                            "Bucket": "TopRankVideo-125xxx88",
                            "Region": "ap-chongqing",
                            "Dir": "/movie/201907/"
                        }
                    },
                    "OutputStorage": {
                        "Type": "COS",
                        "CosOutputStorage": {
                            "Bucket": "TopRankVideo-125xxx88",
                            "Region": "ap-chongqing"
                        }
                    },
                    "MediaProcessTask": {
                        "TranscodeTaskSet": [
                            {
                                "Definition": 10,
                                "WatermarkSet": []
                            }
                        ]
                    },
                    "OutputDir": "/movie/201907/",
                    "AiContentReviewTask": null,
                    "AiRecognitionTask": null,
                    "AiAnalysisTask": null,
                    "TaskNotifyConfig": null,
                    "TaskPriority": 0,
                    "CreateTime": "2019-07-18T10:00:00Z",
                    "UpdateTime": "2019-07-18T11:00:03Z"
                }
            ]
        }
    }
    

    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.InvalidMpsUser Operation failed: unauthorized MPS user.
    InternalError Internal error.
    InvalidParameterValue Incorrect parameter value.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support