LaunchTemplate

Provides an ECS Launch Template resource.

For information about Launch Template and how to use it, see Launch Template.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var images = Output.Create(AliCloud.Ecs.GetImages.InvokeAsync(new AliCloud.Ecs.GetImagesArgs
        {
            Owners = "system",
        }));
        var instances = Output.Create(AliCloud.Ecs.GetInstances.InvokeAsync());
        var template = new AliCloud.Ecs.LaunchTemplate("template", new AliCloud.Ecs.LaunchTemplateArgs
        {
            DataDisks = 
            {
                new AliCloud.Ecs.Inputs.LaunchTemplateDataDiskArgs
                {
                    Description = "test1",
                    Name = "disk1",
                },
                new AliCloud.Ecs.Inputs.LaunchTemplateDataDiskArgs
                {
                    Description = "test2",
                    Name = "disk2",
                },
            },
            Description = "test1",
            HostName = "tf-test-host",
            ImageId = images.Apply(images => images.Images[0].Id),
            InstanceChargeType = "PrePaid",
            InstanceName = "tf-instance-name",
            InstanceType = instances.Apply(instances => instances.Instances[0].InstanceType),
            InternetChargeType = "PayByBandwidth",
            InternetMaxBandwidthIn = 5,
            InternetMaxBandwidthOut = 0,
            IoOptimized = "none",
            KeyPairName = "test-key-pair",
            NetworkInterfaces = new AliCloud.Ecs.Inputs.LaunchTemplateNetworkInterfacesArgs
            {
                Description = "hello1",
                Name = "eth0",
                PrimaryIp = "10.0.0.2",
                SecurityGroupId = "xxxx",
                VswitchId = "xxxxxxx",
            },
            NetworkType = "vpc",
            RamRoleName = "xxxxx",
            ResourceGroupId = "rg-zkdfjahg9zxncv0",
            SecurityEnhancementStrategy = "Active",
            SecurityGroupId = "sg-zxcvj0lasdf102350asdf9a",
            SpotPriceLimit = 5,
            SpotStrategy = "SpotWithPriceLimit",
            SystemDiskCategory = "cloud_ssd",
            SystemDiskDescription = "test disk",
            SystemDiskName = "hello",
            SystemDiskSize = 40,
            Tags = 
            {
                { "tag1", "hello" },
                { "tag2", "world" },
            },
            Userdata = "xxxxxxxxxxxxxx",
            VpcId = "vpc-asdfnbg0as8dfk1nb2",
            VswitchId = "sw-ljkngaksdjfj0nnasdf",
            ZoneId = "beijing-a",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

images = alicloud.ecs.get_images(owners="system")
instances = alicloud.ecs.get_instances()
template = alicloud.ecs.LaunchTemplate("template",
    data_disks=[
        {
            "description": "test1",
            "name": "disk1",
        },
        {
            "description": "test2",
            "name": "disk2",
        },
    ],
    description="test1",
    host_name="tf-test-host",
    image_id=images.images[0]["id"],
    instance_charge_type="PrePaid",
    instance_name="tf-instance-name",
    instance_type=instances.instances[0]["instance_type"],
    internet_charge_type="PayByBandwidth",
    internet_max_bandwidth_in=5,
    internet_max_bandwidth_out=0,
    io_optimized="none",
    key_pair_name="test-key-pair",
    network_interfaces={
        "description": "hello1",
        "name": "eth0",
        "primaryIp": "10.0.0.2",
        "security_group_id": "xxxx",
        "vswitch_id": "xxxxxxx",
    },
    network_type="vpc",
    ram_role_name="xxxxx",
    resource_group_id="rg-zkdfjahg9zxncv0",
    security_enhancement_strategy="Active",
    security_group_id="sg-zxcvj0lasdf102350asdf9a",
    spot_price_limit=5,
    spot_strategy="SpotWithPriceLimit",
    system_disk_category="cloud_ssd",
    system_disk_description="test disk",
    system_disk_name="hello",
    system_disk_size=40,
    tags={
        "tag1": "hello",
        "tag2": "world",
    },
    userdata="xxxxxxxxxxxxxx",
    vpc_id="vpc-asdfnbg0as8dfk1nb2",
    vswitch_id="sw-ljkngaksdjfj0nnasdf",
    zone_id="beijing-a")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const images = pulumi.output(alicloud.ecs.getImages({
    owners: "system",
}, { async: true }));
const instances = pulumi.output(alicloud.ecs.getInstances({ async: true }));
const template = new alicloud.ecs.LaunchTemplate("template", {
    dataDisks: [
        {
            description: "test1",
            name: "disk1",
        },
        {
            description: "test2",
            name: "disk2",
        },
    ],
    description: "test1",
    hostName: "tf-test-host",
    imageId: images.images[0].id,
    instanceChargeType: "PrePaid",
    instanceName: "tf-instance-name",
    instanceType: instances.instances[0].instanceType,
    internetChargeType: "PayByBandwidth",
    internetMaxBandwidthIn: 5,
    internetMaxBandwidthOut: 0,
    ioOptimized: "none",
    keyPairName: "test-key-pair",
    networkInterfaces: {
        description: "hello1",
        name: "eth0",
        primaryIp: "10.0.0.2",
        securityGroupId: "xxxx",
        vswitchId: "xxxxxxx",
    },
    networkType: "vpc",
    ramRoleName: "xxxxx",
    resourceGroupId: "rg-zkdfjahg9zxncv0",
    securityEnhancementStrategy: "Active",
    securityGroupId: "sg-zxcvj0lasdf102350asdf9a",
    spotPriceLimit: 5,
    spotStrategy: "SpotWithPriceLimit",
    systemDiskCategory: "cloud_ssd",
    systemDiskDescription: "test disk",
    systemDiskName: "hello",
    systemDiskSize: 40,
    tags: {
        tag1: "hello",
        tag2: "world",
    },
    userdata: "xxxxxxxxxxxxxx",
    vpcId: "vpc-asdfnbg0as8dfk1nb2",
    vswitchId: "sw-ljkngaksdjfj0nnasdf",
    zoneId: "beijing-a",
});

Create a LaunchTemplate Resource

def LaunchTemplate(resource_name, opts=None, auto_release_time=None, data_disks=None, description=None, host_name=None, image_id=None, image_owner_alias=None, instance_charge_type=None, instance_name=None, instance_type=None, internet_charge_type=None, internet_max_bandwidth_in=None, internet_max_bandwidth_out=None, io_optimized=None, key_pair_name=None, name=None, network_interfaces=None, network_type=None, ram_role_name=None, resource_group_id=None, security_enhancement_strategy=None, security_group_id=None, spot_price_limit=None, spot_strategy=None, system_disk_category=None, system_disk_description=None, system_disk_name=None, system_disk_size=None, tags=None, userdata=None, vpc_id=None, vswitch_id=None, zone_id=None, __props__=None);
public LaunchTemplate(string name, LaunchTemplateArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LaunchTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LaunchTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LaunchTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

LaunchTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The LaunchTemplate resource accepts the following input properties:

AutoReleaseTime string

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

DataDisks List<Pulumi.AliCloud.Ecs.Inputs.LaunchTemplateDataDiskArgs>

The list of data disks created with instance.

Description string

The description of the data disk.

HostName string

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

ImageId string

Image ID.

ImageOwnerAlias string
InstanceChargeType string

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

InstanceName string

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

InstanceType string

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

InternetChargeType string

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

InternetMaxBandwidthIn int

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

InternetMaxBandwidthOut int

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

IoOptimized string

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

KeyPairName string

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

Name string

The name of the data disk.

NetworkInterfaces Pulumi.AliCloud.Ecs.Inputs.LaunchTemplateNetworkInterfacesArgs

The list of network interfaces created with instance.

NetworkType string

Network type of the instance. Value options: classic | vpc.

RamRoleName string

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

ResourceGroupId string
SecurityEnhancementStrategy string

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

SecurityGroupId string

The security group ID must be one in the same VPC.

SpotPriceLimit double

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

SystemDiskCategory string

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

SystemDiskDescription string

System disk description. It cannot begin with http:// or https://.

SystemDiskName string

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

SystemDiskSize int

Size of the system disk, measured in GB. Value range: [20, 500].

Tags Dictionary<string, object>

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

Userdata string

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

VpcId string
VswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

ZoneId string

The zone ID of the instance.

AutoReleaseTime string

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

DataDisks []LaunchTemplateDataDisk

The list of data disks created with instance.

Description string

The description of the data disk.

HostName string

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

ImageId string

Image ID.

ImageOwnerAlias string
InstanceChargeType string

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

InstanceName string

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

InstanceType string

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

InternetChargeType string

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

InternetMaxBandwidthIn int

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

InternetMaxBandwidthOut int

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

IoOptimized string

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

KeyPairName string

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

Name string

The name of the data disk.

NetworkInterfaces LaunchTemplateNetworkInterfaces

The list of network interfaces created with instance.

NetworkType string

Network type of the instance. Value options: classic | vpc.

RamRoleName string

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

ResourceGroupId string
SecurityEnhancementStrategy string

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

SecurityGroupId string

The security group ID must be one in the same VPC.

SpotPriceLimit float64

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

SystemDiskCategory string

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

SystemDiskDescription string

System disk description. It cannot begin with http:// or https://.

SystemDiskName string

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

SystemDiskSize int

Size of the system disk, measured in GB. Value range: [20, 500].

Tags map[string]interface{}

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

Userdata string

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

VpcId string
VswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

ZoneId string

The zone ID of the instance.

autoReleaseTime string

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

dataDisks LaunchTemplateDataDisk[]

The list of data disks created with instance.

description string

The description of the data disk.

hostName string

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

imageId string

Image ID.

imageOwnerAlias string
instanceChargeType string

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

instanceName string

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

instanceType string

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

internetChargeType string

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

internetMaxBandwidthIn number

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

internetMaxBandwidthOut number

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

ioOptimized string

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

keyPairName string

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

name string

The name of the data disk.

networkInterfaces LaunchTemplateNetworkInterfaces

The list of network interfaces created with instance.

networkType string

Network type of the instance. Value options: classic | vpc.

ramRoleName string

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

resourceGroupId string
securityEnhancementStrategy string

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

securityGroupId string

The security group ID must be one in the same VPC.

spotPriceLimit number

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

spotStrategy string

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

systemDiskCategory string

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

systemDiskDescription string

System disk description. It cannot begin with http:// or https://.

systemDiskName string

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

systemDiskSize number

Size of the system disk, measured in GB. Value range: [20, 500].

tags {[key: string]: any}

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

userdata string

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

vpcId string
vswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

zoneId string

The zone ID of the instance.

auto_release_time str

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

data_disks List[LaunchTemplateDataDisk]

The list of data disks created with instance.

description str

The description of the data disk.

host_name str

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

image_id str

Image ID.

image_owner_alias str
instance_charge_type str

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

instance_name str

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

instance_type str

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

internet_charge_type str

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

internet_max_bandwidth_in float

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

internet_max_bandwidth_out float

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

io_optimized str

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

key_pair_name str

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

name str

The name of the data disk.

network_interfaces Dict[LaunchTemplateNetworkInterfaces]

The list of network interfaces created with instance.

network_type str

Network type of the instance. Value options: classic | vpc.

ram_role_name str

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

resource_group_id str
security_enhancement_strategy str

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

security_group_id str

The security group ID must be one in the same VPC.

spot_price_limit float

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

spot_strategy str

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

system_disk_category str

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

system_disk_description str

System disk description. It cannot begin with http:// or https://.

system_disk_name str

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

system_disk_size float

Size of the system disk, measured in GB. Value range: [20, 500].

tags Dict[str, Any]

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

userdata str

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

vpc_id str
vswitch_id str

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

zone_id str

The zone ID of the instance.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing LaunchTemplate Resource

Get an existing LaunchTemplate 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?: LaunchTemplateState, opts?: CustomResourceOptions): LaunchTemplate
static get(resource_name, id, opts=None, auto_release_time=None, data_disks=None, description=None, host_name=None, image_id=None, image_owner_alias=None, instance_charge_type=None, instance_name=None, instance_type=None, internet_charge_type=None, internet_max_bandwidth_in=None, internet_max_bandwidth_out=None, io_optimized=None, key_pair_name=None, name=None, network_interfaces=None, network_type=None, ram_role_name=None, resource_group_id=None, security_enhancement_strategy=None, security_group_id=None, spot_price_limit=None, spot_strategy=None, system_disk_category=None, system_disk_description=None, system_disk_name=None, system_disk_size=None, tags=None, userdata=None, vpc_id=None, vswitch_id=None, zone_id=None, __props__=None);
func GetLaunchTemplate(ctx *Context, name string, id IDInput, state *LaunchTemplateState, opts ...ResourceOption) (*LaunchTemplate, error)
public static LaunchTemplate Get(string name, Input<string> id, LaunchTemplateState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AutoReleaseTime string

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

DataDisks List<Pulumi.AliCloud.Ecs.Inputs.LaunchTemplateDataDiskArgs>

The list of data disks created with instance.

Description string

The description of the data disk.

HostName string

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

ImageId string

Image ID.

ImageOwnerAlias string
InstanceChargeType string

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

InstanceName string

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

InstanceType string

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

InternetChargeType string

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

InternetMaxBandwidthIn int

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

InternetMaxBandwidthOut int

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

IoOptimized string

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

KeyPairName string

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

Name string

The name of the data disk.

NetworkInterfaces Pulumi.AliCloud.Ecs.Inputs.LaunchTemplateNetworkInterfacesArgs

The list of network interfaces created with instance.

NetworkType string

Network type of the instance. Value options: classic | vpc.

RamRoleName string

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

ResourceGroupId string
SecurityEnhancementStrategy string

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

SecurityGroupId string

The security group ID must be one in the same VPC.

SpotPriceLimit double

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

SystemDiskCategory string

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

SystemDiskDescription string

System disk description. It cannot begin with http:// or https://.

SystemDiskName string

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

SystemDiskSize int

Size of the system disk, measured in GB. Value range: [20, 500].

Tags Dictionary<string, object>

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

Userdata string

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

VpcId string
VswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

ZoneId string

The zone ID of the instance.

AutoReleaseTime string

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

DataDisks []LaunchTemplateDataDisk

The list of data disks created with instance.

Description string

The description of the data disk.

HostName string

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

ImageId string

Image ID.

ImageOwnerAlias string
InstanceChargeType string

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

InstanceName string

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

InstanceType string

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

InternetChargeType string

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

InternetMaxBandwidthIn int

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

InternetMaxBandwidthOut int

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

IoOptimized string

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

KeyPairName string

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

Name string

The name of the data disk.

NetworkInterfaces LaunchTemplateNetworkInterfaces

The list of network interfaces created with instance.

NetworkType string

Network type of the instance. Value options: classic | vpc.

RamRoleName string

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

ResourceGroupId string
SecurityEnhancementStrategy string

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

SecurityGroupId string

The security group ID must be one in the same VPC.

SpotPriceLimit float64

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

SpotStrategy string

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

SystemDiskCategory string

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

SystemDiskDescription string

System disk description. It cannot begin with http:// or https://.

SystemDiskName string

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

SystemDiskSize int

Size of the system disk, measured in GB. Value range: [20, 500].

Tags map[string]interface{}

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

Userdata string

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

VpcId string
VswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

ZoneId string

The zone ID of the instance.

autoReleaseTime string

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

dataDisks LaunchTemplateDataDisk[]

The list of data disks created with instance.

description string

The description of the data disk.

hostName string

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

imageId string

Image ID.

imageOwnerAlias string
instanceChargeType string

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

instanceName string

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

instanceType string

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

internetChargeType string

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

internetMaxBandwidthIn number

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

internetMaxBandwidthOut number

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

ioOptimized string

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

keyPairName string

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

name string

The name of the data disk.

networkInterfaces LaunchTemplateNetworkInterfaces

The list of network interfaces created with instance.

networkType string

Network type of the instance. Value options: classic | vpc.

ramRoleName string

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

resourceGroupId string
securityEnhancementStrategy string

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

securityGroupId string

The security group ID must be one in the same VPC.

spotPriceLimit number

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

spotStrategy string

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

systemDiskCategory string

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

systemDiskDescription string

System disk description. It cannot begin with http:// or https://.

systemDiskName string

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

systemDiskSize number

Size of the system disk, measured in GB. Value range: [20, 500].

tags {[key: string]: any}

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

userdata string

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

vpcId string
vswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

zoneId string

The zone ID of the instance.

auto_release_time str

Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.

data_disks List[LaunchTemplateDataDisk]

The list of data disks created with instance.

description str

The description of the data disk.

host_name str

Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).

image_id str

Image ID.

image_owner_alias str
instance_charge_type str

Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.

instance_name str

The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

instance_type str

Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.

internet_charge_type str

Internet bandwidth billing method. Optional values: PayByTraffic | PayByBandwidth.

internet_max_bandwidth_in float

The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].

internet_max_bandwidth_out float

Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].

