tencentcloud.InstanceSet
Explore with Pulumi AI
Provides a CVM instance set resource.
NOTE: You can launch an CVM instance for a VPC network via specifying parameter
vpc_id
. One instance can only belong to one VPC.
NOTE: This resource is designed to cater for the scenario of creating CVM in large batches.
NOTE: After run command
pulumi up
, must wait all cvms is ready, then run commandpulumi preview
, either it will cause state change.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.inputs.GetInstanceTypesArgs;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.InstanceSet;
import com.pulumi.tencentcloud.InstanceSetArgs;
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) {
final var myFavoriteImage = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("Tencent Linux release 3.2 (Final)")
.build());
final var myFavoriteInstanceTypes = TencentcloudFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.filters(GetInstanceTypesFilterArgs.builder()
.name("instance-family")
.values("S3")
.build())
.cpuCoreCount(1)
.memorySize(1)
.build());
final var myFavoriteZones = TencentcloudFunctions.getAvailabilityZones();
// Create VPC resource
var appVpc = new Vpc("appVpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var appSubnet = new Subnet("appSubnet", SubnetArgs.builder()
.vpcId(appVpc.vpcId())
.availabilityZone(myFavoriteZones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.zones()[0].name()))
.cidrBlock("10.0.1.0/24")
.build());
// Create 10 CVM instances to host awesome_app
var myAwesomeApp = new InstanceSet("myAwesomeApp", InstanceSetArgs.builder()
.timeouts(InstanceSetTimeoutsArgs.builder()
.create("5m")
.read("20s")
.delete("1h")
.build())
.instanceCount(10)
.instanceName("awesome_app")
.availabilityZone(myFavoriteZones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.zones()[0].name()))
.imageId(myFavoriteImage.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceType(myFavoriteInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].instanceType()))
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize(50)
.hostname("user")
.projectId(0)
.vpcId(appVpc.vpcId())
.subnetId(appSubnet.subnetId())
.build());
}
}
resources:
# Create VPC resource
appVpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
appSubnet:
type: tencentcloud:Subnet
properties:
vpcId: ${appVpc.vpcId}
availabilityZone: ${myFavoriteZones.zones[0].name}
cidrBlock: 10.0.1.0/24
# Create 10 CVM instances to host awesome_app
myAwesomeApp:
type: tencentcloud:InstanceSet
properties:
timeouts:
- create: 5m
read: 20s
delete: 1h
instanceCount: 10
instanceName: awesome_app
availabilityZone: ${myFavoriteZones.zones[0].name}
imageId: ${myFavoriteImage.images[0].imageId}
instanceType: ${myFavoriteInstanceTypes.instanceTypes[0].instanceType}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: 50
hostname: user
projectId: 0
vpcId: ${appVpc.vpcId}
subnetId: ${appSubnet.subnetId}
variables:
myFavoriteImage:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: Tencent Linux release 3.2 (Final)
myFavoriteInstanceTypes:
fn::invoke:
function: tencentcloud:getInstanceTypes
arguments:
filters:
- name: instance-family
values:
- S3
cpuCoreCount: 1
memorySize: 1
myFavoriteZones:
fn::invoke:
function: tencentcloud:getAvailabilityZones
arguments: {}
Create InstanceSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceSet(name: string, args: InstanceSetArgs, opts?: CustomResourceOptions);
@overload
def InstanceSet(resource_name: str,
args: InstanceSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
availability_zone: Optional[str] = None,
internet_charge_type: Optional[str] = None,
project_id: Optional[float] = None,
disable_monitor_service: Optional[bool] = None,
disable_security_service: Optional[bool] = None,
exclude_instance_ids: Optional[Sequence[str]] = None,
hostname: Optional[str] = None,
bandwidth_package_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_count: Optional[float] = None,
instance_name: Optional[str] = None,
instance_set_id: Optional[str] = None,
instance_type: Optional[str] = None,
allocate_public_ip: Optional[bool] = None,
internet_max_bandwidth_out: Optional[float] = None,
cam_role_name: Optional[str] = None,
password: Optional[str] = None,
keep_image_login: Optional[bool] = None,
placement_group_id: Optional[str] = None,
private_ip: Optional[str] = None,
key_name: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
system_disk_id: Optional[str] = None,
system_disk_size: Optional[float] = None,
system_disk_type: Optional[str] = None,
timeouts: Optional[InstanceSetTimeoutsArgs] = None,
user_data: Optional[str] = None,
user_data_raw: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewInstanceSet(ctx *Context, name string, args InstanceSetArgs, opts ...ResourceOption) (*InstanceSet, error)
public InstanceSet(string name, InstanceSetArgs args, CustomResourceOptions? opts = null)
public InstanceSet(String name, InstanceSetArgs args)
public InstanceSet(String name, InstanceSetArgs args, CustomResourceOptions options)
type: tencentcloud:InstanceSet
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 InstanceSetArgs
- 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 InstanceSetArgs
- 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 InstanceSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceSet 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 InstanceSet resource accepts the following input properties:
- Availability
Zone string - The available zone for the CVM instance.
- Image
Id string - The image to use for the instance. Changing
image_id
will cause the instance reset. - Allocate
Public boolIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- Bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Cam
Role stringName - CAM role name authorized to access.
- Disable
Monitor boolService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Disable
Security boolService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Exclude
Instance List<string>Ids - instance ids list to exclude.
- Hostname string
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- Instance
Charge stringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - Instance
Count double - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- Instance
Name string - Instance
Set stringId - ID of the resource.
- Instance
Type string - The type of the instance.
- Internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - Internet
Max doubleBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - Keep
Image boolLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - Key
Name string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - Password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- Placement
Group stringId - The ID of a placement group.
- Private
Ip string - The private IP to be assigned to this instance, must be in the provided subnet and available.
- Project
Id double - The project the instance belongs to, default to 0.
- Security
Groups List<string> - A list of security group IDs to associate with.
- Subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- System
Disk stringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - System
Disk doubleSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- System
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - Timeouts
Instance
Set Timeouts - User
Data string - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- User
Data stringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - Vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- Availability
Zone string - The available zone for the CVM instance.
- Image
Id string - The image to use for the instance. Changing
image_id
will cause the instance reset. - Allocate
Public boolIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- Bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Cam
Role stringName - CAM role name authorized to access.
- Disable
Monitor boolService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Disable
Security boolService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Exclude
Instance []stringIds - instance ids list to exclude.
- Hostname string
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- Instance
Charge stringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - Instance
Count float64 - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- Instance
Name string - Instance
Set stringId - ID of the resource.
- Instance
Type string - The type of the instance.
- Internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - Internet
Max float64Bandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - Keep
Image boolLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - Key
Name string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - Password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- Placement
Group stringId - The ID of a placement group.
- Private
Ip string - The private IP to be assigned to this instance, must be in the provided subnet and available.
- Project
Id float64 - The project the instance belongs to, default to 0.
- Security
Groups []string - A list of security group IDs to associate with.
- Subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- System
Disk stringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - System
Disk float64Size - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- System
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - Timeouts
Instance
Set Timeouts Args - User
Data string - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- User
Data stringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - Vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- availability
Zone String - The available zone for the CVM instance.
- image
Id String - The image to use for the instance. Changing
image_id
will cause the instance reset. - allocate
Public BooleanIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth
Package StringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role StringName - CAM role name authorized to access.
- disable
Monitor BooleanService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable
Security BooleanService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude
Instance List<String>Ids - instance ids list to exclude.
- hostname String
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- instance
Charge StringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance
Count Double - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance
Name String - instance
Set StringId - ID of the resource.
- instance
Type String - The type of the instance.
- internet
Charge StringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet
Max DoubleBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep
Image BooleanLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key
Name String - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password String
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement
Group StringId - The ID of a placement group.
- private
Ip String - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project
Id Double - The project the instance belongs to, default to 0.
- security
Groups List<String> - A list of security group IDs to associate with.
- subnet
Id String - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system
Disk StringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system
Disk DoubleSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system
Disk StringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts
Instance
Set Timeouts - user
Data String - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user
Data StringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc
Id String - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- availability
Zone string - The available zone for the CVM instance.
- image
Id string - The image to use for the instance. Changing
image_id
will cause the instance reset. - allocate
Public booleanIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role stringName - CAM role name authorized to access.
- disable
Monitor booleanService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable
Security booleanService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude
Instance string[]Ids - instance ids list to exclude.
- hostname string
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- instance
Charge stringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance
Count number - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance
Name string - instance
Set stringId - ID of the resource.
- instance
Type string - The type of the instance.
- internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet
Max numberBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep
Image booleanLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key
Name string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement
Group stringId - The ID of a placement group.
- private
Ip string - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project
Id number - The project the instance belongs to, default to 0.
- security
Groups string[] - A list of security group IDs to associate with.
- subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system
Disk stringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system
Disk numberSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts
Instance
Set Timeouts - user
Data string - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user
Data stringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- availability_
zone str - The available zone for the CVM instance.
- image_
id str - The image to use for the instance. Changing
image_id
will cause the instance reset. - allocate_
public_ boolip - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth_
package_ strid - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam_
role_ strname - CAM role name authorized to access.
- disable_
monitor_ boolservice - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable_
security_ boolservice - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude_
instance_ Sequence[str]ids - instance ids list to exclude.
- hostname str
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- instance_
charge_ strtype - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance_
count float - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance_
name str - instance_
set_ strid - ID of the resource.
- instance_
type str - The type of the instance.
- internet_
charge_ strtype - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet_
max_ floatbandwidth_ out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep_
image_ boollogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key_
name str - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password str
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement_
group_ strid - The ID of a placement group.
- private_
ip str - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project_
id float - The project the instance belongs to, default to 0.
- security_
groups Sequence[str] - A list of security group IDs to associate with.
- subnet_
id str - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system_
disk_ strid - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system_
disk_ floatsize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system_
disk_ strtype - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts
Instance
Set Timeouts Args - user_
data str - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user_
data_ strraw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc_
id str - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- availability
Zone String - The available zone for the CVM instance.
- image
Id String - The image to use for the instance. Changing
image_id
will cause the instance reset. - allocate
Public BooleanIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- bandwidth
Package StringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role StringName - CAM role name authorized to access.
- disable
Monitor BooleanService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable
Security BooleanService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude
Instance List<String>Ids - instance ids list to exclude.
- hostname String
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- instance
Charge StringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance
Count Number - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance
Name String - instance
Set StringId - ID of the resource.
- instance
Type String - The type of the instance.
- internet
Charge StringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet
Max NumberBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep
Image BooleanLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key
Name String - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password String
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement
Group StringId - The ID of a placement group.
- private
Ip String - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project
Id Number - The project the instance belongs to, default to 0.
- security
Groups List<String> - A list of security group IDs to associate with.
- subnet
Id String - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system
Disk StringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system
Disk NumberSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system
Disk StringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts Property Map
- user
Data String - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user
Data StringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc
Id String - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceSet resource produces the following output properties:
- Create
Time string - Create time of the instance.
- Expired
Time string - Expired time of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Ids List<string> - instance id list.
- Instance
Status string - Current status of the instance.
- Public
Ip string - Public IP of the instance.
- Create
Time string - Create time of the instance.
- Expired
Time string - Expired time of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Ids []string - instance id list.
- Instance
Status string - Current status of the instance.
- Public
Ip string - Public IP of the instance.
- create
Time String - Create time of the instance.
- expired
Time String - Expired time of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Ids List<String> - instance id list.
- instance
Status String - Current status of the instance.
- public
Ip String - Public IP of the instance.
- create
Time string - Create time of the instance.
- expired
Time string - Expired time of the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Ids string[] - instance id list.
- instance
Status string - Current status of the instance.
- public
Ip string - Public IP of the instance.
- create_
time str - Create time of the instance.
- expired_
time str - Expired time of the instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
ids Sequence[str] - instance id list.
- instance_
status str - Current status of the instance.
- public_
ip str - Public IP of the instance.
- create
Time String - Create time of the instance.
- expired
Time String - Expired time of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Ids List<String> - instance id list.
- instance
Status String - Current status of the instance.
- public
Ip String - Public IP of the instance.
Look up Existing InstanceSet Resource
Get an existing InstanceSet 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?: InstanceSetState, opts?: CustomResourceOptions): InstanceSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocate_public_ip: Optional[bool] = None,
availability_zone: Optional[str] = None,
bandwidth_package_id: Optional[str] = None,
cam_role_name: Optional[str] = None,
create_time: Optional[str] = None,
disable_monitor_service: Optional[bool] = None,
disable_security_service: Optional[bool] = None,
exclude_instance_ids: Optional[Sequence[str]] = None,
expired_time: Optional[str] = None,
hostname: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_count: Optional[float] = None,
instance_ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
instance_set_id: Optional[str] = None,
instance_status: Optional[str] = None,
instance_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[float] = None,
keep_image_login: Optional[bool] = None,
key_name: Optional[str] = None,
password: Optional[str] = None,
placement_group_id: Optional[str] = None,
private_ip: Optional[str] = None,
project_id: Optional[float] = None,
public_ip: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
system_disk_id: Optional[str] = None,
system_disk_size: Optional[float] = None,
system_disk_type: Optional[str] = None,
timeouts: Optional[InstanceSetTimeoutsArgs] = None,
user_data: Optional[str] = None,
user_data_raw: Optional[str] = None,
vpc_id: Optional[str] = None) -> InstanceSet
func GetInstanceSet(ctx *Context, name string, id IDInput, state *InstanceSetState, opts ...ResourceOption) (*InstanceSet, error)
public static InstanceSet Get(string name, Input<string> id, InstanceSetState? state, CustomResourceOptions? opts = null)
public static InstanceSet get(String name, Output<String> id, InstanceSetState state, CustomResourceOptions options)
resources: _: type: tencentcloud:InstanceSet 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.
- Allocate
Public boolIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- Availability
Zone string - The available zone for the CVM instance.
- Bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Cam
Role stringName - CAM role name authorized to access.
- Create
Time string - Create time of the instance.
- Disable
Monitor boolService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Disable
Security boolService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Exclude
Instance List<string>Ids - instance ids list to exclude.
- Expired
Time string - Expired time of the instance.
- Hostname string
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- Image
Id string - The image to use for the instance. Changing
image_id
will cause the instance reset. - Instance
Charge stringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - Instance
Count double - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- Instance
Ids List<string> - instance id list.
- Instance
Name string - Instance
Set stringId - ID of the resource.
- Instance
Status string - Current status of the instance.
- Instance
Type string - The type of the instance.
- Internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - Internet
Max doubleBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - Keep
Image boolLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - Key
Name string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - Password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- Placement
Group stringId - The ID of a placement group.
- Private
Ip string - The private IP to be assigned to this instance, must be in the provided subnet and available.
- Project
Id double - The project the instance belongs to, default to 0.
- Public
Ip string - Public IP of the instance.
- Security
Groups List<string> - A list of security group IDs to associate with.
- Subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- System
Disk stringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - System
Disk doubleSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- System
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - Timeouts
Instance
Set Timeouts - User
Data string - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- User
Data stringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - Vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- Allocate
Public boolIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- Availability
Zone string - The available zone for the CVM instance.
- Bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Cam
Role stringName - CAM role name authorized to access.
- Create
Time string - Create time of the instance.
- Disable
Monitor boolService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Disable
Security boolService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- Exclude
Instance []stringIds - instance ids list to exclude.
- Expired
Time string - Expired time of the instance.
- Hostname string
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- Image
Id string - The image to use for the instance. Changing
image_id
will cause the instance reset. - Instance
Charge stringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - Instance
Count float64 - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- Instance
Ids []string - instance id list.
- Instance
Name string - Instance
Set stringId - ID of the resource.
- Instance
Status string - Current status of the instance.
- Instance
Type string - The type of the instance.
- Internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - Internet
Max float64Bandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - Keep
Image boolLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - Key
Name string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - Password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- Placement
Group stringId - The ID of a placement group.
- Private
Ip string - The private IP to be assigned to this instance, must be in the provided subnet and available.
- Project
Id float64 - The project the instance belongs to, default to 0.
- Public
Ip string - Public IP of the instance.
- Security
Groups []string - A list of security group IDs to associate with.
- Subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- System
Disk stringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - System
Disk float64Size - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- System
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - Timeouts
Instance
Set Timeouts Args - User
Data string - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- User
Data stringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - Vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- allocate
Public BooleanIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- availability
Zone String - The available zone for the CVM instance.
- bandwidth
Package StringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role StringName - CAM role name authorized to access.
- create
Time String - Create time of the instance.
- disable
Monitor BooleanService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable
Security BooleanService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude
Instance List<String>Ids - instance ids list to exclude.
- expired
Time String - Expired time of the instance.
- hostname String
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- image
Id String - The image to use for the instance. Changing
image_id
will cause the instance reset. - instance
Charge StringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance
Count Double - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance
Ids List<String> - instance id list.
- instance
Name String - instance
Set StringId - ID of the resource.
- instance
Status String - Current status of the instance.
- instance
Type String - The type of the instance.
- internet
Charge StringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet
Max DoubleBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep
Image BooleanLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key
Name String - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password String
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement
Group StringId - The ID of a placement group.
- private
Ip String - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project
Id Double - The project the instance belongs to, default to 0.
- public
Ip String - Public IP of the instance.
- security
Groups List<String> - A list of security group IDs to associate with.
- subnet
Id String - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system
Disk StringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system
Disk DoubleSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system
Disk StringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts
Instance
Set Timeouts - user
Data String - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user
Data StringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc
Id String - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- allocate
Public booleanIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- availability
Zone string - The available zone for the CVM instance.
- bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role stringName - CAM role name authorized to access.
- create
Time string - Create time of the instance.
- disable
Monitor booleanService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable
Security booleanService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude
Instance string[]Ids - instance ids list to exclude.
- expired
Time string - Expired time of the instance.
- hostname string
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- image
Id string - The image to use for the instance. Changing
image_id
will cause the instance reset. - instance
Charge stringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance
Count number - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance
Ids string[] - instance id list.
- instance
Name string - instance
Set stringId - ID of the resource.
- instance
Status string - Current status of the instance.
- instance
Type string - The type of the instance.
- internet
Charge stringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet
Max numberBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep
Image booleanLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key
Name string - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password string
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement
Group stringId - The ID of a placement group.
- private
Ip string - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project
Id number - The project the instance belongs to, default to 0.
- public
Ip string - Public IP of the instance.
- security
Groups string[] - A list of security group IDs to associate with.
- subnet
Id string - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system
Disk stringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system
Disk numberSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts
Instance
Set Timeouts - user
Data string - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user
Data stringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc
Id string - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- allocate_
public_ boolip - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- availability_
zone str - The available zone for the CVM instance.
- bandwidth_
package_ strid - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam_
role_ strname - CAM role name authorized to access.
- create_
time str - Create time of the instance.
- disable_
monitor_ boolservice - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable_
security_ boolservice - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude_
instance_ Sequence[str]ids - instance ids list to exclude.
- expired_
time str - Expired time of the instance.
- hostname str
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- image_
id str - The image to use for the instance. Changing
image_id
will cause the instance reset. - instance_
charge_ strtype - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance_
count float - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance_
ids Sequence[str] - instance id list.
- instance_
name str - instance_
set_ strid - ID of the resource.
- instance_
status str - Current status of the instance.
- instance_
type str - The type of the instance.
- internet_
charge_ strtype - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet_
max_ floatbandwidth_ out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep_
image_ boollogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key_
name str - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password str
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement_
group_ strid - The ID of a placement group.
- private_
ip str - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project_
id float - The project the instance belongs to, default to 0.
- public_
ip str - Public IP of the instance.
- security_
groups Sequence[str] - A list of security group IDs to associate with.
- subnet_
id str - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system_
disk_ strid - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system_
disk_ floatsize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system_
disk_ strtype - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts
Instance
Set Timeouts Args - user_
data str - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user_
data_ strraw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc_
id str - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
- allocate
Public BooleanIp - Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
- availability
Zone String - The available zone for the CVM instance.
- bandwidth
Package StringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role StringName - CAM role name authorized to access.
- create
Time String - Create time of the instance.
- disable
Monitor BooleanService - Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- disable
Security BooleanService - Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifications may lead to the reinstallation of the instance's operating system.
- exclude
Instance List<String>Ids - instance ids list to exclude.
- expired
Time String - Expired time of the instance.
- hostname String
- The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifications may lead to the reinstallation of the instance's operating system..
- image
Id String - The image to use for the instance. Changing
image_id
will cause the instance reset. - instance
Charge StringType - The charge type of instance. Only support
POSTPAID_BY_HOUR
. - instance
Count Number - The number of instances to be purchased. Value range:[1,100]; default value: 1.
- instance
Ids List<String> - instance id list.
- instance
Name String - instance
Set StringId - ID of the resource.
- instance
Status String - Current status of the instance.
- instance
Type String - The type of the instance.
- internet
Charge StringType - Internet charge type of the instance, Valid values are
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. This value does not need to be set whenallocate_public_ip
is false. - internet
Max NumberBandwidth Out - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when
allocate_public_ip
is false. - keep
Image BooleanLogin - Whether to keep image login or not, default is
false
. When the image type is private or shared or imported, this parameter can be settrue
. Modifications may lead to the reinstallation of the instance's operating system. - key
Name String - The key pair to use for the instance, it looks like
skey-16jig7tx
. Modifications may lead to the reinstallation of the instance's operating system. - password String
- Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifications may lead to the reinstallation of the instance's operating system.
- placement
Group StringId - The ID of a placement group.
- private
Ip String - The private IP to be assigned to this instance, must be in the provided subnet and available.
- project
Id Number - The project the instance belongs to, default to 0.
- public
Ip String - Public IP of the instance.
- security
Groups List<String> - A list of security group IDs to associate with.
- subnet
Id String - The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
- system
Disk StringId - System disk snapshot ID used to initialize the system disk. When system disk type is
LOCAL_BASIC
andLOCAL_SSD
, disk id is not supported. - system
Disk NumberSize - Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.
- system
Disk StringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage,CLOUD_BSSD
: Basic SSD. NOTE: If modified, the instance may force stop. - timeouts Property Map
- user
Data String - The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
- user
Data StringRaw - The user data to be injected into this instance, in plain text. Conflicts with
user_data
. Up to 16 KB after base64 encoded. - vpc
Id String - The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
Supporting Types
InstanceSetTimeouts, InstanceSetTimeoutsArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.