published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
实例启动模板版本是一系列实例配置信息的集合,用于快速购买实例。在模板中,您可以存储除密码外的全部配置信息,包括密钥对、计算规格、云盘、网络等,如果配置信息均有效,便可以一键成功购买实例,无需进行重复配置。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
ecsLaunchTemplateVersionDemo:
type: bytepluscc:ecs:LaunchTemplateVersion
name: EcsLaunchTemplateVersionDemo
properties:
deploymentSetGroupNumber: 0
deploymentSetId: dps-ydzc5xxxxxx5b9vu
description: ecs_launch_template_version test
eip:
bandwidth: 1
bandwidth_package_id: bwp-1a1fvbxxxxxx8nvepl9jzfmf
billing_type: 0
isp: BGP
release_with_instance: true
security_protection_instance_id: 0
security_protection_types:
- AntiDDoS_Enhanced
hostName: myname
imageId: image-yzpvmxxxxxxgqcsdamq
imageName: Ubuntu 24.04 with LLM Knowledge Base 64 bit
instanceChargeType: PostPaid
instanceName: test-version
instanceTypeId: ecs.g4i.large
keepImageCredential: false
keyPairName: MigrationKey-job-yecd7dromy38dfaxgxt8
launchTemplateId: lt-yefdzjlbxxxxxxylmkj
networkInterfaces:
- security_group_ids:
- sg-1jolcljxxxxxx1n7ampe70vpx
subnet_id: subnet-btd4nxxxxxxb2tl1jdsb
projectName: default
scheduledInstance:
scheduled_instance_description: test
scheduled_instance_name: test-template
securityEnhancementStrategy: Active
spotStrategy: NoSpot
suffixIndex: 1
tags:
- key: env
value: test
uniqueSuffix: false
userData: ZWNobyBoZWxsbyBlY3Mh
versionDescription: test
volumes:
- delete_with_instance: true
extra_performance_iops: 0
extra_performance_throughput_mb: 0
extra_performance_type_id: ""
size: 50
snapshot_id: ""
volume_type: ESSD_PL0
vpcId: vpc-1jolcldhxxxxxxmq5q7yms
zoneId: cn-beijing-a
Create LaunchTemplateVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LaunchTemplateVersion(name: string, args?: LaunchTemplateVersionArgs, opts?: CustomResourceOptions);@overload
def LaunchTemplateVersion(resource_name: str,
args: Optional[LaunchTemplateVersionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def LaunchTemplateVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
deployment_set_group_number: Optional[int] = None,
deployment_set_id: Optional[str] = None,
description: Optional[str] = None,
eip: Optional[LaunchTemplateVersionEipArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
image_name: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type_id: Optional[str] = None,
keep_image_credential: Optional[bool] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
network_interfaces: Optional[Sequence[LaunchTemplateVersionNetworkInterfaceArgs]] = None,
project_name: Optional[str] = None,
scheduled_instance: Optional[LaunchTemplateVersionScheduledInstanceArgs] = None,
security_enhancement_strategy: Optional[str] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
suffix_index: Optional[int] = None,
tags: Optional[Sequence[LaunchTemplateVersionTagArgs]] = None,
unique_suffix: Optional[bool] = None,
user_data: Optional[str] = None,
version_description: Optional[str] = None,
volumes: Optional[Sequence[LaunchTemplateVersionVolumeArgs]] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None)func NewLaunchTemplateVersion(ctx *Context, name string, args *LaunchTemplateVersionArgs, opts ...ResourceOption) (*LaunchTemplateVersion, error)public LaunchTemplateVersion(string name, LaunchTemplateVersionArgs? args = null, CustomResourceOptions? opts = null)
public LaunchTemplateVersion(String name, LaunchTemplateVersionArgs args)
public LaunchTemplateVersion(String name, LaunchTemplateVersionArgs args, CustomResourceOptions options)
type: bytepluscc:ecs:LaunchTemplateVersion
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 LaunchTemplateVersionArgs
- 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 LaunchTemplateVersionArgs
- 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 LaunchTemplateVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LaunchTemplateVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LaunchTemplateVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var launchTemplateVersionResource = new Bytepluscc.Ecs.LaunchTemplateVersion("launchTemplateVersionResource", new()
{
DeploymentSetGroupNumber = 0,
DeploymentSetId = "string",
Description = "string",
Eip = new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionEipArgs
{
Bandwidth = 0,
BandwidthPackageId = "string",
BillingType = 0,
Isp = "string",
ReleaseWithInstance = false,
SecurityProtectionInstanceId = 0,
SecurityProtectionTypes = new[]
{
"string",
},
},
HostName = "string",
HpcClusterId = "string",
ImageId = "string",
ImageName = "string",
InstanceChargeType = "string",
InstanceName = "string",
InstanceTypeId = "string",
KeepImageCredential = false,
KeyPairName = "string",
LaunchTemplateId = "string",
NetworkInterfaces = new[]
{
new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionNetworkInterfaceArgs
{
SecurityGroupIds = new[]
{
"string",
},
SubnetId = "string",
},
},
ProjectName = "string",
ScheduledInstance = new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionScheduledInstanceArgs
{
ScheduledInstanceDescription = "string",
ScheduledInstanceName = "string",
},
SecurityEnhancementStrategy = "string",
SpotPriceLimit = 0,
SpotStrategy = "string",
SuffixIndex = 0,
Tags = new[]
{
new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionTagArgs
{
Key = "string",
Value = "string",
},
},
UniqueSuffix = false,
UserData = "string",
VersionDescription = "string",
Volumes = new[]
{
new Bytepluscc.Ecs.Inputs.LaunchTemplateVersionVolumeArgs
{
DeleteWithInstance = false,
ExtraPerformanceIops = 0,
ExtraPerformanceThroughputMb = 0,
ExtraPerformanceTypeId = "string",
Size = 0,
SnapshotId = "string",
VolumeType = "string",
},
},
VpcId = "string",
ZoneId = "string",
});
example, err := ecs.NewLaunchTemplateVersion(ctx, "launchTemplateVersionResource", &ecs.LaunchTemplateVersionArgs{
DeploymentSetGroupNumber: pulumi.Int(0),
DeploymentSetId: pulumi.String("string"),
Description: pulumi.String("string"),
Eip: &ecs.LaunchTemplateVersionEipArgs{
Bandwidth: pulumi.Int(0),
BandwidthPackageId: pulumi.String("string"),
BillingType: pulumi.Int(0),
Isp: pulumi.String("string"),
ReleaseWithInstance: pulumi.Bool(false),
SecurityProtectionInstanceId: pulumi.Int(0),
SecurityProtectionTypes: pulumi.StringArray{
pulumi.String("string"),
},
},
HostName: pulumi.String("string"),
HpcClusterId: pulumi.String("string"),
ImageId: pulumi.String("string"),
ImageName: pulumi.String("string"),
InstanceChargeType: pulumi.String("string"),
InstanceName: pulumi.String("string"),
InstanceTypeId: pulumi.String("string"),
KeepImageCredential: pulumi.Bool(false),
KeyPairName: pulumi.String("string"),
LaunchTemplateId: pulumi.String("string"),
NetworkInterfaces: ecs.LaunchTemplateVersionNetworkInterfaceArray{
&ecs.LaunchTemplateVersionNetworkInterfaceArgs{
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
},
},
ProjectName: pulumi.String("string"),
ScheduledInstance: &ecs.LaunchTemplateVersionScheduledInstanceArgs{
ScheduledInstanceDescription: pulumi.String("string"),
ScheduledInstanceName: pulumi.String("string"),
},
SecurityEnhancementStrategy: pulumi.String("string"),
SpotPriceLimit: pulumi.Float64(0),
SpotStrategy: pulumi.String("string"),
SuffixIndex: pulumi.Int(0),
Tags: ecs.LaunchTemplateVersionTagArray{
&ecs.LaunchTemplateVersionTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
UniqueSuffix: pulumi.Bool(false),
UserData: pulumi.String("string"),
VersionDescription: pulumi.String("string"),
Volumes: ecs.LaunchTemplateVersionVolumeArray{
&ecs.LaunchTemplateVersionVolumeArgs{
DeleteWithInstance: pulumi.Bool(false),
ExtraPerformanceIops: pulumi.Int(0),
ExtraPerformanceThroughputMb: pulumi.Int(0),
ExtraPerformanceTypeId: pulumi.String("string"),
Size: pulumi.Int(0),
SnapshotId: pulumi.String("string"),
VolumeType: pulumi.String("string"),
},
},
VpcId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var launchTemplateVersionResource = new LaunchTemplateVersion("launchTemplateVersionResource", LaunchTemplateVersionArgs.builder()
.deploymentSetGroupNumber(0)
.deploymentSetId("string")
.description("string")
.eip(LaunchTemplateVersionEipArgs.builder()
.bandwidth(0)
.bandwidthPackageId("string")
.billingType(0)
.isp("string")
.releaseWithInstance(false)
.securityProtectionInstanceId(0)
.securityProtectionTypes("string")
.build())
.hostName("string")
.hpcClusterId("string")
.imageId("string")
.imageName("string")
.instanceChargeType("string")
.instanceName("string")
.instanceTypeId("string")
.keepImageCredential(false)
.keyPairName("string")
.launchTemplateId("string")
.networkInterfaces(LaunchTemplateVersionNetworkInterfaceArgs.builder()
.securityGroupIds("string")
.subnetId("string")
.build())
.projectName("string")
.scheduledInstance(LaunchTemplateVersionScheduledInstanceArgs.builder()
.scheduledInstanceDescription("string")
.scheduledInstanceName("string")
.build())
.securityEnhancementStrategy("string")
.spotPriceLimit(0.0)
.spotStrategy("string")
.suffixIndex(0)
.tags(LaunchTemplateVersionTagArgs.builder()
.key("string")
.value("string")
.build())
.uniqueSuffix(false)
.userData("string")
.versionDescription("string")
.volumes(LaunchTemplateVersionVolumeArgs.builder()
.deleteWithInstance(false)
.extraPerformanceIops(0)
.extraPerformanceThroughputMb(0)
.extraPerformanceTypeId("string")
.size(0)
.snapshotId("string")
.volumeType("string")
.build())
.vpcId("string")
.zoneId("string")
.build());
launch_template_version_resource = bytepluscc.ecs.LaunchTemplateVersion("launchTemplateVersionResource",
deployment_set_group_number=0,
deployment_set_id="string",
description="string",
eip={
"bandwidth": 0,
"bandwidth_package_id": "string",
"billing_type": 0,
"isp": "string",
"release_with_instance": False,
"security_protection_instance_id": 0,
"security_protection_types": ["string"],
},
host_name="string",
hpc_cluster_id="string",
image_id="string",
image_name="string",
instance_charge_type="string",
instance_name="string",
instance_type_id="string",
keep_image_credential=False,
key_pair_name="string",
launch_template_id="string",
network_interfaces=[{
"security_group_ids": ["string"],
"subnet_id": "string",
}],
project_name="string",
scheduled_instance={
"scheduled_instance_description": "string",
"scheduled_instance_name": "string",
},
security_enhancement_strategy="string",
spot_price_limit=0,
spot_strategy="string",
suffix_index=0,
tags=[{
"key": "string",
"value": "string",
}],
unique_suffix=False,
user_data="string",
version_description="string",
volumes=[{
"delete_with_instance": False,
"extra_performance_iops": 0,
"extra_performance_throughput_mb": 0,
"extra_performance_type_id": "string",
"size": 0,
"snapshot_id": "string",
"volume_type": "string",
}],
vpc_id="string",
zone_id="string")
const launchTemplateVersionResource = new bytepluscc.ecs.LaunchTemplateVersion("launchTemplateVersionResource", {
deploymentSetGroupNumber: 0,
deploymentSetId: "string",
description: "string",
eip: {
bandwidth: 0,
bandwidthPackageId: "string",
billingType: 0,
isp: "string",
releaseWithInstance: false,
securityProtectionInstanceId: 0,
securityProtectionTypes: ["string"],
},
hostName: "string",
hpcClusterId: "string",
imageId: "string",
imageName: "string",
instanceChargeType: "string",
instanceName: "string",
instanceTypeId: "string",
keepImageCredential: false,
keyPairName: "string",
launchTemplateId: "string",
networkInterfaces: [{
securityGroupIds: ["string"],
subnetId: "string",
}],
projectName: "string",
scheduledInstance: {
scheduledInstanceDescription: "string",
scheduledInstanceName: "string",
},
securityEnhancementStrategy: "string",
spotPriceLimit: 0,
spotStrategy: "string",
suffixIndex: 0,
tags: [{
key: "string",
value: "string",
}],
uniqueSuffix: false,
userData: "string",
versionDescription: "string",
volumes: [{
deleteWithInstance: false,
extraPerformanceIops: 0,
extraPerformanceThroughputMb: 0,
extraPerformanceTypeId: "string",
size: 0,
snapshotId: "string",
volumeType: "string",
}],
vpcId: "string",
zoneId: "string",
});
type: bytepluscc:ecs:LaunchTemplateVersion
properties:
deploymentSetGroupNumber: 0
deploymentSetId: string
description: string
eip:
bandwidth: 0
bandwidthPackageId: string
billingType: 0
isp: string
releaseWithInstance: false
securityProtectionInstanceId: 0
securityProtectionTypes:
- string
hostName: string
hpcClusterId: string
imageId: string
imageName: string
instanceChargeType: string
instanceName: string
instanceTypeId: string
keepImageCredential: false
keyPairName: string
launchTemplateId: string
networkInterfaces:
- securityGroupIds:
- string
subnetId: string
projectName: string
scheduledInstance:
scheduledInstanceDescription: string
scheduledInstanceName: string
securityEnhancementStrategy: string
spotPriceLimit: 0
spotStrategy: string
suffixIndex: 0
tags:
- key: string
value: string
uniqueSuffix: false
userData: string
versionDescription: string
volumes:
- deleteWithInstance: false
extraPerformanceIops: 0
extraPerformanceThroughputMb: 0
extraPerformanceTypeId: string
size: 0
snapshotId: string
volumeType: string
vpcId: string
zoneId: string
LaunchTemplateVersion 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 LaunchTemplateVersion resource accepts the following input properties:
- Deployment
Set intGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- Deployment
Set stringId - 实例需要加入的部署集ID。
- Description string
- 实例的描述。
- Eip
Byteplus.
Launch Template Version Eip - 实例绑定的公网IP信息。
- Host
Name string - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- Hpc
Cluster stringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- Image
Id string - 镜像ID。
- Image
Name string - 镜像名称。
- Instance
Charge stringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- Instance
Name string - 实例的名称。
- Instance
Type stringId - 实例的规格。
- Keep
Image boolCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- Key
Pair stringName - 实例绑定的密钥对。
- Launch
Template stringId - 实例启动模板 ID。
- Network
Interfaces List<Byteplus.Launch Template Version Network Interface> - Project
Name string - 实例所属项目。
- Scheduled
Instance Byteplus.Launch Template Version Scheduled Instance - 弹性预约单信息。
- Security
Enhancement stringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- Spot
Price doubleLimit - 抢占式实例的每小时最高价格。
- Spot
Strategy string - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- Suffix
Index int - 有序后缀的起始序号。
-
List<Byteplus.
Launch Template Version Tag> - Unique
Suffix bool - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- User
Data string - 实例的自定义数据。
- Version
Description string - 模版版本描述。
- Volumes
List<Byteplus.
Launch Template Version Volume> - Vpc
Id string - 私有网络ID。
- Zone
Id string - 实例所属可用区ID。
- Deployment
Set intGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- Deployment
Set stringId - 实例需要加入的部署集ID。
- Description string
- 实例的描述。
- Eip
Launch
Template Version Eip Args - 实例绑定的公网IP信息。
- Host
Name string - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- Hpc
Cluster stringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- Image
Id string - 镜像ID。
- Image
Name string - 镜像名称。
- Instance
Charge stringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- Instance
Name string - 实例的名称。
- Instance
Type stringId - 实例的规格。
- Keep
Image boolCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- Key
Pair stringName - 实例绑定的密钥对。
- Launch
Template stringId - 实例启动模板 ID。
- Network
Interfaces []LaunchTemplate Version Network Interface Args - Project
Name string - 实例所属项目。
- Scheduled
Instance LaunchTemplate Version Scheduled Instance Args - 弹性预约单信息。
- Security
Enhancement stringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- Spot
Price float64Limit - 抢占式实例的每小时最高价格。
- Spot
Strategy string - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- Suffix
Index int - 有序后缀的起始序号。
-
[]Launch
Template Version Tag Args - Unique
Suffix bool - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- User
Data string - 实例的自定义数据。
- Version
Description string - 模版版本描述。
- Volumes
[]Launch
Template Version Volume Args - Vpc
Id string - 私有网络ID。
- Zone
Id string - 实例所属可用区ID。
- deployment
Set IntegerGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment
Set StringId - 实例需要加入的部署集ID。
- description String
- 实例的描述。
- eip
Launch
Template Version Eip - 实例绑定的公网IP信息。
- host
Name String - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc
Cluster StringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image
Id String - 镜像ID。
- image
Name String - 镜像名称。
- instance
Charge StringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance
Name String - 实例的名称。
- instance
Type StringId - 实例的规格。
- keep
Image BooleanCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key
Pair StringName - 实例绑定的密钥对。
- launch
Template StringId - 实例启动模板 ID。
- network
Interfaces List<LaunchTemplate Version Network Interface> - project
Name String - 实例所属项目。
- scheduled
Instance LaunchTemplate Version Scheduled Instance - 弹性预约单信息。
- security
Enhancement StringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot
Price DoubleLimit - 抢占式实例的每小时最高价格。
- spot
Strategy String - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix
Index Integer - 有序后缀的起始序号。
-
List<Launch
Template Version Tag> - unique
Suffix Boolean - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user
Data String - 实例的自定义数据。
- version
Description String - 模版版本描述。
- volumes
List<Launch
Template Version Volume> - vpc
Id String - 私有网络ID。
- zone
Id String - 实例所属可用区ID。
- deployment
Set numberGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment
Set stringId - 实例需要加入的部署集ID。
- description string
- 实例的描述。
- eip
Launch
Template Version Eip - 实例绑定的公网IP信息。
- host
Name string - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc
Cluster stringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image
Id string - 镜像ID。
- image
Name string - 镜像名称。
- instance
Charge stringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance
Name string - 实例的名称。
- instance
Type stringId - 实例的规格。
- keep
Image booleanCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key
Pair stringName - 实例绑定的密钥对。
- launch
Template stringId - 实例启动模板 ID。
- network
Interfaces LaunchTemplate Version Network Interface[] - project
Name string - 实例所属项目。
- scheduled
Instance LaunchTemplate Version Scheduled Instance - 弹性预约单信息。
- security
Enhancement stringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot
Price numberLimit - 抢占式实例的每小时最高价格。
- spot
Strategy string - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix
Index number - 有序后缀的起始序号。
-
Launch
Template Version Tag[] - unique
Suffix boolean - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user
Data string - 实例的自定义数据。
- version
Description string - 模版版本描述。
- volumes
Launch
Template Version Volume[] - vpc
Id string - 私有网络ID。
- zone
Id string - 实例所属可用区ID。
- deployment_
set_ intgroup_ number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment_
set_ strid - 实例需要加入的部署集ID。
- description str
- 实例的描述。
- eip
Launch
Template Version Eip Args - 实例绑定的公网IP信息。
- host_
name str - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc_
cluster_ strid - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image_
id str - 镜像ID。
- image_
name str - 镜像名称。
- instance_
charge_ strtype - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance_
name str - 实例的名称。
- instance_
type_ strid - 实例的规格。
- keep_
image_ boolcredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key_
pair_ strname - 实例绑定的密钥对。
- launch_
template_ strid - 实例启动模板 ID。
- network_
interfaces Sequence[LaunchTemplate Version Network Interface Args] - project_
name str - 实例所属项目。
- scheduled_
instance LaunchTemplate Version Scheduled Instance Args - 弹性预约单信息。
- security_
enhancement_ strstrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot_
price_ floatlimit - 抢占式实例的每小时最高价格。
- spot_
strategy str - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix_
index int - 有序后缀的起始序号。
-
Sequence[Launch
Template Version Tag Args] - unique_
suffix bool - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user_
data str - 实例的自定义数据。
- version_
description str - 模版版本描述。
- volumes
Sequence[Launch
Template Version Volume Args] - vpc_
id str - 私有网络ID。
- zone_
id str - 实例所属可用区ID。
- deployment
Set NumberGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment
Set StringId - 实例需要加入的部署集ID。
- description String
- 实例的描述。
- eip Property Map
- 实例绑定的公网IP信息。
- host
Name String - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc
Cluster StringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image
Id String - 镜像ID。
- image
Name String - 镜像名称。
- instance
Charge StringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance
Name String - 实例的名称。
- instance
Type StringId - 实例的规格。
- keep
Image BooleanCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key
Pair StringName - 实例绑定的密钥对。
- launch
Template StringId - 实例启动模板 ID。
- network
Interfaces List<Property Map> - project
Name String - 实例所属项目。
- scheduled
Instance Property Map - 弹性预约单信息。
- security
Enhancement StringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot
Price NumberLimit - 抢占式实例的每小时最高价格。
- spot
Strategy String - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix
Index Number - 有序后缀的起始序号。
- List<Property Map>
- unique
Suffix Boolean - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user
Data String - 实例的自定义数据。
- version
Description String - 模版版本描述。
- volumes List<Property Map>
- vpc
Id String - 私有网络ID。
- zone
Id String - 实例所属可用区ID。
Outputs
All input properties are implicitly available as output properties. Additionally, the LaunchTemplateVersion resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Version
Number string - 模板版本号。
- Id string
- The provider-assigned unique ID for this managed resource.
- Version
Number string - 模板版本号。
- id String
- The provider-assigned unique ID for this managed resource.
- version
Number String - 模板版本号。
- id string
- The provider-assigned unique ID for this managed resource.
- version
Number string - 模板版本号。
- id str
- The provider-assigned unique ID for this managed resource.
- version_
number str - 模板版本号。
- id String
- The provider-assigned unique ID for this managed resource.
- version
Number String - 模板版本号。
Look up Existing LaunchTemplateVersion Resource
Get an existing LaunchTemplateVersion 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?: LaunchTemplateVersionState, opts?: CustomResourceOptions): LaunchTemplateVersion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
deployment_set_group_number: Optional[int] = None,
deployment_set_id: Optional[str] = None,
description: Optional[str] = None,
eip: Optional[LaunchTemplateVersionEipArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
image_name: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type_id: Optional[str] = None,
keep_image_credential: Optional[bool] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
network_interfaces: Optional[Sequence[LaunchTemplateVersionNetworkInterfaceArgs]] = None,
project_name: Optional[str] = None,
scheduled_instance: Optional[LaunchTemplateVersionScheduledInstanceArgs] = None,
security_enhancement_strategy: Optional[str] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
suffix_index: Optional[int] = None,
tags: Optional[Sequence[LaunchTemplateVersionTagArgs]] = None,
unique_suffix: Optional[bool] = None,
user_data: Optional[str] = None,
version_description: Optional[str] = None,
version_number: Optional[str] = None,
volumes: Optional[Sequence[LaunchTemplateVersionVolumeArgs]] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None) -> LaunchTemplateVersionfunc GetLaunchTemplateVersion(ctx *Context, name string, id IDInput, state *LaunchTemplateVersionState, opts ...ResourceOption) (*LaunchTemplateVersion, error)public static LaunchTemplateVersion Get(string name, Input<string> id, LaunchTemplateVersionState? state, CustomResourceOptions? opts = null)public static LaunchTemplateVersion get(String name, Output<String> id, LaunchTemplateVersionState state, CustomResourceOptions options)resources: _: type: bytepluscc:ecs:LaunchTemplateVersion 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.
- Deployment
Set intGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- Deployment
Set stringId - 实例需要加入的部署集ID。
- Description string
- 实例的描述。
- Eip
Byteplus.
Launch Template Version Eip - 实例绑定的公网IP信息。
- Host
Name string - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- Hpc
Cluster stringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- Image
Id string - 镜像ID。
- Image
Name string - 镜像名称。
- Instance
Charge stringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- Instance
Name string - 实例的名称。
- Instance
Type stringId - 实例的规格。
- Keep
Image boolCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- Key
Pair stringName - 实例绑定的密钥对。
- Launch
Template stringId - 实例启动模板 ID。
- Network
Interfaces List<Byteplus.Launch Template Version Network Interface> - Project
Name string - 实例所属项目。
- Scheduled
Instance Byteplus.Launch Template Version Scheduled Instance - 弹性预约单信息。
- Security
Enhancement stringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- Spot
Price doubleLimit - 抢占式实例的每小时最高价格。
- Spot
Strategy string - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- Suffix
Index int - 有序后缀的起始序号。
-
List<Byteplus.
Launch Template Version Tag> - Unique
Suffix bool - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- User
Data string - 实例的自定义数据。
- Version
Description string - 模版版本描述。
- Version
Number string - 模板版本号。
- Volumes
List<Byteplus.
Launch Template Version Volume> - Vpc
Id string - 私有网络ID。
- Zone
Id string - 实例所属可用区ID。
- Deployment
Set intGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- Deployment
Set stringId - 实例需要加入的部署集ID。
- Description string
- 实例的描述。
- Eip
Launch
Template Version Eip Args - 实例绑定的公网IP信息。
- Host
Name string - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- Hpc
Cluster stringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- Image
Id string - 镜像ID。
- Image
Name string - 镜像名称。
- Instance
Charge stringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- Instance
Name string - 实例的名称。
- Instance
Type stringId - 实例的规格。
- Keep
Image boolCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- Key
Pair stringName - 实例绑定的密钥对。
- Launch
Template stringId - 实例启动模板 ID。
- Network
Interfaces []LaunchTemplate Version Network Interface Args - Project
Name string - 实例所属项目。
- Scheduled
Instance LaunchTemplate Version Scheduled Instance Args - 弹性预约单信息。
- Security
Enhancement stringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- Spot
Price float64Limit - 抢占式实例的每小时最高价格。
- Spot
Strategy string - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- Suffix
Index int - 有序后缀的起始序号。
-
[]Launch
Template Version Tag Args - Unique
Suffix bool - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- User
Data string - 实例的自定义数据。
- Version
Description string - 模版版本描述。
- Version
Number string - 模板版本号。
- Volumes
[]Launch
Template Version Volume Args - Vpc
Id string - 私有网络ID。
- Zone
Id string - 实例所属可用区ID。
- deployment
Set IntegerGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment
Set StringId - 实例需要加入的部署集ID。
- description String
- 实例的描述。
- eip
Launch
Template Version Eip - 实例绑定的公网IP信息。
- host
Name String - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc
Cluster StringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image
Id String - 镜像ID。
- image
Name String - 镜像名称。
- instance
Charge StringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance
Name String - 实例的名称。
- instance
Type StringId - 实例的规格。
- keep
Image BooleanCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key
Pair StringName - 实例绑定的密钥对。
- launch
Template StringId - 实例启动模板 ID。
- network
Interfaces List<LaunchTemplate Version Network Interface> - project
Name String - 实例所属项目。
- scheduled
Instance LaunchTemplate Version Scheduled Instance - 弹性预约单信息。
- security
Enhancement StringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot
Price DoubleLimit - 抢占式实例的每小时最高价格。
- spot
Strategy String - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix
Index Integer - 有序后缀的起始序号。
-
List<Launch
Template Version Tag> - unique
Suffix Boolean - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user
Data String - 实例的自定义数据。
- version
Description String - 模版版本描述。
- version
Number String - 模板版本号。
- volumes
List<Launch
Template Version Volume> - vpc
Id String - 私有网络ID。
- zone
Id String - 实例所属可用区ID。
- deployment
Set numberGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment
Set stringId - 实例需要加入的部署集ID。
- description string
- 实例的描述。
- eip
Launch
Template Version Eip - 实例绑定的公网IP信息。
- host
Name string - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc
Cluster stringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image
Id string - 镜像ID。
- image
Name string - 镜像名称。
- instance
Charge stringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance
Name string - 实例的名称。
- instance
Type stringId - 实例的规格。
- keep
Image booleanCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key
Pair stringName - 实例绑定的密钥对。
- launch
Template stringId - 实例启动模板 ID。
- network
Interfaces LaunchTemplate Version Network Interface[] - project
Name string - 实例所属项目。
- scheduled
Instance LaunchTemplate Version Scheduled Instance - 弹性预约单信息。
- security
Enhancement stringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot
Price numberLimit - 抢占式实例的每小时最高价格。
- spot
Strategy string - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix
Index number - 有序后缀的起始序号。
-
Launch
Template Version Tag[] - unique
Suffix boolean - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user
Data string - 实例的自定义数据。
- version
Description string - 模版版本描述。
- version
Number string - 模板版本号。
- volumes
Launch
Template Version Volume[] - vpc
Id string - 私有网络ID。
- zone
Id string - 实例所属可用区ID。
- deployment_
set_ intgroup_ number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment_
set_ strid - 实例需要加入的部署集ID。
- description str
- 实例的描述。
- eip
Launch
Template Version Eip Args - 实例绑定的公网IP信息。
- host_
name str - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc_
cluster_ strid - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image_
id str - 镜像ID。
- image_
name str - 镜像名称。
- instance_
charge_ strtype - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance_
name str - 实例的名称。
- instance_
type_ strid - 实例的规格。
- keep_
image_ boolcredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key_
pair_ strname - 实例绑定的密钥对。
- launch_
template_ strid - 实例启动模板 ID。
- network_
interfaces Sequence[LaunchTemplate Version Network Interface Args] - project_
name str - 实例所属项目。
- scheduled_
instance LaunchTemplate Version Scheduled Instance Args - 弹性预约单信息。
- security_
enhancement_ strstrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot_
price_ floatlimit - 抢占式实例的每小时最高价格。
- spot_
strategy str - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix_
index int - 有序后缀的起始序号。
-
Sequence[Launch
Template Version Tag Args] - unique_
suffix bool - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user_
data str - 实例的自定义数据。
- version_
description str - 模版版本描述。
- version_
number str - 模板版本号。
- volumes
Sequence[Launch
Template Version Volume Args] - vpc_
id str - 私有网络ID。
- zone_
id str - 实例所属可用区ID。
- deployment
Set NumberGroup Number - 当ECS实例要加入或调整的部署集策略为部署集组高可用策略(AvailabilityGroup)时,可以通过该参数指定实例在部署集中的分组号。
- deployment
Set StringId - 实例需要加入的部署集ID。
- description String
- 实例的描述。
- eip Property Map
- 实例绑定的公网IP信息。
- host
Name String - 实例的主机名。Linux系统的主机名长度限制为2~59个字符。Windows系统的主机名长度限制为2~10个字符。
- hpc
Cluster StringId - 当创建高性能计算GPU型实例时,请指定高性能计算集群ID。
- image
Id String - 镜像ID。
- image
Name String - 镜像名称。
- instance
Charge StringType - 实例和云盘的计费类型,取值:PostPaid:按量计费。PrePaid:包年包月。Esi:弹性预约实例。Segmented:时段型弹性预约实例。
- instance
Name String - 实例的名称。
- instance
Type StringId - 实例的规格。
- keep
Image BooleanCredential - 是否保留镜像设置,取值:true:保留镜像设置,保留后将使用镜像预设的密码或密钥对登录实例。false(默认):不保留镜像设置。
- key
Pair StringName - 实例绑定的密钥对。
- launch
Template StringId - 实例启动模板 ID。
- network
Interfaces List<Property Map> - project
Name String - 实例所属项目。
- scheduled
Instance Property Map - 弹性预约单信息。
- security
Enhancement StringStrategy - 是否开启安全加固。Active:开启安全加固,仅对公共镜像生效。InActive:关闭安全加固,对所有镜像生效。
- spot
Price NumberLimit - 抢占式实例的每小时最高价格。
- spot
Strategy String - 按量计费的抢占式策略。取值:NoSpot:表示创建正常按量计费实例。SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。SpotWithPriceLimit:设置出价上限的抢占式实例。
- suffix
Index Number - 有序后缀的起始序号。
- List<Property Map>
- unique
Suffix Boolean - 表示当创建多台实例时,是否为Hostname和InstanceName自动添加有序后缀。
- user
Data String - 实例的自定义数据。
- version
Description String - 模版版本描述。
- version
Number String - 模板版本号。
- volumes List<Property Map>
- vpc
Id String - 私有网络ID。
- zone
Id String - 实例所属可用区ID。
Supporting Types
LaunchTemplateVersionEip, LaunchTemplateVersionEipArgs
- Bandwidth int
- 公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
- Bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。
- Billing
Type int - 公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- Isp string
- 公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
- Release
With boolInstance - 公网IP是否随实例删除,仅按量计费公网IP生效。
- Security
Protection intInstance Id - 安全防护包ID。
- Security
Protection List<string>Types - 公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
- Bandwidth int
- 公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
- Bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。
- Billing
Type int - 公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- Isp string
- 公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
- Release
With boolInstance - 公网IP是否随实例删除,仅按量计费公网IP生效。
- Security
Protection intInstance Id - 安全防护包ID。
- Security
Protection []stringTypes - 公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
- bandwidth Integer
- 公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
- bandwidth
Package StringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。
- billing
Type Integer - 公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- isp String
- 公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
- release
With BooleanInstance - 公网IP是否随实例删除,仅按量计费公网IP生效。
- security
Protection IntegerInstance Id - 安全防护包ID。
- security
Protection List<String>Types - 公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
- bandwidth number
- 公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
- bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。
- billing
Type number - 公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- isp string
- 公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
- release
With booleanInstance - 公网IP是否随实例删除,仅按量计费公网IP生效。
- security
Protection numberInstance Id - 安全防护包ID。
- security
Protection string[]Types - 公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
- bandwidth int
- 公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
- bandwidth_
package_ strid - 共享带宽包的ID,表示将公网IP加入到共享带宽包。
- billing_
type int - 公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- isp str
- 公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
- release_
with_ boolinstance - 公网IP是否随实例删除,仅按量计费公网IP生效。
- security_
protection_ intinstance_ id - 安全防护包ID。
- security_
protection_ Sequence[str]types - 公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
- bandwidth Number
- 公网IP的带宽上限,单位:Mbps。取值范围:1~200。默认值:1。
- bandwidth
Package StringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。
- billing
Type Number - 公网IP的计费方式,取值:2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- isp String
- 公网IP的线路类型,取值:BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:国电信静态单线。ChinaUnicom:中国联通静态单线。
- release
With BooleanInstance - 公网IP是否随实例删除,仅按量计费公网IP生效。
- security
Protection NumberInstance Id - 安全防护包ID。
- security
Protection List<String>Types - 公网IP的安全防护类型。取值:AntiDDoS_Enhanced:申请增强防护类型的公网IP,可加入到DDoS原生防护(企业版)实例。
LaunchTemplateVersionNetworkInterface, LaunchTemplateVersionNetworkInterfaceArgs
- Security
Group List<string>Ids - 网卡关联的安全组ID。
- Subnet
Id string - 实例的私有网络子网ID。
- Security
Group []stringIds - 网卡关联的安全组ID。
- Subnet
Id string - 实例的私有网络子网ID。
- security
Group List<String>Ids - 网卡关联的安全组ID。
- subnet
Id String - 实例的私有网络子网ID。
- security
Group string[]Ids - 网卡关联的安全组ID。
- subnet
Id string - 实例的私有网络子网ID。
- security_
group_ Sequence[str]ids - 网卡关联的安全组ID。
- subnet_
id str - 实例的私有网络子网ID。
- security
Group List<String>Ids - 网卡关联的安全组ID。
- subnet
Id String - 实例的私有网络子网ID。
LaunchTemplateVersionScheduledInstance, LaunchTemplateVersionScheduledInstanceArgs
- Scheduled
Instance stringDescription - 弹性预约单的描述。
- Scheduled
Instance stringName - 弹性预约单的名称。
- Scheduled
Instance stringDescription - 弹性预约单的描述。
- Scheduled
Instance stringName - 弹性预约单的名称。
- scheduled
Instance StringDescription - 弹性预约单的描述。
- scheduled
Instance StringName - 弹性预约单的名称。
- scheduled
Instance stringDescription - 弹性预约单的描述。
- scheduled
Instance stringName - 弹性预约单的名称。
- scheduled_
instance_ strdescription - 弹性预约单的描述。
- scheduled_
instance_ strname - 弹性预约单的名称。
- scheduled
Instance StringDescription - 弹性预约单的描述。
- scheduled
Instance StringName - 弹性预约单的名称。
LaunchTemplateVersionTag, LaunchTemplateVersionTagArgs
LaunchTemplateVersionVolume, LaunchTemplateVersionVolumeArgs
- Delete
With boolInstance - 云盘是否随实例释放。
- Extra
Performance intIops - 云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
- Extra
Performance intThroughput Mb - 云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
- Extra
Performance stringType Id - 云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
- Size int
- 云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
- Snapshot
Id string - 使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
- Volume
Type string - 云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
- Delete
With boolInstance - 云盘是否随实例释放。
- Extra
Performance intIops - 云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
- Extra
Performance intThroughput Mb - 云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
- Extra
Performance stringType Id - 云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
- Size int
- 云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
- Snapshot
Id string - 使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
- Volume
Type string - 云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
- delete
With BooleanInstance - 云盘是否随实例释放。
- extra
Performance IntegerIops - 云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
- extra
Performance IntegerThroughput Mb - 云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
- extra
Performance StringType Id - 云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
- size Integer
- 云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
- snapshot
Id String - 使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
- volume
Type String - 云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
- delete
With booleanInstance - 云盘是否随实例释放。
- extra
Performance numberIops - 云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
- extra
Performance numberThroughput Mb - 云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
- extra
Performance stringType Id - 云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
- size number
- 云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
- snapshot
Id string - 使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
- volume
Type string - 云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
- delete_
with_ boolinstance - 云盘是否随实例释放。
- extra_
performance_ intiops - 云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
- extra_
performance_ intthroughput_ mb - 云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
- extra_
performance_ strtype_ id - 云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
- size int
- 云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
- snapshot_
id str - 使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
- volume_
type str - 云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
- delete
With BooleanInstance - 云盘是否随实例释放。
- extra
Performance NumberIops - 云盘额外IOPS性能大小,仅ESSD FlexPL数据盘支持,单位为次/秒。 ExtraPerformanceTypeId为Balance或IOPS时需设置该参数。各个类型的额外性能取值范围如下:IOPS型:1~50000。Balance型:1~50000。
- extra
Performance NumberThroughput Mb - 云盘额外吞吐性能大小,单位MB/s,仅ESSD FlexPL数据盘支持。 ExtraPerformanceTypeId为Throughput时需设置该参数。 取值范围:1~650。
- extra
Performance StringType Id - 云盘额外性能的类型,仅ESSD FlexPL数据盘支持。关于额外性能的更多介绍,请参见云盘额外性能。取值:Balance:均衡型额外性能。IOPS:IOPS型额外性能。Throughput:吞吐量型额外性能。
- size Number
- 云盘大小,单位为GB。系统盘:ESSDPL0:20~2048 PTSSD:10~500。数据盘:ESSDPL0:10~32768 PTSSD:20~8192
- snapshot
Id String - 使用快照创建云盘,仅支持创建数据盘。您可以调用DescribeSnapshots接口查询快照ID。
- volume
Type String - 云盘类型。ESSD_PL0:极速型SSD PL0。PTSSD:性能型SSD。
Import
$ pulumi import bytepluscc:ecs/launchTemplateVersion:LaunchTemplateVersion example "launch_template_id|version_number"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
