tencentcloud.TatInvocationInvokeAttachment
Explore with Pulumi AI
Provides a resource to create a tat invocation_invoke_attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const invocationInvokeAttachment = new tencentcloud.TatInvocationInvokeAttachment("invocationInvokeAttachment", {
commandId: "cmd-rxbs7f5z",
instanceId: "ins-881b1c8w",
outputCosBucketUrl: "https://BucketName-123454321.cos.ap-beijing.myqcloud.com",
outputCosKeyPrefix: "log",
timeout: 100,
username: "root",
workingDirectory: "/root",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
invocation_invoke_attachment = tencentcloud.TatInvocationInvokeAttachment("invocationInvokeAttachment",
command_id="cmd-rxbs7f5z",
instance_id="ins-881b1c8w",
output_cos_bucket_url="https://BucketName-123454321.cos.ap-beijing.myqcloud.com",
output_cos_key_prefix="log",
timeout=100,
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.NewTatInvocationInvokeAttachment(ctx, "invocationInvokeAttachment", &tencentcloud.TatInvocationInvokeAttachmentArgs{
CommandId: pulumi.String("cmd-rxbs7f5z"),
InstanceId: pulumi.String("ins-881b1c8w"),
OutputCosBucketUrl: pulumi.String("https://BucketName-123454321.cos.ap-beijing.myqcloud.com"),
OutputCosKeyPrefix: pulumi.String("log"),
Timeout: pulumi.Float64(100),
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 invocationInvokeAttachment = new Tencentcloud.TatInvocationInvokeAttachment("invocationInvokeAttachment", new()
{
CommandId = "cmd-rxbs7f5z",
InstanceId = "ins-881b1c8w",
OutputCosBucketUrl = "https://BucketName-123454321.cos.ap-beijing.myqcloud.com",
OutputCosKeyPrefix = "log",
Timeout = 100,
Username = "root",
WorkingDirectory = "/root",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TatInvocationInvokeAttachment;
import com.pulumi.tencentcloud.TatInvocationInvokeAttachmentArgs;
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 invocationInvokeAttachment = new TatInvocationInvokeAttachment("invocationInvokeAttachment", TatInvocationInvokeAttachmentArgs.builder()
.commandId("cmd-rxbs7f5z")
.instanceId("ins-881b1c8w")
.outputCosBucketUrl("https://BucketName-123454321.cos.ap-beijing.myqcloud.com")
.outputCosKeyPrefix("log")
.timeout(100)
.username("root")
.workingDirectory("/root")
.build());
}
}
resources:
invocationInvokeAttachment:
type: tencentcloud:TatInvocationInvokeAttachment
properties:
commandId: cmd-rxbs7f5z
instanceId: ins-881b1c8w
outputCosBucketUrl: https://BucketName-123454321.cos.ap-beijing.myqcloud.com
outputCosKeyPrefix: log
timeout: 100
# parameters = "{\"varA\": \"222\"}"
username: root
workingDirectory: /root
Create TatInvocationInvokeAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TatInvocationInvokeAttachment(name: string, args: TatInvocationInvokeAttachmentArgs, opts?: CustomResourceOptions);
@overload
def TatInvocationInvokeAttachment(resource_name: str,
args: TatInvocationInvokeAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TatInvocationInvokeAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
command_id: Optional[str] = None,
instance_id: Optional[str] = None,
output_cos_bucket_url: Optional[str] = None,
output_cos_key_prefix: Optional[str] = None,
parameters: Optional[str] = None,
tat_invocation_invoke_attachment_id: Optional[str] = None,
timeout: Optional[float] = None,
username: Optional[str] = None,
working_directory: Optional[str] = None)
func NewTatInvocationInvokeAttachment(ctx *Context, name string, args TatInvocationInvokeAttachmentArgs, opts ...ResourceOption) (*TatInvocationInvokeAttachment, error)
public TatInvocationInvokeAttachment(string name, TatInvocationInvokeAttachmentArgs args, CustomResourceOptions? opts = null)
public TatInvocationInvokeAttachment(String name, TatInvocationInvokeAttachmentArgs args)
public TatInvocationInvokeAttachment(String name, TatInvocationInvokeAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:TatInvocationInvokeAttachment
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 TatInvocationInvokeAttachmentArgs
- 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 TatInvocationInvokeAttachmentArgs
- 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 TatInvocationInvokeAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TatInvocationInvokeAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TatInvocationInvokeAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TatInvocationInvokeAttachment 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 TatInvocationInvokeAttachment resource accepts the following input properties:
- Command
Id string - Command ID.
- 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 [-_].
- Tat
Invocation stringInvoke 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.
- 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 [-_].
- Tat
Invocation stringInvoke 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.
- 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 [-_].
- tat
Invocation StringInvoke 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.
- 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 [-_].
- tat
Invocation stringInvoke 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.
- 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 [-_].
- tat_
invocation_ strinvoke_ 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.
- 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 [-_].
- tat
Invocation StringInvoke 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 TatInvocationInvokeAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TatInvocationInvokeAttachment Resource
Get an existing TatInvocationInvokeAttachment 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?: TatInvocationInvokeAttachmentState, opts?: CustomResourceOptions): TatInvocationInvokeAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
command_id: Optional[str] = None,
instance_id: Optional[str] = None,
output_cos_bucket_url: Optional[str] = None,
output_cos_key_prefix: Optional[str] = None,
parameters: Optional[str] = None,
tat_invocation_invoke_attachment_id: Optional[str] = None,
timeout: Optional[float] = None,
username: Optional[str] = None,
working_directory: Optional[str] = None) -> TatInvocationInvokeAttachment
func GetTatInvocationInvokeAttachment(ctx *Context, name string, id IDInput, state *TatInvocationInvokeAttachmentState, opts ...ResourceOption) (*TatInvocationInvokeAttachment, error)
public static TatInvocationInvokeAttachment Get(string name, Input<string> id, TatInvocationInvokeAttachmentState? state, CustomResourceOptions? opts = null)
public static TatInvocationInvokeAttachment get(String name, Output<String> id, TatInvocationInvokeAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TatInvocationInvokeAttachment 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.
- 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 [-_].
- Tat
Invocation stringInvoke 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.
- 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 [-_].
- Tat
Invocation stringInvoke 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.
- 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 [-_].
- tat
Invocation StringInvoke 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.
- 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 [-_].
- tat
Invocation stringInvoke 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.
- 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 [-_].
- tat_
invocation_ strinvoke_ 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.
- 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 [-_].
- tat
Invocation StringInvoke 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.
Import
tat invocation can be imported using the invocation_id#instance_id, e.g.
$ pulumi import tencentcloud:index/tatInvocationInvokeAttachment:TatInvocationInvokeAttachment invocation_invoke_attachment inv-mhs6ca8z#ins-881b1c8w
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.