1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. getDownloadTasks
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of tls download tasks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.tls.getDownloadTasks({
        taskName: "tf-test-download",
        topicId: "3c57a110-399a-43b3-bc3c-5d60e065239a",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.tls.get_download_tasks(task_name="tf-test-download",
        topic_id="3c57a110-399a-43b3-bc3c-5d60e065239a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.GetDownloadTasks(ctx, &tls.GetDownloadTasksArgs{
    			TaskName: pulumi.StringRef("tf-test-download"),
    			TopicId:  pulumi.StringRef("3c57a110-399a-43b3-bc3c-5d60e065239a"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Tls.GetDownloadTasks.Invoke(new()
        {
            TaskName = "tf-test-download",
            TopicId = "3c57a110-399a-43b3-bc3c-5d60e065239a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.TlsFunctions;
    import com.pulumi.volcengine.tls.inputs.GetDownloadTasksArgs;
    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 foo = TlsFunctions.getDownloadTasks(GetDownloadTasksArgs.builder()
                .taskName("tf-test-download")
                .topicId("3c57a110-399a-43b3-bc3c-5d60e065239a")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:tls:getDownloadTasks
          Arguments:
            taskName: tf-test-download
            topicId: 3c57a110-399a-43b3-bc3c-5d60e065239a
    

    Using getDownloadTasks

    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 getDownloadTasks(args: GetDownloadTasksArgs, opts?: InvokeOptions): Promise<GetDownloadTasksResult>
    function getDownloadTasksOutput(args: GetDownloadTasksOutputArgs, opts?: InvokeOptions): Output<GetDownloadTasksResult>
    def get_download_tasks(ids: Optional[Sequence[str]] = None,
                           output_file: Optional[str] = None,
                           task_name: Optional[str] = None,
                           topic_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDownloadTasksResult
    def get_download_tasks_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           task_name: Optional[pulumi.Input[str]] = None,
                           topic_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDownloadTasksResult]
    func GetDownloadTasks(ctx *Context, args *GetDownloadTasksArgs, opts ...InvokeOption) (*GetDownloadTasksResult, error)
    func GetDownloadTasksOutput(ctx *Context, args *GetDownloadTasksOutputArgs, opts ...InvokeOption) GetDownloadTasksResultOutput

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

    public static class GetDownloadTasks 
    {
        public static Task<GetDownloadTasksResult> InvokeAsync(GetDownloadTasksArgs args, InvokeOptions? opts = null)
        public static Output<GetDownloadTasksResult> Invoke(GetDownloadTasksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDownloadTasksResult> getDownloadTasks(GetDownloadTasksArgs args, InvokeOptions options)
    public static Output<GetDownloadTasksResult> getDownloadTasks(GetDownloadTasksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:tls/getDownloadTasks:getDownloadTasks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of download task IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    TaskName string
    The name of the download task.
    TopicId string
    The ID of the log topic to which the download tasks belong.
    Ids []string
    A list of download task IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    TaskName string
    The name of the download task.
    TopicId string
    The ID of the log topic to which the download tasks belong.
    ids List<String>
    A list of download task IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    taskName String
    The name of the download task.
    topicId String
    The ID of the log topic to which the download tasks belong.
    ids string[]
    A list of download task IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    taskName string
    The name of the download task.
    topicId string
    The ID of the log topic to which the download tasks belong.
    ids Sequence[str]
    A list of download task IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    task_name str
    The name of the download task.
    topic_id str
    The ID of the log topic to which the download tasks belong.
    ids List<String>
    A list of download task IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    taskName String
    The name of the download task.
    topicId String
    The ID of the log topic to which the download tasks belong.

    getDownloadTasks Result

    The following output properties are available:

    DownloadTasks List<GetDownloadTasksDownloadTask>
    The collection of download task results.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of download tasks queried.
    Ids List<string>
    OutputFile string
    TaskName string
    The name of the download task.
    TopicId string
    The ID of the log topic to which the download task belongs.
    DownloadTasks []GetDownloadTasksDownloadTask
    The collection of download task results.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of download tasks queried.
    Ids []string
    OutputFile string
    TaskName string
    The name of the download task.
    TopicId string
    The ID of the log topic to which the download task belongs.
    downloadTasks List<GetDownloadTasksDownloadTask>
    The collection of download task results.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of download tasks queried.
    ids List<String>
    outputFile String
    taskName String
    The name of the download task.
    topicId String
    The ID of the log topic to which the download task belongs.
    downloadTasks GetDownloadTasksDownloadTask[]
    The collection of download task results.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of download tasks queried.
    ids string[]
    outputFile string
    taskName string
    The name of the download task.
    topicId string
    The ID of the log topic to which the download task belongs.
    download_tasks Sequence[GetDownloadTasksDownloadTask]
    The collection of download task results.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of download tasks queried.
    ids Sequence[str]
    output_file str
    task_name str
    The name of the download task.
    topic_id str
    The ID of the log topic to which the download task belongs.
    downloadTasks List<Property Map>
    The collection of download task results.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of download tasks queried.
    ids List<String>
    outputFile String
    taskName String
    The name of the download task.
    topicId String
    The ID of the log topic to which the download task belongs.

    Supporting Types

    GetDownloadTasksDownloadTask

    AllowIncomplete bool
    Whether to allow incomplete download.
    Compression string
    The compression format of the downloaded file.
    CreateTime string
    The create time of the download task.
    DataFormat string
    The data format of the downloaded file.
    DownloadUrl string
    The download URL for the completed task.
    EndTime int
    The end time of the log data to download, in Unix timestamp format.
    Limit int
    The maximum number of log entries to download.
    LogContextInfos List<GetDownloadTasksDownloadTaskLogContextInfo>
    The info of the log context.
    LogCount int
    The number of the downloaded logs.
    LogSize int
    The size of the downloaded log data.
    Query string
    The query statement for the download task.
    Sort string
    The sorting order of the log data.
    StartTime int
    The start time of the log data to download, in Unix timestamp format.
    TaskId string
    The ID of the download task.
    TaskName string
    The name of the download task.
    TaskStatus string
    The status of the download task.
    TaskType int
    The type of the download task.
    TopicId string
    The ID of the log topic to which the download tasks belong.
    AllowIncomplete bool
    Whether to allow incomplete download.
    Compression string
    The compression format of the downloaded file.
    CreateTime string
    The create time of the download task.
    DataFormat string
    The data format of the downloaded file.
    DownloadUrl string
    The download URL for the completed task.
    EndTime int
    The end time of the log data to download, in Unix timestamp format.
    Limit int
    The maximum number of log entries to download.
    LogContextInfos []GetDownloadTasksDownloadTaskLogContextInfo
    The info of the log context.
    LogCount int
    The number of the downloaded logs.
    LogSize int
    The size of the downloaded log data.
    Query string
    The query statement for the download task.
    Sort string
    The sorting order of the log data.
    StartTime int
    The start time of the log data to download, in Unix timestamp format.
    TaskId string
    The ID of the download task.
    TaskName string
    The name of the download task.
    TaskStatus string
    The status of the download task.
    TaskType int
    The type of the download task.
    TopicId string
    The ID of the log topic to which the download tasks belong.
    allowIncomplete Boolean
    Whether to allow incomplete download.
    compression String
    The compression format of the downloaded file.
    createTime String
    The create time of the download task.
    dataFormat String
    The data format of the downloaded file.
    downloadUrl String
    The download URL for the completed task.
    endTime Integer
    The end time of the log data to download, in Unix timestamp format.
    limit Integer
    The maximum number of log entries to download.
    logContextInfos List<GetDownloadTasksDownloadTaskLogContextInfo>
    The info of the log context.
    logCount Integer
    The number of the downloaded logs.
    logSize Integer
    The size of the downloaded log data.
    query String
    The query statement for the download task.
    sort String
    The sorting order of the log data.
    startTime Integer
    The start time of the log data to download, in Unix timestamp format.
    taskId String
    The ID of the download task.
    taskName String
    The name of the download task.
    taskStatus String
    The status of the download task.
    taskType Integer
    The type of the download task.
    topicId String
    The ID of the log topic to which the download tasks belong.
    allowIncomplete boolean
    Whether to allow incomplete download.
    compression string
    The compression format of the downloaded file.
    createTime string
    The create time of the download task.
    dataFormat string
    The data format of the downloaded file.
    downloadUrl string
    The download URL for the completed task.
    endTime number
    The end time of the log data to download, in Unix timestamp format.
    limit number
    The maximum number of log entries to download.
    logContextInfos GetDownloadTasksDownloadTaskLogContextInfo[]
    The info of the log context.
    logCount number
    The number of the downloaded logs.
    logSize number
    The size of the downloaded log data.
    query string
    The query statement for the download task.
    sort string
    The sorting order of the log data.
    startTime number
    The start time of the log data to download, in Unix timestamp format.
    taskId string
    The ID of the download task.
    taskName string
    The name of the download task.
    taskStatus string
    The status of the download task.
    taskType number
    The type of the download task.
    topicId string
    The ID of the log topic to which the download tasks belong.
    allow_incomplete bool
    Whether to allow incomplete download.
    compression str
    The compression format of the downloaded file.
    create_time str
    The create time of the download task.
    data_format str
    The data format of the downloaded file.
    download_url str
    The download URL for the completed task.
    end_time int
    The end time of the log data to download, in Unix timestamp format.
    limit int
    The maximum number of log entries to download.
    log_context_infos Sequence[GetDownloadTasksDownloadTaskLogContextInfo]
    The info of the log context.
    log_count int
    The number of the downloaded logs.
    log_size int
    The size of the downloaded log data.
    query str
    The query statement for the download task.
    sort str
    The sorting order of the log data.
    start_time int
    The start time of the log data to download, in Unix timestamp format.
    task_id str
    The ID of the download task.
    task_name str
    The name of the download task.
    task_status str
    The status of the download task.
    task_type int
    The type of the download task.
    topic_id str
    The ID of the log topic to which the download tasks belong.
    allowIncomplete Boolean
    Whether to allow incomplete download.
    compression String
    The compression format of the downloaded file.
    createTime String
    The create time of the download task.
    dataFormat String
    The data format of the downloaded file.
    downloadUrl String
    The download URL for the completed task.
    endTime Number
    The end time of the log data to download, in Unix timestamp format.
    limit Number
    The maximum number of log entries to download.
    logContextInfos List<Property Map>
    The info of the log context.
    logCount Number
    The number of the downloaded logs.
    logSize Number
    The size of the downloaded log data.
    query String
    The query statement for the download task.
    sort String
    The sorting order of the log data.
    startTime Number
    The start time of the log data to download, in Unix timestamp format.
    taskId String
    The ID of the download task.
    taskName String
    The name of the download task.
    taskStatus String
    The status of the download task.
    taskType Number
    The type of the download task.
    topicId String
    The ID of the log topic to which the download tasks belong.

    GetDownloadTasksDownloadTaskLogContextInfo

    ContextFlow string
    The context flow of the log.
    PackageOffset int
    The package offset of the log.
    Source string
    The source of the log.
    ContextFlow string
    The context flow of the log.
    PackageOffset int
    The package offset of the log.
    Source string
    The source of the log.
    contextFlow String
    The context flow of the log.
    packageOffset Integer
    The package offset of the log.
    source String
    The source of the log.
    contextFlow string
    The context flow of the log.
    packageOffset number
    The package offset of the log.
    source string
    The source of the log.
    context_flow str
    The context flow of the log.
    package_offset int
    The package offset of the log.
    source str
    The source of the log.
    contextFlow String
    The context flow of the log.
    packageOffset Number
    The package offset of the log.
    source String
    The source of the log.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate