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

tencentcloud.LighthouseInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a lighthouse instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const firewallTemplate = new tencentcloud.LighthouseFirewallTemplate("firewallTemplate", {templateName: "empty-template"});
    const lighthouse = new tencentcloud.LighthouseInstance("lighthouse", {
        bundleId: "bundle2022_gen_01",
        blueprintId: "lhbp-f1lkcd41",
        period: 1,
        renewFlag: "NOTIFY_AND_AUTO_RENEW",
        instanceName: "hello world",
        zone: "ap-guangzhou-3",
        containers: [
            {
                containerImage: "ccr.ccs.tencentyun.com/qcloud/nginx",
                containerName: "nginx",
                envs: [
                    {
                        key: "key",
                        value: "value",
                    },
                    {
                        key: "key2",
                        value: "value2",
                    },
                ],
                publishPorts: [
                    {
                        hostPort: 80,
                        containerPort: 80,
                        ip: "127.0.0.1",
                        protocol: "tcp",
                    },
                    {
                        hostPort: 36000,
                        containerPort: 36000,
                        ip: "127.0.0.1",
                        protocol: "tcp",
                    },
                ],
                volumes: [
                    {
                        containerPath: "/data",
                        hostPath: "/tmp",
                    },
                    {
                        containerPath: "/var",
                        hostPath: "/tmp",
                    },
                ],
                command: "ls -l",
            },
            {
                containerImage: "ccr.ccs.tencentyun.com/qcloud/resty",
                containerName: "resty",
                envs: [{
                    key: "key2",
                    value: "value2",
                }],
                publishPorts: [{
                    hostPort: 80,
                    containerPort: 80,
                    ip: "127.0.0.1",
                    protocol: "udp",
                }],
                volumes: [{
                    containerPath: "/var",
                    hostPath: "/tmp",
                }],
                command: "echo \"hello\"",
            },
        ],
        firewallTemplateId: firewallTemplate.lighthouseFirewallTemplateId,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    firewall_template = tencentcloud.LighthouseFirewallTemplate("firewallTemplate", template_name="empty-template")
    lighthouse = tencentcloud.LighthouseInstance("lighthouse",
        bundle_id="bundle2022_gen_01",
        blueprint_id="lhbp-f1lkcd41",
        period=1,
        renew_flag="NOTIFY_AND_AUTO_RENEW",
        instance_name="hello world",
        zone="ap-guangzhou-3",
        containers=[
            {
                "container_image": "ccr.ccs.tencentyun.com/qcloud/nginx",
                "container_name": "nginx",
                "envs": [
                    {
                        "key": "key",
                        "value": "value",
                    },
                    {
                        "key": "key2",
                        "value": "value2",
                    },
                ],
                "publish_ports": [
                    {
                        "host_port": 80,
                        "container_port": 80,
                        "ip": "127.0.0.1",
                        "protocol": "tcp",
                    },
                    {
                        "host_port": 36000,
                        "container_port": 36000,
                        "ip": "127.0.0.1",
                        "protocol": "tcp",
                    },
                ],
                "volumes": [
                    {
                        "container_path": "/data",
                        "host_path": "/tmp",
                    },
                    {
                        "container_path": "/var",
                        "host_path": "/tmp",
                    },
                ],
                "command": "ls -l",
            },
            {
                "container_image": "ccr.ccs.tencentyun.com/qcloud/resty",
                "container_name": "resty",
                "envs": [{
                    "key": "key2",
                    "value": "value2",
                }],
                "publish_ports": [{
                    "host_port": 80,
                    "container_port": 80,
                    "ip": "127.0.0.1",
                    "protocol": "udp",
                }],
                "volumes": [{
                    "container_path": "/var",
                    "host_path": "/tmp",
                }],
                "command": "echo \"hello\"",
            },
        ],
        firewall_template_id=firewall_template.lighthouse_firewall_template_id)
    
    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 {
    		firewallTemplate, err := tencentcloud.NewLighthouseFirewallTemplate(ctx, "firewallTemplate", &tencentcloud.LighthouseFirewallTemplateArgs{
    			TemplateName: pulumi.String("empty-template"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewLighthouseInstance(ctx, "lighthouse", &tencentcloud.LighthouseInstanceArgs{
    			BundleId:     pulumi.String("bundle2022_gen_01"),
    			BlueprintId:  pulumi.String("lhbp-f1lkcd41"),
    			Period:       pulumi.Float64(1),
    			RenewFlag:    pulumi.String("NOTIFY_AND_AUTO_RENEW"),
    			InstanceName: pulumi.String("hello world"),
    			Zone:         pulumi.String("ap-guangzhou-3"),
    			Containers: tencentcloud.LighthouseInstanceContainerArray{
    				&tencentcloud.LighthouseInstanceContainerArgs{
    					ContainerImage: pulumi.String("ccr.ccs.tencentyun.com/qcloud/nginx"),
    					ContainerName:  pulumi.String("nginx"),
    					Envs: tencentcloud.LighthouseInstanceContainerEnvArray{
    						&tencentcloud.LighthouseInstanceContainerEnvArgs{
    							Key:   pulumi.String("key"),
    							Value: pulumi.String("value"),
    						},
    						&tencentcloud.LighthouseInstanceContainerEnvArgs{
    							Key:   pulumi.String("key2"),
    							Value: pulumi.String("value2"),
    						},
    					},
    					PublishPorts: tencentcloud.LighthouseInstanceContainerPublishPortArray{
    						&tencentcloud.LighthouseInstanceContainerPublishPortArgs{
    							HostPort:      pulumi.Float64(80),
    							ContainerPort: pulumi.Float64(80),
    							Ip:            pulumi.String("127.0.0.1"),
    							Protocol:      pulumi.String("tcp"),
    						},
    						&tencentcloud.LighthouseInstanceContainerPublishPortArgs{
    							HostPort:      pulumi.Float64(36000),
    							ContainerPort: pulumi.Float64(36000),
    							Ip:            pulumi.String("127.0.0.1"),
    							Protocol:      pulumi.String("tcp"),
    						},
    					},
    					Volumes: tencentcloud.LighthouseInstanceContainerVolumeArray{
    						&tencentcloud.LighthouseInstanceContainerVolumeArgs{
    							ContainerPath: pulumi.String("/data"),
    							HostPath:      pulumi.String("/tmp"),
    						},
    						&tencentcloud.LighthouseInstanceContainerVolumeArgs{
    							ContainerPath: pulumi.String("/var"),
    							HostPath:      pulumi.String("/tmp"),
    						},
    					},
    					Command: pulumi.String("ls -l"),
    				},
    				&tencentcloud.LighthouseInstanceContainerArgs{
    					ContainerImage: pulumi.String("ccr.ccs.tencentyun.com/qcloud/resty"),
    					ContainerName:  pulumi.String("resty"),
    					Envs: tencentcloud.LighthouseInstanceContainerEnvArray{
    						&tencentcloud.LighthouseInstanceContainerEnvArgs{
    							Key:   pulumi.String("key2"),
    							Value: pulumi.String("value2"),
    						},
    					},
    					PublishPorts: tencentcloud.LighthouseInstanceContainerPublishPortArray{
    						&tencentcloud.LighthouseInstanceContainerPublishPortArgs{
    							HostPort:      pulumi.Float64(80),
    							ContainerPort: pulumi.Float64(80),
    							Ip:            pulumi.String("127.0.0.1"),
    							Protocol:      pulumi.String("udp"),
    						},
    					},
    					Volumes: tencentcloud.LighthouseInstanceContainerVolumeArray{
    						&tencentcloud.LighthouseInstanceContainerVolumeArgs{
    							ContainerPath: pulumi.String("/var"),
    							HostPath:      pulumi.String("/tmp"),
    						},
    					},
    					Command: pulumi.String("echo \"hello\""),
    				},
    			},
    			FirewallTemplateId: firewallTemplate.LighthouseFirewallTemplateId,
    		})
    		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 firewallTemplate = new Tencentcloud.LighthouseFirewallTemplate("firewallTemplate", new()
        {
            TemplateName = "empty-template",
        });
    
        var lighthouse = new Tencentcloud.LighthouseInstance("lighthouse", new()
        {
            BundleId = "bundle2022_gen_01",
            BlueprintId = "lhbp-f1lkcd41",
            Period = 1,
            RenewFlag = "NOTIFY_AND_AUTO_RENEW",
            InstanceName = "hello world",
            Zone = "ap-guangzhou-3",
            Containers = new[]
            {
                new Tencentcloud.Inputs.LighthouseInstanceContainerArgs
                {
                    ContainerImage = "ccr.ccs.tencentyun.com/qcloud/nginx",
                    ContainerName = "nginx",
                    Envs = new[]
                    {
                        new Tencentcloud.Inputs.LighthouseInstanceContainerEnvArgs
                        {
                            Key = "key",
                            Value = "value",
                        },
                        new Tencentcloud.Inputs.LighthouseInstanceContainerEnvArgs
                        {
                            Key = "key2",
                            Value = "value2",
                        },
                    },
                    PublishPorts = new[]
                    {
                        new Tencentcloud.Inputs.LighthouseInstanceContainerPublishPortArgs
                        {
                            HostPort = 80,
                            ContainerPort = 80,
                            Ip = "127.0.0.1",
                            Protocol = "tcp",
                        },
                        new Tencentcloud.Inputs.LighthouseInstanceContainerPublishPortArgs
                        {
                            HostPort = 36000,
                            ContainerPort = 36000,
                            Ip = "127.0.0.1",
                            Protocol = "tcp",
                        },
                    },
                    Volumes = new[]
                    {
                        new Tencentcloud.Inputs.LighthouseInstanceContainerVolumeArgs
                        {
                            ContainerPath = "/data",
                            HostPath = "/tmp",
                        },
                        new Tencentcloud.Inputs.LighthouseInstanceContainerVolumeArgs
                        {
                            ContainerPath = "/var",
                            HostPath = "/tmp",
                        },
                    },
                    Command = "ls -l",
                },
                new Tencentcloud.Inputs.LighthouseInstanceContainerArgs
                {
                    ContainerImage = "ccr.ccs.tencentyun.com/qcloud/resty",
                    ContainerName = "resty",
                    Envs = new[]
                    {
                        new Tencentcloud.Inputs.LighthouseInstanceContainerEnvArgs
                        {
                            Key = "key2",
                            Value = "value2",
                        },
                    },
                    PublishPorts = new[]
                    {
                        new Tencentcloud.Inputs.LighthouseInstanceContainerPublishPortArgs
                        {
                            HostPort = 80,
                            ContainerPort = 80,
                            Ip = "127.0.0.1",
                            Protocol = "udp",
                        },
                    },
                    Volumes = new[]
                    {
                        new Tencentcloud.Inputs.LighthouseInstanceContainerVolumeArgs
                        {
                            ContainerPath = "/var",
                            HostPath = "/tmp",
                        },
                    },
                    Command = "echo \"hello\"",
                },
            },
            FirewallTemplateId = firewallTemplate.LighthouseFirewallTemplateId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.LighthouseFirewallTemplate;
    import com.pulumi.tencentcloud.LighthouseFirewallTemplateArgs;
    import com.pulumi.tencentcloud.LighthouseInstance;
    import com.pulumi.tencentcloud.LighthouseInstanceArgs;
    import com.pulumi.tencentcloud.inputs.LighthouseInstanceContainerArgs;
    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 firewallTemplate = new LighthouseFirewallTemplate("firewallTemplate", LighthouseFirewallTemplateArgs.builder()
                .templateName("empty-template")
                .build());
    
            var lighthouse = new LighthouseInstance("lighthouse", LighthouseInstanceArgs.builder()
                .bundleId("bundle2022_gen_01")
                .blueprintId("lhbp-f1lkcd41")
                .period(1)
                .renewFlag("NOTIFY_AND_AUTO_RENEW")
                .instanceName("hello world")
                .zone("ap-guangzhou-3")
                .containers(            
                    LighthouseInstanceContainerArgs.builder()
                        .containerImage("ccr.ccs.tencentyun.com/qcloud/nginx")
                        .containerName("nginx")
                        .envs(                    
                            LighthouseInstanceContainerEnvArgs.builder()
                                .key("key")
                                .value("value")
                                .build(),
                            LighthouseInstanceContainerEnvArgs.builder()
                                .key("key2")
                                .value("value2")
                                .build())
                        .publishPorts(                    
                            LighthouseInstanceContainerPublishPortArgs.builder()
                                .hostPort(80)
                                .containerPort(80)
                                .ip("127.0.0.1")
                                .protocol("tcp")
                                .build(),
                            LighthouseInstanceContainerPublishPortArgs.builder()
                                .hostPort(36000)
                                .containerPort(36000)
                                .ip("127.0.0.1")
                                .protocol("tcp")
                                .build())
                        .volumes(                    
                            LighthouseInstanceContainerVolumeArgs.builder()
                                .containerPath("/data")
                                .hostPath("/tmp")
                                .build(),
                            LighthouseInstanceContainerVolumeArgs.builder()
                                .containerPath("/var")
                                .hostPath("/tmp")
                                .build())
                        .command("ls -l")
                        .build(),
                    LighthouseInstanceContainerArgs.builder()
                        .containerImage("ccr.ccs.tencentyun.com/qcloud/resty")
                        .containerName("resty")
                        .envs(LighthouseInstanceContainerEnvArgs.builder()
                            .key("key2")
                            .value("value2")
                            .build())
                        .publishPorts(LighthouseInstanceContainerPublishPortArgs.builder()
                            .hostPort(80)
                            .containerPort(80)
                            .ip("127.0.0.1")
                            .protocol("udp")
                            .build())
                        .volumes(LighthouseInstanceContainerVolumeArgs.builder()
                            .containerPath("/var")
                            .hostPath("/tmp")
                            .build())
                        .command("echo \"hello\"")
                        .build())
                .firewallTemplateId(firewallTemplate.lighthouseFirewallTemplateId())
                .build());
    
        }
    }
    
    resources:
      firewallTemplate:
        type: tencentcloud:LighthouseFirewallTemplate
        properties:
          templateName: empty-template
      lighthouse:
        type: tencentcloud:LighthouseInstance
        properties:
          bundleId: bundle2022_gen_01
          blueprintId: lhbp-f1lkcd41
          period: 1
          renewFlag: NOTIFY_AND_AUTO_RENEW
          instanceName: hello world
          zone: ap-guangzhou-3
          containers:
            - containerImage: ccr.ccs.tencentyun.com/qcloud/nginx
              containerName: nginx
              envs:
                - key: key
                  value: value
                - key: key2
                  value: value2
              publishPorts:
                - hostPort: 80
                  containerPort: 80
                  ip: 127.0.0.1
                  protocol: tcp
                - hostPort: 36000
                  containerPort: 36000
                  ip: 127.0.0.1
                  protocol: tcp
              volumes:
                - containerPath: /data
                  hostPath: /tmp
                - containerPath: /var
                  hostPath: /tmp
              command: ls -l
            - containerImage: ccr.ccs.tencentyun.com/qcloud/resty
              containerName: resty
              envs:
                - key: key2
                  value: value2
              publishPorts:
                - hostPort: 80
                  containerPort: 80
                  ip: 127.0.0.1
                  protocol: udp
              volumes:
                - containerPath: /var
                  hostPath: /tmp
              command: echo "hello"
          firewallTemplateId: ${firewallTemplate.lighthouseFirewallTemplateId}
    

    Create LighthouseInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LighthouseInstance(name: string, args: LighthouseInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def LighthouseInstance(resource_name: str,
                           args: LighthouseInstanceArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def LighthouseInstance(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           instance_name: Optional[str] = None,
                           bundle_id: Optional[str] = None,
                           renew_flag: Optional[str] = None,
                           blueprint_id: Optional[str] = None,
                           containers: Optional[Sequence[LighthouseInstanceContainerArgs]] = None,
                           firewall_template_id: Optional[str] = None,
                           dry_run: Optional[bool] = None,
                           is_update_bundle_id_auto_voucher: Optional[bool] = None,
                           isolate_data_disk: Optional[bool] = None,
                           lighthouse_instance_id: Optional[str] = None,
                           login_configuration: Optional[LighthouseInstanceLoginConfigurationArgs] = None,
                           period: Optional[float] = None,
                           permit_default_key_pair_login: Optional[str] = None,
                           client_token: Optional[str] = None,
                           zone: Optional[str] = None)
    func NewLighthouseInstance(ctx *Context, name string, args LighthouseInstanceArgs, opts ...ResourceOption) (*LighthouseInstance, error)
    public LighthouseInstance(string name, LighthouseInstanceArgs args, CustomResourceOptions? opts = null)
    public LighthouseInstance(String name, LighthouseInstanceArgs args)
    public LighthouseInstance(String name, LighthouseInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:LighthouseInstance
    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 LighthouseInstanceArgs
    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 LighthouseInstanceArgs
    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 LighthouseInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LighthouseInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LighthouseInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    LighthouseInstance 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 LighthouseInstance resource accepts the following input properties:

    BlueprintId string
    ID of the Lighthouse image.
    BundleId string
    ID of the Lighthouse package.
    InstanceName string
    The display name of the Lighthouse instance.
    RenewFlag string
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    Containers List<LighthouseInstanceContainer>
    Configuration of the containers to create.
    DryRun bool
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    FirewallTemplateId string
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    IsUpdateBundleIdAutoVoucher bool
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    IsolateDataDisk bool
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    LighthouseInstanceId string
    ID of the resource.
    LoginConfiguration LighthouseInstanceLoginConfiguration
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    Period double
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    PermitDefaultKeyPairLogin string
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    Zone string
    List of availability zones. A random AZ is selected by default.
    BlueprintId string
    ID of the Lighthouse image.
    BundleId string
    ID of the Lighthouse package.
    InstanceName string
    The display name of the Lighthouse instance.
    RenewFlag string
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    Containers []LighthouseInstanceContainerArgs
    Configuration of the containers to create.
    DryRun bool
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    FirewallTemplateId string
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    IsUpdateBundleIdAutoVoucher bool
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    IsolateDataDisk bool
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    LighthouseInstanceId string
    ID of the resource.
    LoginConfiguration LighthouseInstanceLoginConfigurationArgs
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    Period float64
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    PermitDefaultKeyPairLogin string
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    Zone string
    List of availability zones. A random AZ is selected by default.
    blueprintId String
    ID of the Lighthouse image.
    bundleId String
    ID of the Lighthouse package.
    instanceName String
    The display name of the Lighthouse instance.
    renewFlag String
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers List<LighthouseInstanceContainer>
    Configuration of the containers to create.
    dryRun Boolean
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewallTemplateId String
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    isUpdateBundleIdAutoVoucher Boolean
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolateDataDisk Boolean
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouseInstanceId String
    ID of the resource.
    loginConfiguration LighthouseInstanceLoginConfiguration
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period Double
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permitDefaultKeyPairLogin String
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    zone String
    List of availability zones. A random AZ is selected by default.
    blueprintId string
    ID of the Lighthouse image.
    bundleId string
    ID of the Lighthouse package.
    instanceName string
    The display name of the Lighthouse instance.
    renewFlag string
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    clientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers LighthouseInstanceContainer[]
    Configuration of the containers to create.
    dryRun boolean
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewallTemplateId string
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    isUpdateBundleIdAutoVoucher boolean
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolateDataDisk boolean
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouseInstanceId string
    ID of the resource.
    loginConfiguration LighthouseInstanceLoginConfiguration
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period number
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permitDefaultKeyPairLogin string
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    zone string
    List of availability zones. A random AZ is selected by default.
    blueprint_id str
    ID of the Lighthouse image.
    bundle_id str
    ID of the Lighthouse package.
    instance_name str
    The display name of the Lighthouse instance.
    renew_flag str
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    client_token str
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers Sequence[LighthouseInstanceContainerArgs]
    Configuration of the containers to create.
    dry_run bool
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewall_template_id str
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    is_update_bundle_id_auto_voucher bool
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolate_data_disk bool
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouse_instance_id str
    ID of the resource.
    login_configuration LighthouseInstanceLoginConfigurationArgs
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period float
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permit_default_key_pair_login str
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    zone str
    List of availability zones. A random AZ is selected by default.
    blueprintId String
    ID of the Lighthouse image.
    bundleId String
    ID of the Lighthouse package.
    instanceName String
    The display name of the Lighthouse instance.
    renewFlag String
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers List<Property Map>
    Configuration of the containers to create.
    dryRun Boolean
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewallTemplateId String
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    isUpdateBundleIdAutoVoucher Boolean
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolateDataDisk Boolean
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouseInstanceId String
    ID of the resource.
    loginConfiguration Property Map
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period Number
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permitDefaultKeyPairLogin String
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    zone String
    List of availability zones. A random AZ is selected by default.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LighthouseInstance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    PrivateAddresses List<string>
    Private addresses.
    PublicAddresses List<string>
    Public addresses.
    Id string
    The provider-assigned unique ID for this managed resource.
    PrivateAddresses []string
    Private addresses.
    PublicAddresses []string
    Public addresses.
    id String
    The provider-assigned unique ID for this managed resource.
    privateAddresses List<String>
    Private addresses.
    publicAddresses List<String>
    Public addresses.
    id string
    The provider-assigned unique ID for this managed resource.
    privateAddresses string[]
    Private addresses.
    publicAddresses string[]
    Public addresses.
    id str
    The provider-assigned unique ID for this managed resource.
    private_addresses Sequence[str]
    Private addresses.
    public_addresses Sequence[str]
    Public addresses.
    id String
    The provider-assigned unique ID for this managed resource.
    privateAddresses List<String>
    Private addresses.
    publicAddresses List<String>
    Public addresses.

    Look up Existing LighthouseInstance Resource

    Get an existing LighthouseInstance 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?: LighthouseInstanceState, opts?: CustomResourceOptions): LighthouseInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            blueprint_id: Optional[str] = None,
            bundle_id: Optional[str] = None,
            client_token: Optional[str] = None,
            containers: Optional[Sequence[LighthouseInstanceContainerArgs]] = None,
            dry_run: Optional[bool] = None,
            firewall_template_id: Optional[str] = None,
            instance_name: Optional[str] = None,
            is_update_bundle_id_auto_voucher: Optional[bool] = None,
            isolate_data_disk: Optional[bool] = None,
            lighthouse_instance_id: Optional[str] = None,
            login_configuration: Optional[LighthouseInstanceLoginConfigurationArgs] = None,
            period: Optional[float] = None,
            permit_default_key_pair_login: Optional[str] = None,
            private_addresses: Optional[Sequence[str]] = None,
            public_addresses: Optional[Sequence[str]] = None,
            renew_flag: Optional[str] = None,
            zone: Optional[str] = None) -> LighthouseInstance
    func GetLighthouseInstance(ctx *Context, name string, id IDInput, state *LighthouseInstanceState, opts ...ResourceOption) (*LighthouseInstance, error)
    public static LighthouseInstance Get(string name, Input<string> id, LighthouseInstanceState? state, CustomResourceOptions? opts = null)
    public static LighthouseInstance get(String name, Output<String> id, LighthouseInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:LighthouseInstance    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.
    The following state arguments are supported:
    BlueprintId string
    ID of the Lighthouse image.
    BundleId string
    ID of the Lighthouse package.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    Containers List<LighthouseInstanceContainer>
    Configuration of the containers to create.
    DryRun bool
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    FirewallTemplateId string
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    InstanceName string
    The display name of the Lighthouse instance.
    IsUpdateBundleIdAutoVoucher bool
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    IsolateDataDisk bool
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    LighthouseInstanceId string
    ID of the resource.
    LoginConfiguration LighthouseInstanceLoginConfiguration
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    Period double
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    PermitDefaultKeyPairLogin string
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    PrivateAddresses List<string>
    Private addresses.
    PublicAddresses List<string>
    Public addresses.
    RenewFlag string
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    Zone string
    List of availability zones. A random AZ is selected by default.
    BlueprintId string
    ID of the Lighthouse image.
    BundleId string
    ID of the Lighthouse package.
    ClientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    Containers []LighthouseInstanceContainerArgs
    Configuration of the containers to create.
    DryRun bool
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    FirewallTemplateId string
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    InstanceName string
    The display name of the Lighthouse instance.
    IsUpdateBundleIdAutoVoucher bool
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    IsolateDataDisk bool
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    LighthouseInstanceId string
    ID of the resource.
    LoginConfiguration LighthouseInstanceLoginConfigurationArgs
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    Period float64
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    PermitDefaultKeyPairLogin string
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    PrivateAddresses []string
    Private addresses.
    PublicAddresses []string
    Public addresses.
    RenewFlag string
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    Zone string
    List of availability zones. A random AZ is selected by default.
    blueprintId String
    ID of the Lighthouse image.
    bundleId String
    ID of the Lighthouse package.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers List<LighthouseInstanceContainer>
    Configuration of the containers to create.
    dryRun Boolean
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewallTemplateId String
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    instanceName String
    The display name of the Lighthouse instance.
    isUpdateBundleIdAutoVoucher Boolean
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolateDataDisk Boolean
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouseInstanceId String
    ID of the resource.
    loginConfiguration LighthouseInstanceLoginConfiguration
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period Double
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permitDefaultKeyPairLogin String
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    privateAddresses List<String>
    Private addresses.
    publicAddresses List<String>
    Public addresses.
    renewFlag String
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    zone String
    List of availability zones. A random AZ is selected by default.
    blueprintId string
    ID of the Lighthouse image.
    bundleId string
    ID of the Lighthouse package.
    clientToken string
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers LighthouseInstanceContainer[]
    Configuration of the containers to create.
    dryRun boolean
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewallTemplateId string
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    instanceName string
    The display name of the Lighthouse instance.
    isUpdateBundleIdAutoVoucher boolean
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolateDataDisk boolean
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouseInstanceId string
    ID of the resource.
    loginConfiguration LighthouseInstanceLoginConfiguration
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period number
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permitDefaultKeyPairLogin string
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    privateAddresses string[]
    Private addresses.
    publicAddresses string[]
    Public addresses.
    renewFlag string
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    zone string
    List of availability zones. A random AZ is selected by default.
    blueprint_id str
    ID of the Lighthouse image.
    bundle_id str
    ID of the Lighthouse package.
    client_token str
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers Sequence[LighthouseInstanceContainerArgs]
    Configuration of the containers to create.
    dry_run bool
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewall_template_id str
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    instance_name str
    The display name of the Lighthouse instance.
    is_update_bundle_id_auto_voucher bool
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolate_data_disk bool
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouse_instance_id str
    ID of the resource.
    login_configuration LighthouseInstanceLoginConfigurationArgs
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period float
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permit_default_key_pair_login str
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    private_addresses Sequence[str]
    Private addresses.
    public_addresses Sequence[str]
    Public addresses.
    renew_flag str
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    zone str
    List of availability zones. A random AZ is selected by default.
    blueprintId String
    ID of the Lighthouse image.
    bundleId String
    ID of the Lighthouse package.
    clientToken String
    A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.
    containers List<Property Map>
    Configuration of the containers to create.
    dryRun Boolean
    Whether the request is a dry run only.true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available. If the dry run fails, the corresponding error code will be returned.If the dry run succeeds, the RequestId will be returned.false (default value): send a normal request and create instance(s) if all the requirements are met.
    firewallTemplateId String
    Firewall template ID. If this parameter is not specified, the default firewall policy is used.
    instanceName String
    The display name of the Lighthouse instance.
    isUpdateBundleIdAutoVoucher Boolean
    Whether the voucher is deducted automatically when update bundle id. Value range: true: indicates automatic deduction of vouchers, false: does not automatically deduct vouchers. Default value: false.
    isolateDataDisk Boolean
    Whether to return the mounted data disk. true: returns both the instance and the mounted data disk; false: returns the instance and no longer returns its mounted data disk. Default: true.
    lighthouseInstanceId String
    ID of the resource.
    loginConfiguration Property Map
    Login password of the instance. It is only available for Windows instances. If it is not specified, it means that the user choose to set the login password after the instance creation.
    period Number
    Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
    permitDefaultKeyPairLogin String
    It has been deprecated from version v1.81.8. Use tencentcloud.LighthouseKeyPairAttachment manage key pair. Whether to allow login using the default key pair. YES: allow login; NO: disable login. Default: YES.

    Deprecated: Deprecated

    privateAddresses List<String>
    Private addresses.
    publicAddresses List<String>
    Public addresses.
    renewFlag String
    Auto-Renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically; NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically. You need to manually renew DISABLE_NOTIFY_AND_AUTO_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW.
    zone String
    List of availability zones. A random AZ is selected by default.

    Supporting Types

    LighthouseInstanceContainer, LighthouseInstanceContainerArgs

    Command string
    The command to run.
    ContainerImage string
    Container image address.
    ContainerName string
    Container name.
    Envs List<LighthouseInstanceContainerEnv>
    List of environment variables.
    PublishPorts List<LighthouseInstanceContainerPublishPort>
    List of mappings of container ports and host ports.
    Volumes List<LighthouseInstanceContainerVolume>
    List of container mount volumes.
    Command string
    The command to run.
    ContainerImage string
    Container image address.
    ContainerName string
    Container name.
    Envs []LighthouseInstanceContainerEnv
    List of environment variables.
    PublishPorts []LighthouseInstanceContainerPublishPort
    List of mappings of container ports and host ports.
    Volumes []LighthouseInstanceContainerVolume
    List of container mount volumes.
    command String
    The command to run.
    containerImage String
    Container image address.
    containerName String
    Container name.
    envs List<LighthouseInstanceContainerEnv>
    List of environment variables.
    publishPorts List<LighthouseInstanceContainerPublishPort>
    List of mappings of container ports and host ports.
    volumes List<LighthouseInstanceContainerVolume>
    List of container mount volumes.
    command string
    The command to run.
    containerImage string
    Container image address.
    containerName string
    Container name.
    envs LighthouseInstanceContainerEnv[]
    List of environment variables.
    publishPorts LighthouseInstanceContainerPublishPort[]
    List of mappings of container ports and host ports.
    volumes LighthouseInstanceContainerVolume[]
    List of container mount volumes.
    command str
    The command to run.
    container_image str
    Container image address.
    container_name str
    Container name.
    envs Sequence[LighthouseInstanceContainerEnv]
    List of environment variables.
    publish_ports Sequence[LighthouseInstanceContainerPublishPort]
    List of mappings of container ports and host ports.
    volumes Sequence[LighthouseInstanceContainerVolume]
    List of container mount volumes.
    command String
    The command to run.
    containerImage String
    Container image address.
    containerName String
    Container name.
    envs List<Property Map>
    List of environment variables.
    publishPorts List<Property Map>
    List of mappings of container ports and host ports.
    volumes List<Property Map>
    List of container mount volumes.

    LighthouseInstanceContainerEnv, LighthouseInstanceContainerEnvArgs

    Key string
    Environment variable key.
    Value string
    Environment variable value.
    Key string
    Environment variable key.
    Value string
    Environment variable value.
    key String
    Environment variable key.
    value String
    Environment variable value.
    key string
    Environment variable key.
    value string
    Environment variable value.
    key str
    Environment variable key.
    value str
    Environment variable value.
    key String
    Environment variable key.
    value String
    Environment variable value.

    LighthouseInstanceContainerPublishPort, LighthouseInstanceContainerPublishPortArgs

    ContainerPort double
    Container port.
    HostPort double
    Host port.
    Ip string
    External IP. It defaults to 0.0.0.0.
    Protocol string
    The protocol defaults to tcp. Valid values: tcp, udp and sctp.
    ContainerPort float64
    Container port.
    HostPort float64
    Host port.
    Ip string
    External IP. It defaults to 0.0.0.0.
    Protocol string
    The protocol defaults to tcp. Valid values: tcp, udp and sctp.
    containerPort Double
    Container port.
    hostPort Double
    Host port.
    ip String
    External IP. It defaults to 0.0.0.0.
    protocol String
    The protocol defaults to tcp. Valid values: tcp, udp and sctp.
    containerPort number
    Container port.
    hostPort number
    Host port.
    ip string
    External IP. It defaults to 0.0.0.0.
    protocol string
    The protocol defaults to tcp. Valid values: tcp, udp and sctp.
    container_port float
    Container port.
    host_port float
    Host port.
    ip str
    External IP. It defaults to 0.0.0.0.
    protocol str
    The protocol defaults to tcp. Valid values: tcp, udp and sctp.
    containerPort Number
    Container port.
    hostPort Number
    Host port.
    ip String
    External IP. It defaults to 0.0.0.0.
    protocol String
    The protocol defaults to tcp. Valid values: tcp, udp and sctp.

    LighthouseInstanceContainerVolume, LighthouseInstanceContainerVolumeArgs

    ContainerPath string
    Container path.
    HostPath string
    Host path.
    ContainerPath string
    Container path.
    HostPath string
    Host path.
    containerPath String
    Container path.
    hostPath String
    Host path.
    containerPath string
    Container path.
    hostPath string
    Host path.
    container_path str
    Container path.
    host_path str
    Host path.
    containerPath String
    Container path.
    hostPath String
    Host path.

    LighthouseInstanceLoginConfiguration, LighthouseInstanceLoginConfigurationArgs

    AutoGeneratePassword string
    whether auto generate password. if false, need set password.
    Password string
    Login password.
    AutoGeneratePassword string
    whether auto generate password. if false, need set password.
    Password string
    Login password.
    autoGeneratePassword String
    whether auto generate password. if false, need set password.
    password String
    Login password.
    autoGeneratePassword string
    whether auto generate password. if false, need set password.
    password string
    Login password.
    auto_generate_password str
    whether auto generate password. if false, need set password.
    password str
    Login password.
    autoGeneratePassword String
    whether auto generate password. if false, need set password.
    password String
    Login password.

    Import

    lighthouse instance can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/lighthouseInstance:LighthouseInstance lighthouse lhins-xxxxxx
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack