1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMpsTasks
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getMpsTasks

Explore with Pulumi AI

tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

Use this data source to query detailed information of mps tasks

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const tasks = tencentcloud.getMpsTasks({
    limit: 20,
    status: "FINISH",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

tasks = tencentcloud.get_mps_tasks(limit=20,
    status="FINISH")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.GetMpsTasks(ctx, &tencentcloud.GetMpsTasksArgs{
			Limit:  pulumi.Float64Ref(20),
			Status: "FINISH",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var tasks = Tencentcloud.GetMpsTasks.Invoke(new()
    {
        Limit = 20,
        Status = "FINISH",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetMpsTasksArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var tasks = TencentcloudFunctions.getMpsTasks(GetMpsTasksArgs.builder()
            .limit(20)
            .status("FINISH")
            .build());

    }
}
Copy
variables:
  tasks:
    fn::invoke:
      function: tencentcloud:getMpsTasks
      arguments:
        limit: 20
        status: FINISH
Copy

Using getMpsTasks

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMpsTasks(args: GetMpsTasksArgs, opts?: InvokeOptions): Promise<GetMpsTasksResult>
function getMpsTasksOutput(args: GetMpsTasksOutputArgs, opts?: InvokeOptions): Output<GetMpsTasksResult>
Copy
def get_mps_tasks(id: Optional[str] = None,
                  limit: Optional[float] = None,
                  result_output_file: Optional[str] = None,
                  scroll_token: Optional[str] = None,
                  status: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetMpsTasksResult
def get_mps_tasks_output(id: Optional[pulumi.Input[str]] = None,
                  limit: Optional[pulumi.Input[float]] = None,
                  result_output_file: Optional[pulumi.Input[str]] = None,
                  scroll_token: Optional[pulumi.Input[str]] = None,
                  status: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetMpsTasksResult]
Copy
func GetMpsTasks(ctx *Context, args *GetMpsTasksArgs, opts ...InvokeOption) (*GetMpsTasksResult, error)
func GetMpsTasksOutput(ctx *Context, args *GetMpsTasksOutputArgs, opts ...InvokeOption) GetMpsTasksResultOutput
Copy

> Note: This function is named GetMpsTasks in the Go SDK.

public static class GetMpsTasks 
{
    public static Task<GetMpsTasksResult> InvokeAsync(GetMpsTasksArgs args, InvokeOptions? opts = null)
    public static Output<GetMpsTasksResult> Invoke(GetMpsTasksInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMpsTasksResult> getMpsTasks(GetMpsTasksArgs args, InvokeOptions options)
public static Output<GetMpsTasksResult> getMpsTasks(GetMpsTasksArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getMpsTasks:getMpsTasks
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Status This property is required. string
Filter condition: task status, optional values: WAITING, PROCESSING, FINISH.
Id string
Limit double
Return the number of records, default value: 10, maximum value: 100.
ResultOutputFile string
Used to save results.
ScrollToken string
Page turning flag, used when pulling in batches: when a single request cannot pull all the data, the interface will return a ScrollToken, and the next request will carry this Token, and it will be obtained from the next record.
Status This property is required. string
Filter condition: task status, optional values: WAITING, PROCESSING, FINISH.
Id string
Limit float64
Return the number of records, default value: 10, maximum value: 100.
ResultOutputFile string
Used to save results.
ScrollToken string
Page turning flag, used when pulling in batches: when a single request cannot pull all the data, the interface will return a ScrollToken, and the next request will carry this Token, and it will be obtained from the next record.
status This property is required. String
Filter condition: task status, optional values: WAITING, PROCESSING, FINISH.
id String
limit Double
Return the number of records, default value: 10, maximum value: 100.
resultOutputFile String
Used to save results.
scrollToken String
Page turning flag, used when pulling in batches: when a single request cannot pull all the data, the interface will return a ScrollToken, and the next request will carry this Token, and it will be obtained from the next record.
status This property is required. string
Filter condition: task status, optional values: WAITING, PROCESSING, FINISH.
id string
limit number
Return the number of records, default value: 10, maximum value: 100.
resultOutputFile string
Used to save results.
scrollToken string
Page turning flag, used when pulling in batches: when a single request cannot pull all the data, the interface will return a ScrollToken, and the next request will carry this Token, and it will be obtained from the next record.
status This property is required. str
Filter condition: task status, optional values: WAITING, PROCESSING, FINISH.
id str
limit float
Return the number of records, default value: 10, maximum value: 100.
result_output_file str
Used to save results.
scroll_token str
Page turning flag, used when pulling in batches: when a single request cannot pull all the data, the interface will return a ScrollToken, and the next request will carry this Token, and it will be obtained from the next record.
status This property is required. String
Filter condition: task status, optional values: WAITING, PROCESSING, FINISH.
id String
limit Number
Return the number of records, default value: 10, maximum value: 100.
resultOutputFile String
Used to save results.
scrollToken String
Page turning flag, used when pulling in batches: when a single request cannot pull all the data, the interface will return a ScrollToken, and the next request will carry this Token, and it will be obtained from the next record.

getMpsTasks Result

The following output properties are available:

Id string
ScrollToken string
Status string
TaskSets []GetMpsTasksTaskSet
Task list.
Limit float64
ResultOutputFile string
id string
scrollToken string
status string
taskSets GetMpsTasksTaskSet[]
Task list.
limit number
resultOutputFile string
id String
scrollToken String
status String
taskSets List<Property Map>
Task list.
limit Number
resultOutputFile String

Supporting Types

GetMpsTasksTaskSet

BeginProcessTime This property is required. string
Begin process time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not started yet, this field is: 0000-00-00T00:00:00Z.
CreateTime This property is required. string
Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
FinishTime This property is required. string
Task finish time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not been completed, this field is: 0000-00-00T00:00:00Z.
SubTaskTypes This property is required. List<string>
Sub task types.
TaskId This property is required. string
Task ID.
TaskType This property is required. string
Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
BeginProcessTime This property is required. string
Begin process time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not started yet, this field is: 0000-00-00T00:00:00Z.
CreateTime This property is required. string
Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
FinishTime This property is required. string
Task finish time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not been completed, this field is: 0000-00-00T00:00:00Z.
SubTaskTypes This property is required. []string
Sub task types.
TaskId This property is required. string
Task ID.
TaskType This property is required. string
Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
beginProcessTime This property is required. String
Begin process time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not started yet, this field is: 0000-00-00T00:00:00Z.
createTime This property is required. String
Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
finishTime This property is required. String
Task finish time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not been completed, this field is: 0000-00-00T00:00:00Z.
subTaskTypes This property is required. List<String>
Sub task types.
taskId This property is required. String
Task ID.
taskType This property is required. String
Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
beginProcessTime This property is required. string
Begin process time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not started yet, this field is: 0000-00-00T00:00:00Z.
createTime This property is required. string
Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
finishTime This property is required. string
Task finish time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not been completed, this field is: 0000-00-00T00:00:00Z.
subTaskTypes This property is required. string[]
Sub task types.
taskId This property is required. string
Task ID.
taskType This property is required. string
Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
begin_process_time This property is required. str
Begin process time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not started yet, this field is: 0000-00-00T00:00:00Z.
create_time This property is required. str
Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
finish_time This property is required. str
Task finish time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not been completed, this field is: 0000-00-00T00:00:00Z.
sub_task_types This property is required. Sequence[str]
Sub task types.
task_id This property is required. str
Task ID.
task_type This property is required. str
Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
beginProcessTime This property is required. String
Begin process time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not started yet, this field is: 0000-00-00T00:00:00Z.
createTime This property is required. String
Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
finishTime This property is required. String
Task finish time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52. If the task has not been completed, this field is: 0000-00-00T00:00:00Z.
subTaskTypes This property is required. List<String>
Sub task types.
taskId This property is required. String
Task ID.
taskType This property is required. String
Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack