1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDlcTaskResult
tencentcloud 1.82.17 published on Thursday, Aug 14, 2025 by tencentcloudstack

tencentcloud.getDlcTaskResult

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.82.17 published on Thursday, Aug 14, 2025 by tencentcloudstack

    Use this data source to query detailed information of DLC task result

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getDlcTaskResult({
        taskId: "fdd9c5fa21ca11eca6fb5254006c64af",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_dlc_task_result(task_id="fdd9c5fa21ca11eca6fb5254006c64af")
    
    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.GetDlcTaskResult(ctx, &tencentcloud.GetDlcTaskResultArgs{
    			TaskId: "fdd9c5fa21ca11eca6fb5254006c64af",
    		}, 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 example = Tencentcloud.GetDlcTaskResult.Invoke(new()
        {
            TaskId = "fdd9c5fa21ca11eca6fb5254006c64af",
        });
    
    });
    
    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.GetDlcTaskResultArgs;
    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 example = TencentcloudFunctions.getDlcTaskResult(GetDlcTaskResultArgs.builder()
                .taskId("fdd9c5fa21ca11eca6fb5254006c64af")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getDlcTaskResult
          arguments:
            taskId: fdd9c5fa21ca11eca6fb5254006c64af
    

    Using getDlcTaskResult

    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 getDlcTaskResult(args: GetDlcTaskResultArgs, opts?: InvokeOptions): Promise<GetDlcTaskResultResult>
    function getDlcTaskResultOutput(args: GetDlcTaskResultOutputArgs, opts?: InvokeOptions): Output<GetDlcTaskResultResult>
    def get_dlc_task_result(id: Optional[str] = None,
                            is_transform_data_type: Optional[bool] = None,
                            max_results: Optional[float] = None,
                            next_token: Optional[str] = None,
                            result_output_file: Optional[str] = None,
                            task_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDlcTaskResultResult
    def get_dlc_task_result_output(id: Optional[pulumi.Input[str]] = None,
                            is_transform_data_type: Optional[pulumi.Input[bool]] = None,
                            max_results: Optional[pulumi.Input[float]] = None,
                            next_token: Optional[pulumi.Input[str]] = None,
                            result_output_file: Optional[pulumi.Input[str]] = None,
                            task_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDlcTaskResultResult]
    func GetDlcTaskResult(ctx *Context, args *GetDlcTaskResultArgs, opts ...InvokeOption) (*GetDlcTaskResultResult, error)
    func GetDlcTaskResultOutput(ctx *Context, args *GetDlcTaskResultOutputArgs, opts ...InvokeOption) GetDlcTaskResultResultOutput

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

    public static class GetDlcTaskResult 
    {
        public static Task<GetDlcTaskResultResult> InvokeAsync(GetDlcTaskResultArgs args, InvokeOptions? opts = null)
        public static Output<GetDlcTaskResultResult> Invoke(GetDlcTaskResultInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlcTaskResultResult> getDlcTaskResult(GetDlcTaskResultArgs args, InvokeOptions options)
    public static Output<GetDlcTaskResultResult> getDlcTaskResult(GetDlcTaskResultArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDlcTaskResult:getDlcTaskResult
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TaskId string
    Unique task ID.
    Id string
    IsTransformDataType bool
    Whether to convert the data type.
    MaxResults double
    Maximum number of returned rows. Value range: 0-1,000. Default value: 1,000.
    NextToken string
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    ResultOutputFile string
    Used to save results.
    TaskId string
    Unique task ID.
    Id string
    IsTransformDataType bool
    Whether to convert the data type.
    MaxResults float64
    Maximum number of returned rows. Value range: 0-1,000. Default value: 1,000.
    NextToken string
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    ResultOutputFile string
    Used to save results.
    taskId String
    Unique task ID.
    id String
    isTransformDataType Boolean
    Whether to convert the data type.
    maxResults Double
    Maximum number of returned rows. Value range: 0-1,000. Default value: 1,000.
    nextToken String
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    resultOutputFile String
    Used to save results.
    taskId string
    Unique task ID.
    id string
    isTransformDataType boolean
    Whether to convert the data type.
    maxResults number
    Maximum number of returned rows. Value range: 0-1,000. Default value: 1,000.
    nextToken string
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    resultOutputFile string
    Used to save results.
    task_id str
    Unique task ID.
    id str
    is_transform_data_type bool
    Whether to convert the data type.
    max_results float
    Maximum number of returned rows. Value range: 0-1,000. Default value: 1,000.
    next_token str
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    result_output_file str
    Used to save results.
    taskId String
    Unique task ID.
    id String
    isTransformDataType Boolean
    Whether to convert the data type.
    maxResults Number
    Maximum number of returned rows. Value range: 0-1,000. Default value: 1,000.
    nextToken String
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    resultOutputFile String
    Used to save results.

    getDlcTaskResult Result

    The following output properties are available:

    Id string
    TaskId string
    TaskInfos List<GetDlcTaskResultTaskInfo>
    The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is 2 (succeeded). Note: This field may return null, indicating that no valid values can be obtained.
    IsTransformDataType bool
    MaxResults double
    NextToken string
    ResultOutputFile string
    Id string
    TaskId string
    TaskInfos []GetDlcTaskResultTaskInfo
    The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is 2 (succeeded). Note: This field may return null, indicating that no valid values can be obtained.
    IsTransformDataType bool
    MaxResults float64
    NextToken string
    ResultOutputFile string
    id String
    taskId String
    taskInfos List<GetDlcTaskResultTaskInfo>
    The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is 2 (succeeded). Note: This field may return null, indicating that no valid values can be obtained.
    isTransformDataType Boolean
    maxResults Double
    nextToken String
    resultOutputFile String
    id string
    taskId string
    taskInfos GetDlcTaskResultTaskInfo[]
    The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is 2 (succeeded). Note: This field may return null, indicating that no valid values can be obtained.
    isTransformDataType boolean
    maxResults number
    nextToken string
    resultOutputFile string
    id str
    task_id str
    task_infos Sequence[GetDlcTaskResultTaskInfo]
    The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is 2 (succeeded). Note: This field may return null, indicating that no valid values can be obtained.
    is_transform_data_type bool
    max_results float
    next_token str
    result_output_file str
    id String
    taskId String
    taskInfos List<Property Map>
    The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is 2 (succeeded). Note: This field may return null, indicating that no valid values can be obtained.
    isTransformDataType Boolean
    maxResults Number
    nextToken String
    resultOutputFile String

    Supporting Types

    GetDlcTaskResultTaskInfo

    CreateTime string
    DataAmount double
    DatabaseName string
    DatasourceConnectionName string
    DisplayFormat string
    NextToken string
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    OutputMessage string
    OutputPath string
    Percentage double
    ProgressDetail string
    QueryResultTime double
    ResultSchemas List<GetDlcTaskResultTaskInfoResultSchema>
    ResultSet string
    RowAffectInfo string
    Sql string
    SqlType string
    State double
    TaskId string
    Unique task ID.
    TotalTime double
    UsedTime double
    CreateTime string
    DataAmount float64
    DatabaseName string
    DatasourceConnectionName string
    DisplayFormat string
    NextToken string
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    OutputMessage string
    OutputPath string
    Percentage float64
    ProgressDetail string
    QueryResultTime float64
    ResultSchemas []GetDlcTaskResultTaskInfoResultSchema
    ResultSet string
    RowAffectInfo string
    Sql string
    SqlType string
    State float64
    TaskId string
    Unique task ID.
    TotalTime float64
    UsedTime float64
    createTime String
    dataAmount Double
    databaseName String
    datasourceConnectionName String
    displayFormat String
    nextToken String
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    outputMessage String
    outputPath String
    percentage Double
    progressDetail String
    queryResultTime Double
    resultSchemas List<GetDlcTaskResultTaskInfoResultSchema>
    resultSet String
    rowAffectInfo String
    sql String
    sqlType String
    state Double
    taskId String
    Unique task ID.
    totalTime Double
    usedTime Double
    createTime string
    dataAmount number
    databaseName string
    datasourceConnectionName string
    displayFormat string
    nextToken string
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    outputMessage string
    outputPath string
    percentage number
    progressDetail string
    queryResultTime number
    resultSchemas GetDlcTaskResultTaskInfoResultSchema[]
    resultSet string
    rowAffectInfo string
    sql string
    sqlType string
    state number
    taskId string
    Unique task ID.
    totalTime number
    usedTime number
    create_time str
    data_amount float
    database_name str
    datasource_connection_name str
    display_format str
    next_token str
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    output_message str
    output_path str
    percentage float
    progress_detail str
    query_result_time float
    result_schemas Sequence[GetDlcTaskResultTaskInfoResultSchema]
    result_set str
    row_affect_info str
    sql str
    sql_type str
    state float
    task_id str
    Unique task ID.
    total_time float
    used_time float
    createTime String
    dataAmount Number
    databaseName String
    datasourceConnectionName String
    displayFormat String
    nextToken String
    The pagination information returned by the last response. This parameter can be omitted for the first response, where the data will be returned from the beginning. The data with a volume set by the MaxResults field is returned each time.
    outputMessage String
    outputPath String
    percentage Number
    progressDetail String
    queryResultTime Number
    resultSchemas List<Property Map>
    resultSet String
    rowAffectInfo String
    sql String
    sqlType String
    state Number
    taskId String
    Unique task ID.
    totalTime Number
    usedTime Number

    GetDlcTaskResultTaskInfoResultSchema

    Comment string
    CreateTime string
    IsPartition bool
    ModifiedTime string
    Name string
    Nullable string
    Position double
    Precision double
    Scale double
    Type string
    Comment string
    CreateTime string
    IsPartition bool
    ModifiedTime string
    Name string
    Nullable string
    Position float64
    Precision float64
    Scale float64
    Type string
    comment String
    createTime String
    isPartition Boolean
    modifiedTime String
    name String
    nullable String
    position Double
    precision Double
    scale Double
    type String
    comment string
    createTime string
    isPartition boolean
    modifiedTime string
    name string
    nullable string
    position number
    precision number
    scale number
    type string
    comment String
    createTime String
    isPartition Boolean
    modifiedTime String
    name String
    nullable String
    position Number
    precision Number
    scale Number
    type String

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.17 published on Thursday, Aug 14, 2025 by tencentcloudstack