tencentcloud.TatCommand
Explore with Pulumi AI
Provides a resource to create a TAT command
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TatCommand("example", {
commandName: "tf-example",
commandType: "SHELL",
content: `#!/bin/bash
if [ "(id -u)" != "0" ]; then
echo "Please run this script as the root user." >&2
exit 1
fi
ps aux
`,
description: "Terraform demo.",
tags: [{
key: "createBy",
value: "Terraform",
}],
timeout: 50,
username: "root",
workingDirectory: "/root",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TatCommand("example",
command_name="tf-example",
command_type="SHELL",
content="""#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as the root user." >&2
exit 1
fi
ps aux
""",
description="Terraform demo.",
tags=[{
"key": "createBy",
"value": "Terraform",
}],
timeout=50,
username="root",
working_directory="/root")
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.NewTatCommand(ctx, "example", &tencentcloud.TatCommandArgs{
CommandName: pulumi.String("tf-example"),
CommandType: pulumi.String("SHELL"),
Content: pulumi.String(`#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as the root user." >&2
exit 1
fi
ps aux
`),
Description: pulumi.String("Terraform demo."),
Tags: tencentcloud.TatCommandTagArray{
&tencentcloud.TatCommandTagArgs{
Key: pulumi.String("createBy"),
Value: pulumi.String("Terraform"),
},
},
Timeout: pulumi.Float64(50),
Username: pulumi.String("root"),
WorkingDirectory: pulumi.String("/root"),
})
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 = new Tencentcloud.TatCommand("example", new()
{
CommandName = "tf-example",
CommandType = "SHELL",
Content = @"#!/bin/bash
if [ ""$(id -u)"" != ""0"" ]; then
echo ""Please run this script as the root user."" >&2
exit 1
fi
ps aux
",
Description = "Terraform demo.",
Tags = new[]
{
new Tencentcloud.Inputs.TatCommandTagArgs
{
Key = "createBy",
Value = "Terraform",
},
},
Timeout = 50,
Username = "root",
WorkingDirectory = "/root",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TatCommand;
import com.pulumi.tencentcloud.TatCommandArgs;
import com.pulumi.tencentcloud.inputs.TatCommandTagArgs;
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) {
var example = new TatCommand("example", TatCommandArgs.builder()
.commandName("tf-example")
.commandType("SHELL")
.content("""
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as the root user." >&2
exit 1
fi
ps aux
""")
.description("Terraform demo.")
.tags(TatCommandTagArgs.builder()
.key("createBy")
.value("Terraform")
.build())
.timeout(50)
.username("root")
.workingDirectory("/root")
.build());
}
}
resources:
example:
type: tencentcloud:TatCommand
properties:
commandName: tf-example
commandType: SHELL
content: |+
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as the root user." >&2
exit 1
fi
ps aux
description: Terraform demo.
tags:
- key: createBy
value: Terraform
timeout: 50
username: root
workingDirectory: /root
Create TatCommand Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TatCommand(name: string, args: TatCommandArgs, opts?: CustomResourceOptions);
@overload
def TatCommand(resource_name: str,
args: TatCommandArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TatCommand(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
command_name: Optional[str] = None,
output_cos_bucket_url: Optional[str] = None,
default_parameters: Optional[str] = None,
description: Optional[str] = None,
enable_parameter: Optional[bool] = None,
command_type: Optional[str] = None,
output_cos_key_prefix: Optional[str] = None,
tags: Optional[Sequence[TatCommandTagArgs]] = None,
tat_command_id: Optional[str] = None,
timeout: Optional[float] = None,
username: Optional[str] = None,
working_directory: Optional[str] = None)
func NewTatCommand(ctx *Context, name string, args TatCommandArgs, opts ...ResourceOption) (*TatCommand, error)
public TatCommand(string name, TatCommandArgs args, CustomResourceOptions? opts = null)
public TatCommand(String name, TatCommandArgs args)
public TatCommand(String name, TatCommandArgs args, CustomResourceOptions options)
type: tencentcloud:TatCommand
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TatCommandArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TatCommandArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TatCommandArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TatCommandArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TatCommandArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TatCommand Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TatCommand resource accepts the following input properties:
- Command
Name string - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- Content string
- Command content. The maximum length is 64 KB.
- Command
Type string - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - Default
Parameters string - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - Description string
- Command description. The maximum length is 120 characters.
- Enable
Parameter bool - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - Output
Cos stringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - Output
Cos stringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- List<Tat
Command Tag> - Tags bound to the command. At most 10 tags are allowed.
- Tat
Command stringId - ID of the resource.
- Timeout double
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- Username string
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- Command
Name string - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- Content string
- Command content. The maximum length is 64 KB.
- Command
Type string - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - Default
Parameters string - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - Description string
- Command description. The maximum length is 120 characters.
- Enable
Parameter bool - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - Output
Cos stringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - Output
Cos stringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- []Tat
Command Tag Args - Tags bound to the command. At most 10 tags are allowed.
- Tat
Command stringId - ID of the resource.
- Timeout float64
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- Username string
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command
Name String - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- content String
- Command content. The maximum length is 64 KB.
- command
Type String - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - default
Parameters String - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description String
- Command description. The maximum length is 120 characters.
- enable
Parameter Boolean - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - output
Cos StringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output
Cos StringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- List<Tat
Command Tag> - Tags bound to the command. At most 10 tags are allowed.
- tat
Command StringId - ID of the resource.
- timeout Double
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- username String
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working
Directory String - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command
Name string - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- content string
- Command content. The maximum length is 64 KB.
- command
Type string - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - default
Parameters string - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description string
- Command description. The maximum length is 120 characters.
- enable
Parameter boolean - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - output
Cos stringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output
Cos stringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- Tat
Command Tag[] - Tags bound to the command. At most 10 tags are allowed.
- tat
Command stringId - ID of the resource.
- timeout number
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- username string
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working
Directory string - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command_
name str - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- content str
- Command content. The maximum length is 64 KB.
- command_
type str - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - default_
parameters str - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description str
- Command description. The maximum length is 120 characters.
- enable_
parameter bool - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - output_
cos_ strbucket_ url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output_
cos_ strkey_ prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- Sequence[Tat
Command Tag Args] - Tags bound to the command. At most 10 tags are allowed.
- tat_
command_ strid - ID of the resource.
- timeout float
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- username str
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working_
directory str - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command
Name String - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- content String
- Command content. The maximum length is 64 KB.
- command
Type String - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - default
Parameters String - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description String
- Command description. The maximum length is 120 characters.
- enable
Parameter Boolean - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - output
Cos StringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output
Cos StringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- List<Property Map>
- Tags bound to the command. At most 10 tags are allowed.
- tat
Command StringId - ID of the resource.
- timeout Number
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- username String
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working
Directory String - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
Outputs
All input properties are implicitly available as output properties. Additionally, the TatCommand resource produces the following output properties:
- Created
By string - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - Created
Time string - Command creation time.
- Formatted
Description string - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time string - Command update time.
- Created
By string - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - Created
Time string - Command creation time.
- Formatted
Description string - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time string - Command update time.
- created
By String - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created
Time String - Command creation time.
- formatted
Description String - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time String - Command update time.
- created
By string - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created
Time string - Command creation time.
- formatted
Description string - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
Time string - Command update time.
- created_
by str - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created_
time str - Command creation time.
- formatted_
description str - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
time str - Command update time.
- created
By String - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created
Time String - Command creation time.
- formatted
Description String - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time String - Command update time.
Look up Existing TatCommand Resource
Get an existing TatCommand resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TatCommandState, opts?: CustomResourceOptions): TatCommand
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
command_name: Optional[str] = None,
command_type: Optional[str] = None,
content: Optional[str] = None,
created_by: Optional[str] = None,
created_time: Optional[str] = None,
default_parameters: Optional[str] = None,
description: Optional[str] = None,
enable_parameter: Optional[bool] = None,
formatted_description: Optional[str] = None,
output_cos_bucket_url: Optional[str] = None,
output_cos_key_prefix: Optional[str] = None,
tags: Optional[Sequence[TatCommandTagArgs]] = None,
tat_command_id: Optional[str] = None,
timeout: Optional[float] = None,
updated_time: Optional[str] = None,
username: Optional[str] = None,
working_directory: Optional[str] = None) -> TatCommand
func GetTatCommand(ctx *Context, name string, id IDInput, state *TatCommandState, opts ...ResourceOption) (*TatCommand, error)
public static TatCommand Get(string name, Input<string> id, TatCommandState? state, CustomResourceOptions? opts = null)
public static TatCommand get(String name, Output<String> id, TatCommandState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TatCommand get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Command
Name string - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- Command
Type string - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - Content string
- Command content. The maximum length is 64 KB.
- Created
By string - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - Created
Time string - Command creation time.
- Default
Parameters string - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - Description string
- Command description. The maximum length is 120 characters.
- Enable
Parameter bool - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - Formatted
Description string - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- Output
Cos stringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - Output
Cos stringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- List<Tat
Command Tag> - Tags bound to the command. At most 10 tags are allowed.
- Tat
Command stringId - ID of the resource.
- Timeout double
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- Updated
Time string - Command update time.
- Username string
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- Command
Name string - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- Command
Type string - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - Content string
- Command content. The maximum length is 64 KB.
- Created
By string - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - Created
Time string - Command creation time.
- Default
Parameters string - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - Description string
- Command description. The maximum length is 120 characters.
- Enable
Parameter bool - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - Formatted
Description string - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- Output
Cos stringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - Output
Cos stringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- []Tat
Command Tag Args - Tags bound to the command. At most 10 tags are allowed.
- Tat
Command stringId - ID of the resource.
- Timeout float64
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- Updated
Time string - Command update time.
- Username string
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command
Name String - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- command
Type String - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - content String
- Command content. The maximum length is 64 KB.
- created
By String - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created
Time String - Command creation time.
- default
Parameters String - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description String
- Command description. The maximum length is 120 characters.
- enable
Parameter Boolean - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - formatted
Description String - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- output
Cos StringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output
Cos StringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- List<Tat
Command Tag> - Tags bound to the command. At most 10 tags are allowed.
- tat
Command StringId - ID of the resource.
- timeout Double
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- updated
Time String - Command update time.
- username String
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working
Directory String - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command
Name string - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- command
Type string - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - content string
- Command content. The maximum length is 64 KB.
- created
By string - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created
Time string - Command creation time.
- default
Parameters string - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description string
- Command description. The maximum length is 120 characters.
- enable
Parameter boolean - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - formatted
Description string - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- output
Cos stringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output
Cos stringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- Tat
Command Tag[] - Tags bound to the command. At most 10 tags are allowed.
- tat
Command stringId - ID of the resource.
- timeout number
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- updated
Time string - Command update time.
- username string
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working
Directory string - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command_
name str - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- command_
type str - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - content str
- Command content. The maximum length is 64 KB.
- created_
by str - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created_
time str - Command creation time.
- default_
parameters str - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description str
- Command description. The maximum length is 120 characters.
- enable_
parameter bool - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - 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_ strbucket_ url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output_
cos_ strkey_ prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- Sequence[Tat
Command Tag Args] - Tags bound to the command. At most 10 tags are allowed.
- tat_
command_ strid - ID of the resource.
- timeout float
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- updated_
time str - Command update time.
- username str
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working_
directory str - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
- command
Name String - Command name. The name can be up to 60 bytes, and contain [a-z], [A-Z], [0-9] and [_-.].
- command
Type String - Command type.
SHELL
,POWERSHELL
andBAT
are supported. The default value isSHELL
. - content String
- Command content. The maximum length is 64 KB.
- created
By String - Command creator.
TAT
indicates a public command andUSER
indicates a personal command. - created
Time String - Command creation time.
- default
Parameters String - The default value of the custom parameter value when it is enabled. The field type is JSON encoded string. For example, {"varA": "222"}.
key
is the name of the custom parameter and value is the default value. Bothkey
andvalue
are strings.If no parameter value is provided in theInvokeCommand
API, the default value is used.Up to 20 custom parameters are supported.The name of the custom parameter cannot exceed 64 characters and can contain [a-z], [A-Z], [0-9] and [-_]. - description String
- Command description. The maximum length is 120 characters.
- enable
Parameter Boolean - Whether to enable the custom parameter feature.This cannot be modified once created.Default value:
false
. - formatted
Description String - Formatted description of the command. This parameter is an empty string for user commands and contains values for public commands.
- output
Cos StringBucket Url - The COS bucket URL for uploading logs. The URL must start with
https
, such ashttps://BucketName-123454321.cos.ap-beijing.myqcloud.com
. - output
Cos StringKey Prefix - The COS bucket directory where the logs are saved. Check below for the rules of the directory name.1. It must be a combination of number, letters, and visible characters. Up to 60 characters are allowed.2. Use a slash (/) to create a subdirectory.3. Consecutive dots (.) and slashes (/) are not allowed. It can not start with a slash (/).
- List<Property Map>
- Tags bound to the command. At most 10 tags are allowed.
- tat
Command StringId - ID of the resource.
- timeout Number
- Command timeout period. Default value: 60 seconds. Value range: [1, 86400].
- updated
Time String - Command update time.
- username String
- The username used to execute the command on the CVM or Lighthouse instance.The principle of least privilege is the best practice for permission management. We recommend you execute TAT commands as a general user. By default, the root user is used to execute commands on Linux and the System user is used on Windows.
- working
Directory String - Command execution path. The default value is /root for
SHELL
commands and C:/Program Files/qcloudtat_agent/workdir forPOWERSHELL
commands.
Supporting Types
TatCommandTag, TatCommandTagArgs
Import
tat command can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tatCommand:TatCommand example cmd-6fydo27j
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.