io_optimized str

Whether it is an I/O-optimized instance or not. Optional values: - none - optimized

key_pair_name str

The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.

name str

The name of the data disk.

network_interfaces Dict[LaunchTemplateNetworkInterfaces]

The list of network interfaces created with instance.

network_type str

Network type of the instance. Value options: classic | vpc.

ram_role_name str

The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.

resource_group_id str
security_enhancement_strategy str

Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.

security_group_id str

The security group ID must be one in the same VPC.

spot_price_limit float

-(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.

spot_strategy str

The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.

system_disk_category str

The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

system_disk_description str

System disk description. It cannot begin with http:// or https://.

system_disk_name str

System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).

system_disk_size float

Size of the system disk, measured in GB. Value range: [20, 500].

tags Dict[str, Any]

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.

userdata str

User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.

vpc_id str
vswitch_id str

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

zone_id str

The zone ID of the instance.

Supporting Types

LaunchTemplateDataDisk

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Category string

The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

DeleteWithInstance bool

Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.

Description string

The description of the data disk.

Encrypted bool

-(Optional, Bool) Encrypted the data in this disk.

Name string

The name of the data disk.

Size int

The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]

SnapshotId string

The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.

Category string

The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

DeleteWithInstance bool

Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.

Description string

The description of the data disk.

Encrypted bool

-(Optional, Bool) Encrypted the data in this disk.

Name string

The name of the data disk.

Size int

The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]

SnapshotId string

The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.

category string

The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

deleteWithInstance boolean

Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.

description string

The description of the data disk.

encrypted boolean

-(Optional, Bool) Encrypted the data in this disk.

name string

The name of the data disk.

size number

The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]

snapshotId string

The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.

category str

The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.

delete_with_instance bool

Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.

description str

The description of the data disk.

encrypted bool

-(Optional, Bool) Encrypted the data in this disk.

name str

The name of the data disk.

size float

The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]

snapshot_id str

The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.

LaunchTemplateNetworkInterfaces

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Description string

The description of the data disk.

Name string

The name of the data disk.

PrimaryIp string

The primary private IP address of the ENI.

SecurityGroupId string

The security group ID must be one in the same VPC.

VswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

Description string

The description of the data disk.

Name string

The name of the data disk.

PrimaryIp string

The primary private IP address of the ENI.

SecurityGroupId string

The security group ID must be one in the same VPC.

VswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

description string

The description of the data disk.

name string

The name of the data disk.

primaryIp string

The primary private IP address of the ENI.

securityGroupId string

The security group ID must be one in the same VPC.

vswitchId string

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

description str

The description of the data disk.

name str

The name of the data disk.

primaryIp str

The primary private IP address of the ENI.

security_group_id str

The security group ID must be one in the same VPC.

vswitch_id str

The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.