tencentcloud.TatInvocationCommandAttachment
Explore with Pulumi AI
Provides a resource to create a tat invocation_command_attachment
Create TatInvocationCommandAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TatInvocationCommandAttachment(name: string, args: TatInvocationCommandAttachmentArgs, opts?: CustomResourceOptions);
@overload
def TatInvocationCommandAttachment(resource_name: str,
args: TatInvocationCommandAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TatInvocationCommandAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
instance_id: Optional[str] = None,
default_parameters: Optional[str] = None,
command_name: Optional[str] = None,
description: Optional[str] = None,
enable_parameter: Optional[bool] = None,
command_type: Optional[str] = None,
output_cos_bucket_url: Optional[str] = None,
output_cos_key_prefix: Optional[str] = None,
parameters: Optional[str] = None,
save_command: Optional[bool] = None,
tat_invocation_command_attachment_id: Optional[str] = None,
timeout: Optional[float] = None,
username: Optional[str] = None,
working_directory: Optional[str] = None)
func NewTatInvocationCommandAttachment(ctx *Context, name string, args TatInvocationCommandAttachmentArgs, opts ...ResourceOption) (*TatInvocationCommandAttachment, error)
public TatInvocationCommandAttachment(string name, TatInvocationCommandAttachmentArgs args, CustomResourceOptions? opts = null)
public TatInvocationCommandAttachment(String name, TatInvocationCommandAttachmentArgs args)
public TatInvocationCommandAttachment(String name, TatInvocationCommandAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:TatInvocationCommandAttachment
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 TatInvocationCommandAttachmentArgs
- 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 TatInvocationCommandAttachmentArgs
- 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 TatInvocationCommandAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TatInvocationCommandAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TatInvocationCommandAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TatInvocationCommandAttachment 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 TatInvocationCommandAttachment resource accepts the following input properties:
- Content string
- Base64-encoded command. The maximum length is 64 KB.
- Instance
Id string - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- 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 and POWERSHELL are supported. The default value is SHELL.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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 as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- Parameters string
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- Save
Command bool - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- Tat
Invocation stringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- Content string
- Base64-encoded command. The maximum length is 64 KB.
- Instance
Id string - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- 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 and POWERSHELL are supported. The default value is SHELL.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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 as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- Parameters string
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- Save
Command bool - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- Tat
Invocation stringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- content String
- Base64-encoded command. The maximum length is 64 KB.
- instance
Id String - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- 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 and POWERSHELL are supported. The default value is SHELL.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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 as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters String
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save
Command Boolean - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat
Invocation StringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working
Directory String - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- content string
- Base64-encoded command. The maximum length is 64 KB.
- instance
Id string - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- 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 and POWERSHELL are supported. The default value is SHELL.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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 as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters string
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save
Command boolean - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat
Invocation stringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working
Directory string - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- content str
- Base64-encoded command. The maximum length is 64 KB.
- instance_
id str - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- 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 and POWERSHELL are supported. The default value is SHELL.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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 as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters str
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save_
command bool - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat_
invocation_ strcommand_ attachment_ id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working_
directory str - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- content String
- Base64-encoded command. The maximum length is 64 KB.
- instance
Id String - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- 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 and POWERSHELL are supported. The default value is SHELL.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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 as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters String
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save
Command Boolean - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat
Invocation StringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working
Directory String - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
Outputs
All input properties are implicitly available as output properties. Additionally, the TatInvocationCommandAttachment resource produces the following output properties:
- command_
id str - Command ID.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing TatInvocationCommandAttachment Resource
Get an existing TatInvocationCommandAttachment 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?: TatInvocationCommandAttachmentState, opts?: CustomResourceOptions): TatInvocationCommandAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
command_id: Optional[str] = None,
command_name: Optional[str] = None,
command_type: Optional[str] = None,
content: Optional[str] = None,
default_parameters: Optional[str] = None,
description: Optional[str] = None,
enable_parameter: Optional[bool] = None,
instance_id: Optional[str] = None,
output_cos_bucket_url: Optional[str] = None,
output_cos_key_prefix: Optional[str] = None,
parameters: Optional[str] = None,
save_command: Optional[bool] = None,
tat_invocation_command_attachment_id: Optional[str] = None,
timeout: Optional[float] = None,
username: Optional[str] = None,
working_directory: Optional[str] = None) -> TatInvocationCommandAttachment
func GetTatInvocationCommandAttachment(ctx *Context, name string, id IDInput, state *TatInvocationCommandAttachmentState, opts ...ResourceOption) (*TatInvocationCommandAttachment, error)
public static TatInvocationCommandAttachment Get(string name, Input<string> id, TatInvocationCommandAttachmentState? state, CustomResourceOptions? opts = null)
public static TatInvocationCommandAttachment get(String name, Output<String> id, TatInvocationCommandAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TatInvocationCommandAttachment 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
Id string - Command ID.
- 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 and POWERSHELL are supported. The default value is SHELL.
- Content string
- Base64-encoded command. The maximum length is 64 KB.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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.
- Instance
Id string - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- Output
Cos stringBucket Url - The COS bucket URL for uploading logs; The URL must start with https, such as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- Parameters string
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- Save
Command bool - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- Tat
Invocation stringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- Command
Id string - Command ID.
- 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 and POWERSHELL are supported. The default value is SHELL.
- Content string
- Base64-encoded command. The maximum length is 64 KB.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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.
- Instance
Id string - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- Output
Cos stringBucket Url - The COS bucket URL for uploading logs; The URL must start with https, such as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- Parameters string
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- Save
Command bool - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- Tat
Invocation stringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- Working
Directory string - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- command
Id String - Command ID.
- 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 and POWERSHELL are supported. The default value is SHELL.
- content String
- Base64-encoded command. The maximum length is 64 KB.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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.
- instance
Id String - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- output
Cos StringBucket Url - The COS bucket URL for uploading logs; The URL must start with https, such as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters String
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save
Command Boolean - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat
Invocation StringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working
Directory String - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- command
Id string - Command ID.
- 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 and POWERSHELL are supported. The default value is SHELL.
- content string
- Base64-encoded command. The maximum length is 64 KB.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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.
- instance
Id string - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- output
Cos stringBucket Url - The COS bucket URL for uploading logs; The URL must start with https, such as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters string
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save
Command boolean - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat
Invocation stringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working
Directory string - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- command_
id str - Command ID.
- 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 and POWERSHELL are supported. The default value is SHELL.
- content str
- Base64-encoded command. The maximum length is 64 KB.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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.
- instance_
id str - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- output_
cos_ strbucket_ url - The COS bucket URL for uploading logs; The URL must start with https, such as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters str
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save_
command bool - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat_
invocation_ strcommand_ attachment_ id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working_
directory str - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
- command
Id String - Command ID.
- 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 and POWERSHELL are supported. The default value is SHELL.
- content String
- Base64-encoded command. The maximum length is 64 KB.
- 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. Both key and value are strings.If Parameters is not provided, the default values specified here are 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.
- instance
Id String - ID of instances about to execute commands. Supported instance types: CVM LIGHTHOUSE.
- output
Cos StringBucket Url - The COS bucket URL for uploading logs; The URL must start with https, such as https://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 can not be used as the folder name; It cannot start with a slash (/), and cannot contain consecutive slashes.
- parameters String
- Custom parameters of Command. 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. Both key and value are strings.If no parameter value is provided, the DefaultParameters 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 [-_].
- save
Command Boolean - Whether to save the command. Valid values:rue: SaveFalse:Do not saveThe default value is False.
- tat
Invocation StringCommand Attachment Id - 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 user root is used to execute commands on Linux and the user System is used on Windows.
- working
Directory String - Command execution path. The default value is /root for SHELL commands and C:Program Filesqcloudtat_agentworkdir for POWERSHELL commands.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.