tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTatInvocationTask
Explore with Pulumi AI
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<Get
Tat Invocation Task Filter> - 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 string
- Invocation
Task List<string>Ids - 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 stringFile - Used to save results.
- Filters
[]Get
Tat Invocation Task Filter - 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 string
- Invocation
Task []stringIds - 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 stringFile - Used to save results.
- filters
List<Get
Tat Invocation Task Filter> - 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 Boolean - Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
- id String
- invocation
Task List<String>Ids - 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 StringFile - Used to save results.
- filters
Get
Tat Invocation Task Filter[] - 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 boolean - Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
- id string
- invocation
Task string[]Ids - 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 stringFile - Used to save results.
- filters
Sequence[Get
Tat Invocation Task Filter] - 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_ Sequence[str]ids - 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_ strfile - 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.
- hide
Output Boolean - Whether to hide the output. Valid values:True (default): Hide the outputFalse: Show the output.
- id String
- invocation
Task List<String>Ids - 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 StringFile - Used to save results.
getTatInvocationTask Result
The following output properties are available:
- Id string
- Invocation
Task List<GetSets Tat Invocation Task Invocation Task Set> - List of execution tasks.
- Filters
List<Get
Tat Invocation Task Filter> - Hide
Output bool - Invocation
Task List<string>Ids - Result
Output stringFile
- Id string
- Invocation
Task []GetSets Tat Invocation Task Invocation Task Set - List of execution tasks.
- Filters
[]Get
Tat Invocation Task Filter - Hide
Output bool - Invocation
Task []stringIds - Result
Output stringFile
- id String
- invocation
Task List<GetSets Tat Invocation Task Invocation Task Set> - List of execution tasks.
- filters
List<Get
Tat Invocation Task Filter> - hide
Output Boolean - invocation
Task List<String>Ids - result
Output StringFile
- id string
- invocation
Task GetSets Tat Invocation Task Invocation Task Set[] - List of execution tasks.
- filters
Get
Tat Invocation Task Filter[] - hide
Output boolean - invocation
Task string[]Ids - result
Output stringFile
- id str
- invocation_
task_ Sequence[Getsets Tat Invocation Task Invocation Task Set] - List of execution tasks.
- filters
Sequence[Get
Tat Invocation Task Filter] - hide_
output bool - invocation_
task_ Sequence[str]ids - result_
output_ strfile
- id String
- invocation
Task List<Property Map>Sets - List of execution tasks.
- filters List<Property Map>
- hide
Output Boolean - invocation
Task List<String>Ids - result
Output StringFile
Supporting Types
GetTatInvocationTaskFilter
GetTatInvocationTaskInvocationTaskSet
- Command
Documents List<GetTat Invocation Task Invocation Task Set Command Document> - Command details of the execution task.
- Command
Id string - Command ID.
- Created
Time string - Creation time.
- End
Time string - End time of the execution task.
- Error
Info string - Error message displayed when the execution task fails.
- Instance
Id string - Instance ID.
- Invocation
Id string - Execution activity ID.
- Invocation
Source string - Invocation source.
- Invocation
Task stringId - Execution task ID.
- Start
Time string - Start time of the execution task.
- Task
Results List<GetTat Invocation Task Invocation Task Set Task Result> - Execution result.
- Task
Status 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).
- Updated
Time string - Update time.
- Command
Documents []GetTat Invocation Task Invocation Task Set Command Document - Command details of the execution task.
- Command
Id string - Command ID.
- Created
Time string - Creation time.
- End
Time string - End time of the execution task.
- Error
Info string - Error message displayed when the execution task fails.
- Instance
Id string - Instance ID.
- Invocation
Id string - Execution activity ID.
- Invocation
Source string - Invocation source.
- Invocation
Task stringId - Execution task ID.
- Start
Time string - Start time of the execution task.
- Task
Results []GetTat Invocation Task Invocation Task Set Task Result - Execution result.
- Task
Status 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).
- Updated
Time string - Update time.
- command
Documents List<GetTat Invocation Task Invocation Task Set Command Document> - Command details of the execution task.
- command
Id String - Command ID.
- created
Time String - Creation time.
- end
Time String - End time of the execution task.
- error
Info String - Error message displayed when the execution task fails.
- instance
Id String - Instance ID.
- invocation
Id String - Execution activity ID.
- invocation
Source String - Invocation source.
- invocation
Task StringId - Execution task ID.
- start
Time String - Start time of the execution task.
- task
Results List<GetTat Invocation Task Invocation Task Set Task Result> - Execution result.
- task
Status 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).
- updated
Time String - Update time.
- command
Documents GetTat Invocation Task Invocation Task Set Command Document[] - Command details of the execution task.
- command
Id string - Command ID.
- created
Time string - Creation time.
- end
Time string - End time of the execution task.
- error
Info string - Error message displayed when the execution task fails.
- instance
Id string - Instance ID.
- invocation
Id string - Execution activity ID.
- invocation
Source string - Invocation source.
- invocation
Task stringId - Execution task ID.
- start
Time string - Start time of the execution task.
- task
Results GetTat Invocation Task Invocation Task Set Task Result[] - Execution result.
- task
Status 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).
- updated
Time string - Update time.
- command_
documents Sequence[GetTat Invocation Task Invocation Task Set Command Document] - 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_ strid - Execution task ID.
- start_
time str - Start time of the execution task.
- task_
results Sequence[GetTat Invocation Task Invocation Task Set Task Result] - 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.
- command
Documents List<Property Map> - Command details of the execution task.
- command
Id String - Command ID.
- created
Time String - Creation time.
- end
Time String - End time of the execution task.
- error
Info String - Error message displayed when the execution task fails.
- instance
Id String - Instance ID.
- invocation
Id String - Execution activity ID.
- invocation
Source String - Invocation source.
- invocation
Task StringId - Execution task ID.
- start
Time String - Start time of the execution task.
- task
Results List<Property Map> - Execution result.
- task
Status 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).
- updated
Time String - Update time.
GetTatInvocationTaskInvocationTaskSetCommandDocument
- Command
Type string - Command type.
- Content string
- Base64-encoded command.
- Output
Cos stringBucket Url - URL of the COS bucket to store the output.
- Output
Cos stringKey Prefix - Prefix of the output file name.
- Timeout double
- Timeout period.
- Username string
- The user who executes the command.
- Working
Directory string - Execution path.
- Command
Type string - Command type.
- Content string
- Base64-encoded command.
- Output
Cos stringBucket Url - URL of the COS bucket to store the output.
- Output
Cos stringKey Prefix - Prefix of the output file name.
- Timeout float64
- Timeout period.
- Username string
- The user who executes the command.
- Working
Directory string - Execution path.
- command
Type String - Command type.
- content String
- Base64-encoded command.
- output
Cos StringBucket Url - URL of the COS bucket to store the output.
- output
Cos StringKey Prefix - Prefix of the output file name.
- timeout Double
- Timeout period.
- username String
- The user who executes the command.
- working
Directory String - Execution path.
- command
Type string - Command type.
- content string
- Base64-encoded command.
- output
Cos stringBucket Url - URL of the COS bucket to store the output.
- output
Cos stringKey Prefix - Prefix of the output file name.
- timeout number
- Timeout period.
- username string
- The user who executes the command.
- working
Directory string - Execution path.
- command_
type str - Command type.
- content str
- Base64-encoded command.
- output_
cos_ strbucket_ url - URL of the COS bucket to store the output.
- output_
cos_ strkey_ prefix - Prefix of the output file name.
- timeout float
- Timeout period.
- username str
- The user who executes the command.
- working_
directory str - Execution path.
- command
Type String - Command type.
- content String
- Base64-encoded command.
- output
Cos StringBucket Url - URL of the COS bucket to store the output.
- output
Cos StringKey Prefix - Prefix of the output file name.
- timeout Number
- Timeout period.
- username String
- The user who executes the command.
- working
Directory String - Execution path.
GetTatInvocationTaskInvocationTaskSetTaskResult
- Dropped double
- Dropped bytes of the command output.
- Exec
End stringTime - Time when the execution is ended.
- Exec
Start stringTime - Time when the execution is started.
- Exit
Code double - ExitCode of the execution.
- Output string
- Base64-encoded command output. The maximum length is 24 KB.
- Output
Upload stringCos Error Info - Error message for uploading logs to COS.
- Output
Url string - COS URL of the logs.
- Dropped float64
- Dropped bytes of the command output.
- Exec
End stringTime - Time when the execution is ended.
- Exec
Start stringTime - Time when the execution is started.
- Exit
Code float64 - ExitCode of the execution.
- Output string
- Base64-encoded command output. The maximum length is 24 KB.
- Output
Upload stringCos Error Info - Error message for uploading logs to COS.
- Output
Url string - COS URL of the logs.
- dropped Double
- Dropped bytes of the command output.
- exec
End StringTime - Time when the execution is ended.
- exec
Start StringTime - Time when the execution is started.
- exit
Code Double - ExitCode of the execution.
- output String
- Base64-encoded command output. The maximum length is 24 KB.
- output
Upload StringCos Error Info - Error message for uploading logs to COS.
- output
Url String - COS URL of the logs.
- dropped number
- Dropped bytes of the command output.
- exec
End stringTime - Time when the execution is ended.
- exec
Start stringTime - Time when the execution is started.
- exit
Code number - ExitCode of the execution.
- output string
- Base64-encoded command output. The maximum length is 24 KB.
- output
Upload stringCos Error Info - Error message for uploading logs to COS.
- output
Url string - COS URL of the logs.
- dropped float
- Dropped bytes of the command output.
- exec_
end_ strtime - Time when the execution is ended.
- exec_
start_ strtime - 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_ strcos_ error_ info - Error message for uploading logs to COS.
- output_
url str - COS URL of the logs.
- dropped Number
- Dropped bytes of the command output.
- exec
End StringTime - Time when the execution is ended.
- exec
Start StringTime - Time when the execution is started.
- exit
Code Number - ExitCode of the execution.
- output String
- Base64-encoded command output. The maximum length is 24 KB.
- output
Upload StringCos Error Info - Error message for uploading logs to COS.
- output
Url 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack