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

tencentcloud.getTatCommand

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 command

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const command = tencentcloud.getTatCommand({
        commandType: "SHELL",
        createdBy: "TAT",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    command = tencentcloud.get_tat_command(command_type="SHELL",
        created_by="TAT")
    
    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.LookupTatCommand(ctx, &tencentcloud.LookupTatCommandArgs{
    			CommandType: pulumi.StringRef("SHELL"),
    			CreatedBy:   pulumi.StringRef("TAT"),
    		}, 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 command = Tencentcloud.GetTatCommand.Invoke(new()
        {
            CommandType = "SHELL",
            CreatedBy = "TAT",
        });
    
    });
    
    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.GetTatCommandArgs;
    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 command = TencentcloudFunctions.getTatCommand(GetTatCommandArgs.builder()
                .commandType("SHELL")
                .createdBy("TAT")
                .build());
    
        }
    }
    
    variables:
      command:
        fn::invoke:
          function: tencentcloud:getTatCommand
          arguments:
            commandType: SHELL
            createdBy: TAT
    

    Using getTatCommand

    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 getTatCommand(args: GetTatCommandArgs, opts?: InvokeOptions): Promise<GetTatCommandResult>
    function getTatCommandOutput(args: GetTatCommandOutputArgs, opts?: InvokeOptions): Output<GetTatCommandResult>
    def get_tat_command(command_id: Optional[str] = None,
                        command_name: Optional[str] = None,
                        command_type: Optional[str] = None,
                        created_by: Optional[str] = None,
                        id: Optional[str] = None,
                        result_output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTatCommandResult
    def get_tat_command_output(command_id: Optional[pulumi.Input[str]] = None,
                        command_name: Optional[pulumi.Input[str]] = None,
                        command_type: Optional[pulumi.Input[str]] = None,
                        created_by: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        result_output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTatCommandResult]
    func LookupTatCommand(ctx *Context, args *LookupTatCommandArgs, opts ...InvokeOption) (*LookupTatCommandResult, error)
    func LookupTatCommandOutput(ctx *Context, args *LookupTatCommandOutputArgs, opts ...InvokeOption) LookupTatCommandResultOutput

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

    public static class GetTatCommand 
    {
        public static Task<GetTatCommandResult> InvokeAsync(GetTatCommandArgs args, InvokeOptions? opts = null)
        public static Output<GetTatCommandResult> Invoke(GetTatCommandInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTatCommandResult> getTatCommand(GetTatCommandArgs args, InvokeOptions options)
    public static Output<GetTatCommandResult> getTatCommand(GetTatCommandArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTatCommand:getTatCommand
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CommandId string
    Command ID.
    CommandName string
    Command name.
    CommandType string
    Command type, Value is SHELL or POWERSHELL.
    CreatedBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    Id string
    ResultOutputFile string
    Used to save results.
    CommandId string
    Command ID.
    CommandName string
    Command name.
    CommandType string
    Command type, Value is SHELL or POWERSHELL.
    CreatedBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    Id string
    ResultOutputFile string
    Used to save results.
    commandId String
    Command ID.
    commandName String
    Command name.
    commandType String
    Command type, Value is SHELL or POWERSHELL.
    createdBy String
    Command creator. TAT indicates a public command and USER indicates a personal command.
    id String
    resultOutputFile String
    Used to save results.
    commandId string
    Command ID.
    commandName string
    Command name.
    commandType string
    Command type, Value is SHELL or POWERSHELL.
    createdBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    id string
    resultOutputFile string
    Used to save results.
    command_id str
    Command ID.
    command_name str
    Command name.
    command_type str
    Command type, Value is SHELL or POWERSHELL.
    created_by str
    Command creator. TAT indicates a public command and USER indicates a personal command.
    id str
    result_output_file str
    Used to save results.
    commandId String
    Command ID.
    commandName String
    Command name.
    commandType String
    Command type, Value is SHELL or POWERSHELL.
    createdBy String
    Command creator. TAT indicates a public command and USER indicates a personal command.
    id String
    resultOutputFile String
    Used to save results.

    getTatCommand Result

    The following output properties are available:

    CommandSets List<GetTatCommandCommandSet>
    List of command details.
    Id string
    CommandId string
    Command ID.
    CommandName string
    Command name.
    CommandType string
    Command type.
    CreatedBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    ResultOutputFile string
    CommandSets []GetTatCommandCommandSet
    List of command details.
    Id string
    CommandId string
    Command ID.
    CommandName string
    Command name.
    CommandType string
    Command type.
    CreatedBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    ResultOutputFile string
    commandSets List<GetTatCommandCommandSet>
    List of command details.
    id String
    commandId String
    Command ID.
    commandName String
    Command name.
    commandType String
    Command type.
    createdBy String
    Command creator. TAT indicates a public command and USER indicates a personal command.
    resultOutputFile String
    commandSets GetTatCommandCommandSet[]
    List of command details.
    id string
    commandId string
    Command ID.
    commandName string
    Command name.
    commandType string
    Command type.
    createdBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    resultOutputFile string
    command_sets Sequence[GetTatCommandCommandSet]
    List of command details.
    id str
    command_id str
    Command ID.
    command_name str
    Command name.
    command_type str
    Command type.
    created_by str
    Command creator. TAT indicates a public command and USER indicates a personal command.
    result_output_file str
    commandSets List<Property Map>
    List of command details.
    id String
    commandId String
    Command ID.
    commandName String
    Command name.
    commandType String
    Command type.
    createdBy String
    Command creator. TAT indicates a public command and USER indicates a personal command.
    resultOutputFile String

    Supporting Types

    GetTatCommandCommandSet

    CommandId string
    Command ID.
    CommandName string
    Command name.
    CommandType string
    Command type, Value is SHELL or POWERSHELL.
    Content string
    command.
    CreatedBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    CreatedTime string
    Command creation time.
    DefaultParameters string
    Default custom parameter value.
    Description string
    Command description.
    EnableParameter bool
    Whether to enable the custom parameter feature.
    FormattedDescription string
    Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
    OutputCosBucketUrl string
    The COS bucket URL for uploading logs.
    OutputCosKeyPrefix string
    The COS bucket directory where the logs are saved.
    Tags List<GetTatCommandCommandSetTag>
    Tags bound to the command. At most 10 tags are allowed.
    Timeout double
    Command timeout period.
    UpdatedTime string
    Command update time.
    Username string
    The user who executes the command on the instance.
    WorkingDirectory string
    Command execution path.
    CommandId string
    Command ID.
    CommandName string
    Command name.
    CommandType string
    Command type, Value is SHELL or POWERSHELL.
    Content string
    command.
    CreatedBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    CreatedTime string
    Command creation time.
    DefaultParameters string
    Default custom parameter value.
    Description string
    Command description.
    EnableParameter bool
    Whether to enable the custom parameter feature.
    FormattedDescription string
    Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
    OutputCosBucketUrl string
    The COS bucket URL for uploading logs.
    OutputCosKeyPrefix string
    The COS bucket directory where the logs are saved.
    Tags []GetTatCommandCommandSetTag
    Tags bound to the command. At most 10 tags are allowed.
    Timeout float64
    Command timeout period.
    UpdatedTime string
    Command update time.
    Username string
    The user who executes the command on the instance.
    WorkingDirectory string
    Command execution path.
    commandId String
    Command ID.
    commandName String
    Command name.
    commandType String
    Command type, Value is SHELL or POWERSHELL.
    content String
    command.
    createdBy String
    Command creator. TAT indicates a public command and USER indicates a personal command.
    createdTime String
    Command creation time.
    defaultParameters String
    Default custom parameter value.
    description String
    Command description.
    enableParameter Boolean
    Whether to enable the custom parameter feature.
    formattedDescription String
    Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
    outputCosBucketUrl String
    The COS bucket URL for uploading logs.
    outputCosKeyPrefix String
    The COS bucket directory where the logs are saved.
    tags List<GetTatCommandCommandSetTag>
    Tags bound to the command. At most 10 tags are allowed.
    timeout Double
    Command timeout period.
    updatedTime String
    Command update time.
    username String
    The user who executes the command on the instance.
    workingDirectory String
    Command execution path.
    commandId string
    Command ID.
    commandName string
    Command name.
    commandType string
    Command type, Value is SHELL or POWERSHELL.
    content string
    command.
    createdBy string
    Command creator. TAT indicates a public command and USER indicates a personal command.
    createdTime string
    Command creation time.
    defaultParameters string
    Default custom parameter value.
    description string
    Command description.
    enableParameter boolean
    Whether to enable the custom parameter feature.
    formattedDescription string
    Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
    outputCosBucketUrl string
    The COS bucket URL for uploading logs.
    outputCosKeyPrefix string
    The COS bucket directory where the logs are saved.
    tags GetTatCommandCommandSetTag[]
    Tags bound to the command. At most 10 tags are allowed.
    timeout number
    Command timeout period.
    updatedTime string
    Command update time.
    username string
    The user who executes the command on the instance.
    workingDirectory string
    Command execution path.
    command_id str
    Command ID.
    command_name str
    Command name.
    command_type str
    Command type, Value is SHELL or POWERSHELL.
    content str
    command.
    created_by str
    Command creator. TAT indicates a public command and USER indicates a personal command.
    created_time str
    Command creation time.
    default_parameters str
    Default custom parameter value.
    description str
    Command description.
    enable_parameter bool
    Whether to enable the custom parameter feature.
    formatted_description str
    Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
    output_cos_bucket_url str
    The COS bucket URL for uploading logs.
    output_cos_key_prefix str
    The COS bucket directory where the logs are saved.
    tags Sequence[GetTatCommandCommandSetTag]
    Tags bound to the command. At most 10 tags are allowed.
    timeout float
    Command timeout period.
    updated_time str
    Command update time.
    username str
    The user who executes the command on the instance.
    working_directory str
    Command execution path.
    commandId String
    Command ID.
    commandName String
    Command name.
    commandType String
    Command type, Value is SHELL or POWERSHELL.
    content String
    command.
    createdBy String
    Command creator. TAT indicates a public command and USER indicates a personal command.
    createdTime String
    Command creation time.
    defaultParameters String
    Default custom parameter value.
    description String
    Command description.
    enableParameter Boolean
    Whether to enable the custom parameter feature.
    formattedDescription String
    Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
    outputCosBucketUrl String
    The COS bucket URL for uploading logs.
    outputCosKeyPrefix String
    The COS bucket directory where the logs are saved.
    tags List<Property Map>
    Tags bound to the command. At most 10 tags are allowed.
    timeout Number
    Command timeout period.
    updatedTime String
    Command update time.
    username String
    The user who executes the command on the instance.
    workingDirectory String
    Command execution path.

    GetTatCommandCommandSetTag

    Key string
    Tag key.
    Value string
    Tag value.
    Key string
    Tag key.
    Value string
    Tag value.
    key String
    Tag key.
    value String
    Tag value.
    key string
    Tag key.
    value string
    Tag value.
    key str
    Tag key.
    value str
    Tag value.
    key String
    Tag key.
    value String
    Tag value.

    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