DescribeWorkflows
1. API Description
Domain name for API request: mps.intl.tencentcloudapi.com.
Based on the workflow ID, get the workflow details list.
A maximum of 20 requests can be initiated per second for this API.
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 condition, with an array length limit of 100. |
| Status | No | String | Workflow status. Value range: |
| 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 | Total number of records that meet filter conditions. |
| 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 Specific Workflow
This example shows you how to query the workflow with ID 10001.
Input Example
https://mps.intl.tencentcloudapi.com/?Action=DescribeWorkflows
&WorkflowIds.0=10001
&<Common request parameters>Output Example
{
"Response": {
"TotalCount": 1,
"WorkflowInfoSet": [
{
"AiAnalysisTask": null,
"AiContentReviewTask": {
"Definition": 10
},
"AiRecognitionTask": null,
"CreateTime": "2024-04-03T08:29:26Z",
"MediaProcessTask": {
"AdaptiveDynamicStreamingTaskSet": [],
"AnimatedGraphicTaskSet": [],
"ImageSpriteTaskSet": [],
"SampleSnapshotTaskSet": [],
"SnapshotByTimeOffsetTaskSet": [],
"TranscodeTaskSet": []
},
"OutputDir": "",
"OutputStorage": {
"CosOutputStorage": {
"Bucket": "mpstest-12345567",
"Region": "ap-nanjing"
},
"S3OutputStorage": null,
"Type": "COS"
},
"Status": "Enabled",
"TaskNotifyConfig": null,
"TaskPriority": -10,
"Trigger": {
"AwsS3FileUploadTrigger": null,
"CosFileUploadTrigger": {
"Bucket": "mpstest-12345567",
"Dir": "/mps/",
"Formats": [
""
],
"Region": "ap-nanjing"
},
"Type": "CosFileUpload"
},
"UpdateTime": "2024-08-05T07:04:30Z",
"WorkflowId": 10001,
"WorkflowName": "Workflow test"
}
],
"RequestId": "73054d13-abcdef1-8c28-7ce8698ef8b9"
}
}5. Developer Resources
SDK
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
- Tencent Cloud SDK 3.0 for Python
- Tencent Cloud SDK 3.0 for Java
- Tencent Cloud SDK 3.0 for PHP
- Tencent Cloud SDK 3.0 for Go
- Tencent Cloud SDK 3.0 for Node.js
- Tencent Cloud SDK 3.0 for .NET
- Tencent Cloud SDK 3.0 for C++
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: illegal mps user. |
| InternalError | Internal error. |
| InvalidParameterValue | Parameter value error. |