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

tencentcloud.getTatInvocationTask

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 tat invocation_task

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const invocationTask = tencentcloud.getTatInvocationTask({
        filters: [{
            name: "instance-id",
            values: ["ins-p4pq4gaq"],
        }],
        hideOutput: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    invocation_task = tencentcloud.get_tat_invocation_task(filters=[{
            "name": "instance-id",
            "values": ["ins-p4pq4gaq"],
        }],
        hide_output=True)
    
    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.GetTatInvocationTask(ctx, &tencentcloud.GetTatInvocationTaskArgs{
    			Filters: []tencentcloud.GetTatInvocationTaskFilter{
    				{
    					Name: "instance-id",
    					Values: []string{
    						"ins-p4pq4gaq",
    					},
    				},
    			},
    			HideOutput: pulumi.BoolRef(true),
    		}, 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 invocationTask = Tencentcloud.GetTatInvocationTask.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetTatInvocationTaskFilterInputArgs
                {
                    Name = "instance-id",
                    Values = new[]
                    {
                        "ins-p4pq4gaq",
                    },
                },
            },
            HideOutput = true,
        });
    
    });
    
    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.GetTatInvocationTaskArgs;
    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 invocationTask = TencentcloudFunctions.getTatInvocationTask(GetTatInvocationTaskArgs.builder()
                .filters(GetTatInvocationTaskFilterArgs.builder()
                    .name("instance-id")
                    .values("ins-p4pq4gaq")
                    .build())
                .hideOutput(true)
                .build());
    
        }
    }
    
    variables:
      invocationTask:
        fn::invoke:
          function: tencentcloud:getTatInvocationTask
          arguments:
            filters:
              - name: instance-id
                values:
                  - ins-p4pq4gaq
            hideOutput: true
    

    Using getTatInvocationTask

    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 getTatInvocationTask(args: GetTatInvocationTaskArgs, opts?: InvokeOptions): Promise<GetTatInvocationTaskResult>
    function getTatInvocationTaskOutput(args: GetTatInvocationTaskOutputArgs, opts?: InvokeOptions): Output<GetTatInvocationTaskResult>
    def get_tat_invocation_task(filters: Optional[Sequence[GetTatInvocationTaskFilter]] = None,
                                hide_output: Optional[bool] = None,
                                id: Optional[str] = None,
                                invocation_task_ids: Optional[Sequence[str]] = None,
                                result_output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetTatInvocationTaskResult
    def get_tat_invocation_task_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTatInvocationTaskFilterArgs]]]] = None,
                                hide_output: Optional[pulumi.Input[bool]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                invocation_task_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                result_output_file: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetTatInvocationTaskResult]
    func GetTatInvocationTask(ctx *Context, args *GetTatInvocationTaskArgs, opts ...InvokeOption) (*GetTatInvocationTaskResult, error)
    func GetTatInvocationTaskOutput(ctx *Context, args *GetTatInvocationTaskOutputArgs, opts ...InvokeOption) GetTatInvocationTaskResultOutput

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

    public static class GetTatInvocationTask 
    {
        public static Task<GetTatInvocationTaskResult> InvokeAsync(GetTatInvocationTaskArgs args, InvokeOptions? opts = null)
        public static Output<GetTatInvocationTaskResult> Invoke(GetTatInvocationTaskInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTatInvocationTaskResult> getTatInvocationTask(GetTatInvocationTaskArgs args, InvokeOptions options)
    public static Output<GetTatInvocationTaskResult> getTatInvocationTask(GetTatInvocationTaskArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTatInvocationTask:getTatInvocationTask
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetTatInvocationTaskFilter>
    Filter conditions.invocation-id - String - Required: No - (Filter condition) Filter by the execution activity ID.invocation-task-id - String - Required: No - (Filter condition) Filter by the execution task ID.instance-id - String - Required: No - (Filter condition) Filter by the instance ID.command-id - String - Required: No - (Filter condition) Filter by the command ID.Up to 10 Filters are allowed for each request. Each filter can have up to five Filter.Values. InvocationTaskIds and Filters cannot be specified at the same time.
    HideOutput bool
    Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
    Id string
    InvocationTaskIds List<string>
    List of execution task IDs. Up to 100 IDs are allowed for each request. InvocationTaskIds and Filters cannot be specified at the same time.
    ResultOutputFile string
    Used to save results.
    Filters []GetTatInvocationTaskFilter
    Filter conditions.invocation-id - String - Required: No - (Filter condition) Filter by the execution activity ID.invocation-task-id - String - Required: No - (Filter condition) Filter by the execution task ID.instance-id - String - Required: No - (Filter condition) Filter by the instance ID.command-id - String - Required: No - (Filter condition) Filter by the command ID.Up to 10 Filters are allowed for each request. Each filter can have up to five Filter.Values. InvocationTaskIds and Filters cannot be specified at the same time.
    HideOutput bool
    Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
    Id string
    InvocationTaskIds []string
    List of execution task IDs. Up to 100 IDs are allowed for each request. InvocationTaskIds and Filters cannot be specified at the same time.
    ResultOutputFile string
    Used to save results.
    filters List<GetTatInvocationTaskFilter>
    Filter conditions.invocation-id - String - Required: No - (Filter condition) Filter by the execution activity ID.invocation-task-id - String - Required: No - (Filter condition) Filter by the execution task ID.instance-id - String - Required: No - (Filter condition) Filter by the instance ID.command-id - String - Required: No - (Filter condition) Filter by the command ID.Up to 10 Filters are allowed for each request. Each filter can have up to five Filter.Values. InvocationTaskIds and Filters cannot be specified at the same time.
    hideOutput Boolean
    Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
    id String
    invocationTaskIds List<String>
    List of execution task IDs. Up to 100 IDs are allowed for each request. InvocationTaskIds and Filters cannot be specified at the same time.
    resultOutputFile String
    Used to save results.
    filters GetTatInvocationTaskFilter[]
    Filter conditions.invocation-id - String - Required: No - (Filter condition) Filter by the execution activity ID.invocation-task-id - String - Required: No - (Filter condition) Filter by the execution task ID.instance-id - String - Required: No - (Filter condition) Filter by the instance ID.command-id - String - Required: No - (Filter condition) Filter by the command ID.Up to 10 Filters are allowed for each request. Each filter can have up to five Filter.Values. InvocationTaskIds and Filters cannot be specified at the same time.
    hideOutput boolean
    Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
    id string
    invocationTaskIds string[]
    List of execution task IDs. Up to 100 IDs are allowed for each request. InvocationTaskIds and Filters cannot be specified at the same time.
    resultOutputFile string
    Used to save results.
    filters Sequence[GetTatInvocationTaskFilter]
    Filter conditions.invocation-id - String - Required: No - (Filter condition) Filter by the execution activity ID.invocation-task-id - String - Required: No - (Filter condition) Filter by the execution task ID.instance-id - String - Required: No - (Filter condition) Filter by the instance ID.command-id - String - Required: No - (Filter condition) Filter by the command ID.Up to 10 Filters are allowed for each request. Each filter can have up to five Filter.Values. InvocationTaskIds and Filters cannot be specified at the same time.
    hide_output bool
    Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
    id str
    invocation_task_ids Sequence[str]
    List of execution task IDs. Up to 100 IDs are allowed for each request. InvocationTaskIds and Filters cannot be specified at the same time.
    result_output_file str
    Used to save results.
    filters List<Property Map>
    Filter conditions.invocation-id - String - Required: No - (Filter condition) Filter by the execution activity ID.invocation-task-id - String - Required: No - (Filter condition) Filter by the execution task ID.instance-id - String - Required: No - (Filter condition) Filter by the instance ID.command-id - String - Required: No - (Filter condition) Filter by the command ID.Up to 10 Filters are allowed for each request. Each filter can have up to five Filter.Values. InvocationTaskIds and Filters cannot be specified at the same time.
    hideOutput Boolean
    Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
    id String
    invocationTaskIds List<String>
    List of execution task IDs. Up to 100 IDs are allowed for each request. InvocationTaskIds and Filters cannot be specified at the same time.
    resultOutputFile String
    Used to save results.

    getTatInvocationTask Result

    The following output properties are available:

    Supporting Types

    GetTatInvocationTaskFilter

    Name string
    Field to be filtered.
    Values List<string>
    Filter values of the field.
    Name string
    Field to be filtered.
    Values []string
    Filter values of the field.
    name String
    Field to be filtered.
    values List<String>
    Filter values of the field.
    name string
    Field to be filtered.
    values string[]
    Filter values of the field.
    name str
    Field to be filtered.
    values Sequence[str]
    Filter values of the field.
    name String
    Field to be filtered.
    values List<String>
    Filter values of the field.

    GetTatInvocationTaskInvocationTaskSet

    CommandDocuments List<GetTatInvocationTaskInvocationTaskSetCommandDocument>
    Command details of the execution task.
    CommandId string
    Command ID.
    CreatedTime string
    Creation time.
    EndTime string
    End time of the execution task.
    ErrorInfo string
    Error message displayed when the execution task fails.
    InstanceId string
    Instance ID.
    InvocationId string
    Execution activity ID.
    InvocationSource string
    Invocation source.
    InvocationTaskId string
    Execution task ID.
    StartTime string
    Start time of the execution task.
    TaskResults List<GetTatInvocationTaskInvocationTaskSetTaskResult>
    Execution result.
    TaskStatus string
    Execution task status. Valid values:PENDING: PendingDELIVERING: DeliveringDELIVER_DELAYED: Delivery delayedDELIVER_FAILED: Delivery failedSTART_FAILED: Failed to start the commandRUNNING: RunningSUCCESS: SuccessFAILED: Failed to execute the command. The exit code is not 0 after execution.TIMEOUT: Command timed outTASK_TIMEOUT: Task timed outCANCELLING: CancelingCANCELLED: Canceled (canceled before execution)TERMINATED: Terminated (canceled during execution).
    UpdatedTime string
    Update time.
    CommandDocuments []GetTatInvocationTaskInvocationTaskSetCommandDocument
    Command details of the execution task.
    CommandId string
    Command ID.
    CreatedTime string
    Creation time.
    EndTime string
    End time of the execution task.
    ErrorInfo string
    Error message displayed when the execution task fails.
    InstanceId string
    Instance ID.
    InvocationId string
    Execution activity ID.
    InvocationSource string
    Invocation source.
    InvocationTaskId string
    Execution task ID.
    StartTime string
    Start time of the execution task.
    TaskResults []GetTatInvocationTaskInvocationTaskSetTaskResult
    Execution result.
    TaskStatus string
    Execution task status. Valid values:PENDING: PendingDELIVERING: DeliveringDELIVER_DELAYED: Delivery delayedDELIVER_FAILED: Delivery failedSTART_FAILED: Failed to start the commandRUNNING: RunningSUCCESS: SuccessFAILED: Failed to execute the command. The exit code is not 0 after execution.TIMEOUT: Command timed outTASK_TIMEOUT: Task timed outCANCELLING: CancelingCANCELLED: Canceled (canceled before execution)TERMINATED: Terminated (canceled during execution).
    UpdatedTime string
    Update time.
    commandDocuments List<GetTatInvocationTaskInvocationTaskSetCommandDocument>
    Command details of the execution task.
    commandId String
    Command ID.
    createdTime String
    Creation time.
    endTime String
    End time of the execution task.
    errorInfo String
    Error message displayed when the execution task fails.
    instanceId String
    Instance ID.
    invocationId String
    Execution activity ID.
    invocationSource String
    Invocation source.
    invocationTaskId String
    Execution task ID.
    startTime String
    Start time of the execution task.
    taskResults List<GetTatInvocationTaskInvocationTaskSetTaskResult>
    Execution result.
    taskStatus String
    Execution task status. Valid values:PENDING: PendingDELIVERING: DeliveringDELIVER_DELAYED: Delivery delayedDELIVER_FAILED: Delivery failedSTART_FAILED: Failed to start the commandRUNNING: RunningSUCCESS: SuccessFAILED: Failed to execute the command. The exit code is not 0 after execution.TIMEOUT: Command timed outTASK_TIMEOUT: Task timed outCANCELLING: CancelingCANCELLED: Canceled (canceled before execution)TERMINATED: Terminated (canceled during execution).
    updatedTime String
    Update time.
    commandDocuments GetTatInvocationTaskInvocationTaskSetCommandDocument[]
    Command details of the execution task.
    commandId string
    Command ID.
    createdTime string
    Creation time.
    endTime string
    End time of the execution task.
    errorInfo string
    Error message displayed when the execution task fails.
    instanceId string
    Instance ID.
    invocationId string
    Execution activity ID.
    invocationSource string
    Invocation source.
    invocationTaskId string
    Execution task ID.
    startTime string
    Start time of the execution task.
    taskResults GetTatInvocationTaskInvocationTaskSetTaskResult[]
    Execution result.
    taskStatus string
    Execution task status. Valid values:PENDING: PendingDELIVERING: DeliveringDELIVER_DELAYED: Delivery delayedDELIVER_FAILED: Delivery failedSTART_FAILED: Failed to start the commandRUNNING: RunningSUCCESS: SuccessFAILED: Failed to execute the command. The exit code is not 0 after execution.TIMEOUT: Command timed outTASK_TIMEOUT: Task timed outCANCELLING: CancelingCANCELLED: Canceled (canceled before execution)TERMINATED: Terminated (canceled during execution).
    updatedTime string
    Update time.
    command_documents Sequence[GetTatInvocationTaskInvocationTaskSetCommandDocument]
    Command details of the execution task.
    command_id str
    Command ID.
    created_time str
    Creation time.
    end_time str
    End time of the execution task.
    error_info str
    Error message displayed when the execution task fails.
    instance_id str
    Instance ID.
    invocation_id str
    Execution activity ID.
    invocation_source str
    Invocation source.
    invocation_task_id str
    Execution task ID.
    start_time str
    Start time of the execution task.
    task_results Sequence[GetTatInvocationTaskInvocationTaskSetTaskResult]
    Execution result.
    task_status str
    Execution task status. Valid values:PENDING: PendingDELIVERING: DeliveringDELIVER_DELAYED: Delivery delayedDELIVER_FAILED: Delivery failedSTART_FAILED: Failed to start the commandRUNNING: RunningSUCCESS: SuccessFAILED: Failed to execute the command. The exit code is not 0 after execution.TIMEOUT: Command timed outTASK_TIMEOUT: Task timed outCANCELLING: CancelingCANCELLED: Canceled (canceled before execution)TERMINATED: Terminated (canceled during execution).
    updated_time str
    Update time.
    commandDocuments List<Property Map>
    Command details of the execution task.
    commandId String
    Command ID.
    createdTime String
    Creation time.
    endTime String
    End time of the execution task.
    errorInfo String
    Error message displayed when the execution task fails.
    instanceId String
    Instance ID.
    invocationId String
    Execution activity ID.
    invocationSource String
    Invocation source.
    invocationTaskId String
    Execution task ID.
    startTime String
    Start time of the execution task.
    taskResults List<Property Map>
    Execution result.
    taskStatus String
    Execution task status. Valid values:PENDING: PendingDELIVERING: DeliveringDELIVER_DELAYED: Delivery delayedDELIVER_FAILED: Delivery failedSTART_FAILED: Failed to start the commandRUNNING: RunningSUCCESS: SuccessFAILED: Failed to execute the command. The exit code is not 0 after execution.TIMEOUT: Command timed outTASK_TIMEOUT: Task timed outCANCELLING: CancelingCANCELLED: Canceled (canceled before execution)TERMINATED: Terminated (canceled during execution).
    updatedTime String
    Update time.

    GetTatInvocationTaskInvocationTaskSetCommandDocument

    CommandType string
    Command type.
    Content string
    Base64-encoded command.
    OutputCosBucketUrl string
    URL of the COS bucket to store the output.
    OutputCosKeyPrefix string
    Prefix of the output file name.
    Timeout double
    Timeout period.
    Username string
    The user who executes the command.
    WorkingDirectory string
    Execution path.
    CommandType string
    Command type.
    Content string
    Base64-encoded command.
    OutputCosBucketUrl string
    URL of the COS bucket to store the output.
    OutputCosKeyPrefix string
    Prefix of the output file name.
    Timeout float64
    Timeout period.
    Username string
    The user who executes the command.
    WorkingDirectory string
    Execution path.
    commandType String
    Command type.
    content String
    Base64-encoded command.
    outputCosBucketUrl String
    URL of the COS bucket to store the output.
    outputCosKeyPrefix String
    Prefix of the output file name.
    timeout Double
    Timeout period.
    username String
    The user who executes the command.
    workingDirectory String
    Execution path.
    commandType string
    Command type.
    content string
    Base64-encoded command.
    outputCosBucketUrl string
    URL of the COS bucket to store the output.
    outputCosKeyPrefix string
    Prefix of the output file name.
    timeout number
    Timeout period.
    username string
    The user who executes the command.
    workingDirectory string
    Execution path.
    command_type str
    Command type.
    content str
    Base64-encoded command.
    output_cos_bucket_url str
    URL of the COS bucket to store the output.
    output_cos_key_prefix str
    Prefix of the output file name.
    timeout float
    Timeout period.
    username str
    The user who executes the command.
    working_directory str
    Execution path.
    commandType String
    Command type.
    content String
    Base64-encoded command.
    outputCosBucketUrl String
    URL of the COS bucket to store the output.
    outputCosKeyPrefix String
    Prefix of the output file name.
    timeout Number
    Timeout period.
    username String
    The user who executes the command.
    workingDirectory String
    Execution path.

    GetTatInvocationTaskInvocationTaskSetTaskResult

    Dropped double
    Dropped bytes of the command output.
    ExecEndTime string
    Time when the execution is ended.
    ExecStartTime string
    Time when the execution is started.
    ExitCode double
    ExitCode of the execution.
    Output string
    Base64-encoded command output. The maximum length is 24 KB.
    OutputUploadCosErrorInfo string
    Error message for uploading logs to COS.
    OutputUrl string
    COS URL of the logs.
    Dropped float64
    Dropped bytes of the command output.
    ExecEndTime string
    Time when the execution is ended.
    ExecStartTime string
    Time when the execution is started.
    ExitCode float64
    ExitCode of the execution.
    Output string
    Base64-encoded command output. The maximum length is 24 KB.
    OutputUploadCosErrorInfo string
    Error message for uploading logs to COS.
    OutputUrl string
    COS URL of the logs.
    dropped Double
    Dropped bytes of the command output.
    execEndTime String
    Time when the execution is ended.
    execStartTime String
    Time when the execution is started.
    exitCode Double
    ExitCode of the execution.
    output String
    Base64-encoded command output. The maximum length is 24 KB.
    outputUploadCosErrorInfo String
    Error message for uploading logs to COS.
    outputUrl String
    COS URL of the logs.
    dropped number
    Dropped bytes of the command output.
    execEndTime string
    Time when the execution is ended.
    execStartTime string
    Time when the execution is started.
    exitCode number
    ExitCode of the execution.
    output string
    Base64-encoded command output. The maximum length is 24 KB.
    outputUploadCosErrorInfo string
    Error message for uploading logs to COS.
    outputUrl string
    COS URL of the logs.
    dropped float
    Dropped bytes of the command output.
    exec_end_time str
    Time when the execution is ended.
    exec_start_time str
    Time when the execution is started.
    exit_code float
    ExitCode of the execution.
    output str
    Base64-encoded command output. The maximum length is 24 KB.
    output_upload_cos_error_info str
    Error message for uploading logs to COS.
    output_url str
    COS URL of the logs.
    dropped Number
    Dropped bytes of the command output.
    execEndTime String
    Time when the execution is ended.
    execStartTime String
    Time when the execution is started.
    exitCode Number
    ExitCode of the execution.
    output String
    Base64-encoded command output. The maximum length is 24 KB.
    outputUploadCosErrorInfo String
    Error message for uploading logs to COS.
    outputUrl String
    COS URL of the logs.

    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