tencentcloud.LighthouseInstance
Explore with Pulumi AI
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:
- Blueprint
Id string - ID of the Lighthouse image.
- Bundle
Id string - ID of the Lighthouse package.
- Instance
Name string - The display name of the Lighthouse instance.
- Renew
Flag 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.
- Client
Token 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<Lighthouse
Instance Container> - 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 stringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- Is
Update boolBundle Id Auto Voucher - 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 boolDisk - 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 stringId - ID of the resource.
- Login
Configuration LighthouseInstance Login Configuration - 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.
- Permit
Default stringKey Pair Login - 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
. - Zone string
- List of availability zones. A random AZ is selected by default.
- Blueprint
Id string - ID of the Lighthouse image.
- Bundle
Id string - ID of the Lighthouse package.
- Instance
Name string - The display name of the Lighthouse instance.
- Renew
Flag 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.
- Client
Token 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
[]Lighthouse
Instance Container Args - 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 stringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- Is
Update boolBundle Id Auto Voucher - 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 boolDisk - 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 stringId - ID of the resource.
- Login
Configuration LighthouseInstance Login Configuration Args - 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.
- Permit
Default stringKey Pair Login - 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
. - Zone string
- List of availability zones. A random AZ is selected by default.
- blueprint
Id String - ID of the Lighthouse image.
- bundle
Id String - ID of the Lighthouse package.
- instance
Name String - The display name of the Lighthouse instance.
- renew
Flag 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.
- client
Token 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<Lighthouse
Instance Container> - Configuration of the containers to create.
- dry
Run 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.
- firewall
Template StringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- is
Update BooleanBundle Id Auto Voucher - 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 BooleanDisk - 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 StringId - ID of the resource.
- login
Configuration LighthouseInstance Login Configuration - 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.
- permit
Default StringKey Pair Login - 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
. - zone String
- List of availability zones. A random AZ is selected by default.
- blueprint
Id string - ID of the Lighthouse image.
- bundle
Id string - ID of the Lighthouse package.
- instance
Name string - The display name of the Lighthouse instance.
- renew
Flag 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.
- client
Token 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
Lighthouse
Instance Container[] - Configuration of the containers to create.
- dry
Run 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.
- firewall
Template stringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- is
Update booleanBundle Id Auto Voucher - 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 booleanDisk - 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 stringId - ID of the resource.
- login
Configuration LighthouseInstance Login Configuration - 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.
- permit
Default stringKey Pair Login - 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
. - 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[Lighthouse
Instance Container Args] - 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_ strid - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- is_
update_ boolbundle_ id_ auto_ voucher - 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_ booldisk - 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_ strid - ID of the resource.
- login_
configuration LighthouseInstance Login Configuration Args - 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_ strkey_ pair_ login - 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
. - zone str
- List of availability zones. A random AZ is selected by default.
- blueprint
Id String - ID of the Lighthouse image.
- bundle
Id String - ID of the Lighthouse package.
- instance
Name String - The display name of the Lighthouse instance.
- renew
Flag 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.
- client
Token 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.
- dry
Run 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.
- firewall
Template StringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- is
Update BooleanBundle Id Auto Voucher - 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 BooleanDisk - 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 StringId - ID of the resource.
- login
Configuration 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.
- permit
Default StringKey Pair Login - 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
. - 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.
- Private
Addresses List<string> - Private addresses.
- Public
Addresses List<string> - Public addresses.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Addresses []string - Private addresses.
- Public
Addresses []string - Public addresses.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Addresses List<String> - Private addresses.
- public
Addresses List<String> - Public addresses.
- id string
- The provider-assigned unique ID for this managed resource.
- private
Addresses string[] - Private addresses.
- public
Addresses 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.
- private
Addresses List<String> - Private addresses.
- public
Addresses 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.
- Blueprint
Id string - ID of the Lighthouse image.
- Bundle
Id string - ID of the Lighthouse package.
- Client
Token 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<Lighthouse
Instance Container> - 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 stringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- Instance
Name string - The display name of the Lighthouse instance.
- Is
Update boolBundle Id Auto Voucher - 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 boolDisk - 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 stringId - ID of the resource.
- Login
Configuration LighthouseInstance Login Configuration - 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.
- Permit
Default stringKey Pair Login - 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
. - Private
Addresses List<string> - Private addresses.
- Public
Addresses List<string> - Public addresses.
- Renew
Flag 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 string - ID of the Lighthouse image.
- Bundle
Id string - ID of the Lighthouse package.
- Client
Token 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
[]Lighthouse
Instance Container Args - 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 stringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- Instance
Name string - The display name of the Lighthouse instance.
- Is
Update boolBundle Id Auto Voucher - 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 boolDisk - 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 stringId - ID of the resource.
- Login
Configuration LighthouseInstance Login Configuration Args - 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.
- Permit
Default stringKey Pair Login - 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
. - Private
Addresses []string - Private addresses.
- Public
Addresses []string - Public addresses.
- Renew
Flag 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 String - ID of the Lighthouse image.
- bundle
Id String - ID of the Lighthouse package.
- client
Token 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<Lighthouse
Instance Container> - Configuration of the containers to create.
- dry
Run 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.
- firewall
Template StringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- instance
Name String - The display name of the Lighthouse instance.
- is
Update BooleanBundle Id Auto Voucher - 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 BooleanDisk - 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 StringId - ID of the resource.
- login
Configuration LighthouseInstance Login Configuration - 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.
- permit
Default StringKey Pair Login - 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
. - private
Addresses List<String> - Private addresses.
- public
Addresses List<String> - Public addresses.
- renew
Flag 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 string - ID of the Lighthouse image.
- bundle
Id string - ID of the Lighthouse package.
- client
Token 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
Lighthouse
Instance Container[] - Configuration of the containers to create.
- dry
Run 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.
- firewall
Template stringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- instance
Name string - The display name of the Lighthouse instance.
- is
Update booleanBundle Id Auto Voucher - 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 booleanDisk - 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 stringId - ID of the resource.
- login
Configuration LighthouseInstance Login Configuration - 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.
- permit
Default stringKey Pair Login - 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
. - private
Addresses string[] - Private addresses.
- public
Addresses string[] - Public addresses.
- renew
Flag 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[Lighthouse
Instance Container Args] - 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_ strid - 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_ boolbundle_ id_ auto_ voucher - 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_ booldisk - 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_ strid - ID of the resource.
- login_
configuration LighthouseInstance Login Configuration Args - 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_ strkey_ pair_ login - 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
. - 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.
- blueprint
Id String - ID of the Lighthouse image.
- bundle
Id String - ID of the Lighthouse package.
- client
Token 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.
- dry
Run 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.
- firewall
Template StringId - Firewall template ID. If this parameter is not specified, the default firewall policy is used.
- instance
Name String - The display name of the Lighthouse instance.
- is
Update BooleanBundle Id Auto Voucher - 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 BooleanDisk - 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 StringId - ID of the resource.
- login
Configuration 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.
- permit
Default StringKey Pair Login - 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
. - private
Addresses List<String> - Private addresses.
- public
Addresses List<String> - Public addresses.
- renew
Flag 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.
- Container
Image string - Container image address.
- Container
Name string - Container name.
- Envs
List<Lighthouse
Instance Container Env> - List of environment variables.
- Publish
Ports List<LighthouseInstance Container Publish Port> - List of mappings of container ports and host ports.
- Volumes
List<Lighthouse
Instance Container Volume> - List of container mount volumes.
- Command string
- The command to run.
- Container
Image string - Container image address.
- Container
Name string - Container name.
- Envs
[]Lighthouse
Instance Container Env - List of environment variables.
- Publish
Ports []LighthouseInstance Container Publish Port - List of mappings of container ports and host ports.
- Volumes
[]Lighthouse
Instance Container Volume - List of container mount volumes.
- command String
- The command to run.
- container
Image String - Container image address.
- container
Name String - Container name.
- envs
List<Lighthouse
Instance Container Env> - List of environment variables.
- publish
Ports List<LighthouseInstance Container Publish Port> - List of mappings of container ports and host ports.
- volumes
List<Lighthouse
Instance Container Volume> - List of container mount volumes.
- command string
- The command to run.
- container
Image string - Container image address.
- container
Name string - Container name.
- envs
Lighthouse
Instance Container Env[] - List of environment variables.
- publish
Ports LighthouseInstance Container Publish Port[] - List of mappings of container ports and host ports.
- volumes
Lighthouse
Instance Container Volume[] - List of container mount volumes.
- command str
- The command to run.
- container_
image str - Container image address.
- container_
name str - Container name.
- envs
Sequence[Lighthouse
Instance Container Env] - List of environment variables.
- publish_
ports Sequence[LighthouseInstance Container Publish Port] - List of mappings of container ports and host ports.
- volumes
Sequence[Lighthouse
Instance Container Volume] - List of container mount volumes.
- command String
- The command to run.
- container
Image String - Container image address.
- container
Name String - Container name.
- envs List<Property Map>
- List of environment variables.
- publish
Ports List<Property Map> - List of mappings of container ports and host ports.
- volumes List<Property Map>
- List of container mount volumes.
LighthouseInstanceContainerEnv, LighthouseInstanceContainerEnvArgs
LighthouseInstanceContainerPublishPort, LighthouseInstanceContainerPublishPortArgs
- Container
Port double - Container port.
- Host
Port 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.
- Container
Port float64 - Container port.
- Host
Port 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.
- container
Port Double - Container port.
- host
Port 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.
- container
Port number - Container port.
- host
Port 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.
- container
Port Number - Container port.
- host
Port 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
- Container
Path string - Container path.
- Host
Path string - Host path.
- Container
Path string - Container path.
- Host
Path string - Host path.
- container
Path String - Container path.
- host
Path String - Host path.
- container
Path string - Container path.
- host
Path string - Host path.
- container_
path str - Container path.
- host_
path str - Host path.
- container
Path String - Container path.
- host
Path String - Host path.
LighthouseInstanceLoginConfiguration, LighthouseInstanceLoginConfigurationArgs
- Auto
Generate stringPassword - whether auto generate password. if false, need set password.
- Password string
- Login password.
- Auto
Generate stringPassword - whether auto generate password. if false, need set password.
- Password string
- Login password.
- auto
Generate StringPassword - whether auto generate password. if false, need set password.
- password String
- Login password.
- auto
Generate stringPassword - whether auto generate password. if false, need set password.
- password string
- Login password.
- auto_
generate_ strpassword - whether auto generate password. if false, need set password.
- password str
- Login password.
- auto
Generate StringPassword - 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.