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

tencentcloud.getMpsTasks

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    tasks = tencentcloud.get_mps_tasks(limit=20,
        status="FINISH")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      tasks:
        fn::invoke:
          function: tencentcloud:getMpsTasks
          arguments:
            limit: 20
            status: FINISH
    

    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>
    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]
    func GetMpsTasks(ctx *Context, args *GetMpsTasksArgs, opts ...InvokeOption) (*GetMpsTasksResult, error)
    func GetMpsTasksOutput(ctx *Context, args *GetMpsTasksOutputArgs, opts ...InvokeOption) GetMpsTasksResultOutput

    > 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)
    }
    public static CompletableFuture<GetMpsTasksResult> getMpsTasks(GetMpsTasksArgs args, InvokeOptions options)
    public static Output<GetMpsTasksResult> getMpsTasks(GetMpsTasksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMpsTasks:getMpsTasks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Status 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 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 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 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 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 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 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 string
    Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
    FinishTime 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 List<string>
    Sub task types.
    TaskId string
    Task ID.
    TaskType string
    Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
    BeginProcessTime 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 string
    Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
    FinishTime 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 []string
    Sub task types.
    TaskId string
    Task ID.
    TaskType string
    Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
    beginProcessTime 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 String
    Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
    finishTime 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 List<String>
    Sub task types.
    taskId String
    Task ID.
    taskType String
    Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
    beginProcessTime 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 string
    Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
    finishTime 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 string[]
    Sub task types.
    taskId string
    Task ID.
    taskType string
    Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
    begin_process_time 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 str
    Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
    finish_time 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 Sequence[str]
    Sub task types.
    task_id str
    Task ID.
    task_type str
    Task type, including:WorkflowTask, EditMediaTask, LiveProcessTask.
    beginProcessTime 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 String
    Creation time, in ISO date format. Refer to https://cloud.tencent.com/document/product/862/37710#52.
    finishTime 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 List<String>
    Sub task types.
    taskId String
    Task ID.
    taskType 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack