1. Packages
  2. Outscale Provider
  3. API Docs
  4. Vm
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.Vm

Explore with Pulumi AI

Manages a virtual machine (VM).

Important Consider using the primary_nic argument if you plan to use the outscale.NicLinkresource.

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

Optional resource

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const keypair01 = new outscale.Keypair("keypair01", {keypairName: "terraform-keypair-for-vm"});
Copy
import pulumi
import pulumi_outscale as outscale

keypair01 = outscale.Keypair("keypair01", keypair_name="terraform-keypair-for-vm")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewKeypair(ctx, "keypair01", &outscale.KeypairArgs{
			KeypairName: pulumi.String("terraform-keypair-for-vm"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var keypair01 = new Outscale.Keypair("keypair01", new()
    {
        KeypairName = "terraform-keypair-for-vm",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Keypair;
import com.pulumi.outscale.KeypairArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var keypair01 = new Keypair("keypair01", KeypairArgs.builder()
            .keypairName("terraform-keypair-for-vm")
            .build());

    }
}
Copy
resources:
  keypair01:
    type: outscale:Keypair
    properties:
      keypairName: terraform-keypair-for-vm
Copy

Create a VM with block device mappings

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const securityGroup01SecurityGroup = new outscale.SecurityGroup("securityGroup01SecurityGroup", {
    description: "vm security group",
    securityGroupName: "vm_security_group1",
});
const vm02Vm = new outscale.Vm("vm02Vm", {
    imageId: _var.image_id,
    vmType: _var.vm_type,
    keypairName: _var.keypair_name,
    securityGroupIds: [securityGroup01SecurityGroup.securityGroupId],
    blockDeviceMappings: [
        {
            deviceName: "/dev/sda1",
            bsu: {
                volumeSize: 15,
                volumeType: "gp2",
                snapshotId: _var.snapshot_id,
            },
        },
        {
            deviceName: "/dev/sdb",
            bsu: {
                volumeSize: 22,
                volumeType: "io1",
                iops: 150,
                deleteOnVmDeletion: true,
            },
        },
    ],
});
const securityGroup01Index_securityGroupSecurityGroup = new outscale.SecurityGroup("securityGroup01Index/securityGroupSecurityGroup", {
    description: "vm security group",
    securityGroupName: "vm_security_group1",
});
const vm02Index_vmVm = new outscale.Vm("vm02Index/vmVm", {
    imageId: _var.image_id,
    vmType: _var.vm_type,
    keypairName: _var.keypair_name,
    securityGroupIds: [securityGroup01SecurityGroup.securityGroupId],
    blockDeviceMappings: [{
        deviceName: "/dev/sdb",
        bsu: {
            volumeSize: 30,
            volumeType: "gp2",
            snapshotId: outscale_snapshot.snapshot.id,
            deleteOnVmDeletion: false,
            tags: [{
                key: "Name",
                value: "bsu-tags-gp2",
            }],
        },
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

security_group01_security_group = outscale.SecurityGroup("securityGroup01SecurityGroup",
    description="vm security group",
    security_group_name="vm_security_group1")
vm02_vm = outscale.Vm("vm02Vm",
    image_id=var["image_id"],
    vm_type=var["vm_type"],
    keypair_name=var["keypair_name"],
    security_group_ids=[security_group01_security_group.security_group_id],
    block_device_mappings=[
        {
            "device_name": "/dev/sda1",
            "bsu": {
                "volume_size": 15,
                "volume_type": "gp2",
                "snapshot_id": var["snapshot_id"],
            },
        },
        {
            "device_name": "/dev/sdb",
            "bsu": {
                "volume_size": 22,
                "volume_type": "io1",
                "iops": 150,
                "delete_on_vm_deletion": True,
            },
        },
    ])
security_group01_index_security_group_security_group = outscale.SecurityGroup("securityGroup01Index/securityGroupSecurityGroup",
    description="vm security group",
    security_group_name="vm_security_group1")
vm02_index_vm_vm = outscale.Vm("vm02Index/vmVm",
    image_id=var["image_id"],
    vm_type=var["vm_type"],
    keypair_name=var["keypair_name"],
    security_group_ids=[security_group01_security_group.security_group_id],
    block_device_mappings=[{
        "device_name": "/dev/sdb",
        "bsu": {
            "volume_size": 30,
            "volume_type": "gp2",
            "snapshot_id": outscale_snapshot["snapshot"]["id"],
            "delete_on_vm_deletion": False,
            "tags": [{
                "key": "Name",
                "value": "bsu-tags-gp2",
            }],
        },
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		securityGroup01SecurityGroup, err := outscale.NewSecurityGroup(ctx, "securityGroup01SecurityGroup", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("vm security group"),
			SecurityGroupName: pulumi.String("vm_security_group1"),
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewVm(ctx, "vm02Vm", &outscale.VmArgs{
			ImageId:     pulumi.Any(_var.Image_id),
			VmType:      pulumi.Any(_var.Vm_type),
			KeypairName: pulumi.Any(_var.Keypair_name),
			SecurityGroupIds: pulumi.StringArray{
				securityGroup01SecurityGroup.SecurityGroupId,
			},
			BlockDeviceMappings: outscale.VmBlockDeviceMappingArray{
				&outscale.VmBlockDeviceMappingArgs{
					DeviceName: pulumi.String("/dev/sda1"),
					Bsu: &outscale.VmBlockDeviceMappingBsuArgs{
						VolumeSize: pulumi.Float64(15),
						VolumeType: pulumi.String("gp2"),
						SnapshotId: pulumi.Any(_var.Snapshot_id),
					},
				},
				&outscale.VmBlockDeviceMappingArgs{
					DeviceName: pulumi.String("/dev/sdb"),
					Bsu: &outscale.VmBlockDeviceMappingBsuArgs{
						VolumeSize:         pulumi.Float64(22),
						VolumeType:         pulumi.String("io1"),
						Iops:               pulumi.Float64(150),
						DeleteOnVmDeletion: pulumi.Bool(true),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewSecurityGroup(ctx, "securityGroup01Index/securityGroupSecurityGroup", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("vm security group"),
			SecurityGroupName: pulumi.String("vm_security_group1"),
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewVm(ctx, "vm02Index/vmVm", &outscale.VmArgs{
			ImageId:     pulumi.Any(_var.Image_id),
			VmType:      pulumi.Any(_var.Vm_type),
			KeypairName: pulumi.Any(_var.Keypair_name),
			SecurityGroupIds: pulumi.StringArray{
				securityGroup01SecurityGroup.SecurityGroupId,
			},
			BlockDeviceMappings: outscale.VmBlockDeviceMappingArray{
				&outscale.VmBlockDeviceMappingArgs{
					DeviceName: pulumi.String("/dev/sdb"),
					Bsu: &outscale.VmBlockDeviceMappingBsuArgs{
						VolumeSize:         pulumi.Float64(30),
						VolumeType:         pulumi.String("gp2"),
						SnapshotId:         pulumi.Any(outscale_snapshot.Snapshot.Id),
						DeleteOnVmDeletion: pulumi.Bool(false),
						Tags: outscale.VmBlockDeviceMappingBsuTagArray{
							&outscale.VmBlockDeviceMappingBsuTagArgs{
								Key:   pulumi.String("Name"),
								Value: pulumi.String("bsu-tags-gp2"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var securityGroup01SecurityGroup = new Outscale.SecurityGroup("securityGroup01SecurityGroup", new()
    {
        Description = "vm security group",
        SecurityGroupName = "vm_security_group1",
    });

    var vm02Vm = new Outscale.Vm("vm02Vm", new()
    {
        ImageId = @var.Image_id,
        VmType = @var.Vm_type,
        KeypairName = @var.Keypair_name,
        SecurityGroupIds = new[]
        {
            securityGroup01SecurityGroup.SecurityGroupId,
        },
        BlockDeviceMappings = new[]
        {
            new Outscale.Inputs.VmBlockDeviceMappingArgs
            {
                DeviceName = "/dev/sda1",
                Bsu = new Outscale.Inputs.VmBlockDeviceMappingBsuArgs
                {
                    VolumeSize = 15,
                    VolumeType = "gp2",
                    SnapshotId = @var.Snapshot_id,
                },
            },
            new Outscale.Inputs.VmBlockDeviceMappingArgs
            {
                DeviceName = "/dev/sdb",
                Bsu = new Outscale.Inputs.VmBlockDeviceMappingBsuArgs
                {
                    VolumeSize = 22,
                    VolumeType = "io1",
                    Iops = 150,
                    DeleteOnVmDeletion = true,
                },
            },
        },
    });

    var securityGroup01Index_securityGroupSecurityGroup = new Outscale.SecurityGroup("securityGroup01Index/securityGroupSecurityGroup", new()
    {
        Description = "vm security group",
        SecurityGroupName = "vm_security_group1",
    });

    var vm02Index_vmVm = new Outscale.Vm("vm02Index/vmVm", new()
    {
        ImageId = @var.Image_id,
        VmType = @var.Vm_type,
        KeypairName = @var.Keypair_name,
        SecurityGroupIds = new[]
        {
            securityGroup01SecurityGroup.SecurityGroupId,
        },
        BlockDeviceMappings = new[]
        {
            new Outscale.Inputs.VmBlockDeviceMappingArgs
            {
                DeviceName = "/dev/sdb",
                Bsu = new Outscale.Inputs.VmBlockDeviceMappingBsuArgs
                {
                    VolumeSize = 30,
                    VolumeType = "gp2",
                    SnapshotId = outscale_snapshot.Snapshot.Id,
                    DeleteOnVmDeletion = false,
                    Tags = new[]
                    {
                        new Outscale.Inputs.VmBlockDeviceMappingBsuTagArgs
                        {
                            Key = "Name",
                            Value = "bsu-tags-gp2",
                        },
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
import com.pulumi.outscale.Vm;
import com.pulumi.outscale.VmArgs;
import com.pulumi.outscale.inputs.VmBlockDeviceMappingArgs;
import com.pulumi.outscale.inputs.VmBlockDeviceMappingBsuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var securityGroup01SecurityGroup = new SecurityGroup("securityGroup01SecurityGroup", SecurityGroupArgs.builder()
            .description("vm security group")
            .securityGroupName("vm_security_group1")
            .build());

        var vm02Vm = new Vm("vm02Vm", VmArgs.builder()
            .imageId(var_.image_id())
            .vmType(var_.vm_type())
            .keypairName(var_.keypair_name())
            .securityGroupIds(securityGroup01SecurityGroup.securityGroupId())
            .blockDeviceMappings(            
                VmBlockDeviceMappingArgs.builder()
                    .deviceName("/dev/sda1")
                    .bsu(VmBlockDeviceMappingBsuArgs.builder()
                        .volumeSize(15)
                        .volumeType("gp2")
                        .snapshotId(var_.snapshot_id())
                        .build())
                    .build(),
                VmBlockDeviceMappingArgs.builder()
                    .deviceName("/dev/sdb")
                    .bsu(VmBlockDeviceMappingBsuArgs.builder()
                        .volumeSize(22)
                        .volumeType("io1")
                        .iops(150)
                        .deleteOnVmDeletion(true)
                        .build())
                    .build())
            .build());

        var securityGroup01Index_securityGroupSecurityGroup = new SecurityGroup("securityGroup01Index/securityGroupSecurityGroup", SecurityGroupArgs.builder()
            .description("vm security group")
            .securityGroupName("vm_security_group1")
            .build());

        var vm02Index_vmVm = new Vm("vm02Index/vmVm", VmArgs.builder()
            .imageId(var_.image_id())
            .vmType(var_.vm_type())
            .keypairName(var_.keypair_name())
            .securityGroupIds(securityGroup01SecurityGroup.securityGroupId())
            .blockDeviceMappings(VmBlockDeviceMappingArgs.builder()
                .deviceName("/dev/sdb")
                .bsu(VmBlockDeviceMappingBsuArgs.builder()
                    .volumeSize(30)
                    .volumeType("gp2")
                    .snapshotId(outscale_snapshot.snapshot().id())
                    .deleteOnVmDeletion(false)
                    .tags(VmBlockDeviceMappingBsuTagArgs.builder()
                        .key("Name")
                        .value("bsu-tags-gp2")
                        .build())
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  securityGroup01SecurityGroup:
    type: outscale:SecurityGroup
    properties:
      description: vm security group
      securityGroupName: vm_security_group1
  vm02Vm:
    type: outscale:Vm
    properties:
      imageId: ${var.image_id}
      vmType: ${var.vm_type}
      keypairName: ${var.keypair_name}
      securityGroupIds:
        - ${securityGroup01SecurityGroup.securityGroupId}
      blockDeviceMappings:
        - deviceName: /dev/sda1
          bsu:
            volumeSize: 15
            volumeType: gp2
            snapshotId: ${var.snapshot_id}
        - deviceName: /dev/sdb
          bsu:
            volumeSize: 22
            volumeType: io1
            iops: 150
            deleteOnVmDeletion: true
  securityGroup01Index/securityGroupSecurityGroup:
    type: outscale:SecurityGroup
    properties:
      description: vm security group
      securityGroupName: vm_security_group1
  vm02Index/vmVm:
    type: outscale:Vm
    properties:
      imageId: ${var.image_id}
      vmType: ${var.vm_type}
      keypairName: ${var.keypair_name}
      securityGroupIds:
        - ${securityGroup01SecurityGroup.securityGroupId}
      blockDeviceMappings:
        - deviceName: /dev/sdb
          bsu:
            volumeSize: 30
            volumeType: gp2
            snapshotId: ${outscale_snapshot.snapshot.id}
            deleteOnVmDeletion: false
            tags:
              - key: Name
                value: bsu-tags-gp2
Copy

Create a VM in a Net with a network

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const net01 = new outscale.Net("net01", {
    ipRange: "10.0.0.0/16",
    tags: [{
        key: "name",
        value: "terraform-net-for-vm",
    }],
});
const subnet01 = new outscale.Subnet("subnet01", {
    netId: net01.netId,
    ipRange: "10.0.0.0/24",
    subregionName: "eu-west-2b",
    tags: [{
        key: "name",
        value: "terraform-subnet-for-vm",
    }],
});
const securityGroup01 = new outscale.SecurityGroup("securityGroup01", {
    description: "Terraform security group for VM",
    securityGroupName: "terraform-security-group-for-vm",
    netId: net01.netId,
});
const internetService01 = new outscale.InternetService("internetService01", {});
const routeTable01 = new outscale.RouteTable("routeTable01", {
    netId: net01.netId,
    tags: [{
        key: "name",
        value: "terraform-route-table-for-vm",
    }],
});
const routeTableLink01 = new outscale.RouteTableLink("routeTableLink01", {
    routeTableId: routeTable01.routeTableId,
    subnetId: subnet01.subnetId,
});
const internetServiceLink01 = new outscale.InternetServiceLink("internetServiceLink01", {
    internetServiceId: internetService01.internetServiceId,
    netId: net01.netId,
});
const route01 = new outscale.Route("route01", {
    gatewayId: internetService01.internetServiceId,
    destinationIpRange: "0.0.0.0/0",
    routeTableId: routeTable01.routeTableId,
});
const vm03 = new outscale.Vm("vm03", {
    imageId: _var.image_id,
    vmType: _var.vm_type,
    keypairName: _var.keypair_name,
    securityGroupIds: [securityGroup01.securityGroupId],
    subnetId: subnet01.subnetId,
});
Copy
import pulumi
import pulumi_outscale as outscale

net01 = outscale.Net("net01",
    ip_range="10.0.0.0/16",
    tags=[{
        "key": "name",
        "value": "terraform-net-for-vm",
    }])
subnet01 = outscale.Subnet("subnet01",
    net_id=net01.net_id,
    ip_range="10.0.0.0/24",
    subregion_name="eu-west-2b",
    tags=[{
        "key": "name",
        "value": "terraform-subnet-for-vm",
    }])
security_group01 = outscale.SecurityGroup("securityGroup01",
    description="Terraform security group for VM",
    security_group_name="terraform-security-group-for-vm",
    net_id=net01.net_id)
internet_service01 = outscale.InternetService("internetService01")
route_table01 = outscale.RouteTable("routeTable01",
    net_id=net01.net_id,
    tags=[{
        "key": "name",
        "value": "terraform-route-table-for-vm",
    }])
route_table_link01 = outscale.RouteTableLink("routeTableLink01",
    route_table_id=route_table01.route_table_id,
    subnet_id=subnet01.subnet_id)
internet_service_link01 = outscale.InternetServiceLink("internetServiceLink01",
    internet_service_id=internet_service01.internet_service_id,
    net_id=net01.net_id)
route01 = outscale.Route("route01",
    gateway_id=internet_service01.internet_service_id,
    destination_ip_range="0.0.0.0/0",
    route_table_id=route_table01.route_table_id)
vm03 = outscale.Vm("vm03",
    image_id=var["image_id"],
    vm_type=var["vm_type"],
    keypair_name=var["keypair_name"],
    security_group_ids=[security_group01.security_group_id],
    subnet_id=subnet01.subnet_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		net01, err := outscale.NewNet(ctx, "net01", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
			Tags: outscale.NetTagArray{
				&outscale.NetTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-net-for-vm"),
				},
			},
		})
		if err != nil {
			return err
		}
		subnet01, err := outscale.NewSubnet(ctx, "subnet01", &outscale.SubnetArgs{
			NetId:         net01.NetId,
			IpRange:       pulumi.String("10.0.0.0/24"),
			SubregionName: pulumi.String("eu-west-2b"),
			Tags: outscale.SubnetTagArray{
				&outscale.SubnetTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-subnet-for-vm"),
				},
			},
		})
		if err != nil {
			return err
		}
		securityGroup01, err := outscale.NewSecurityGroup(ctx, "securityGroup01", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("Terraform security group for VM"),
			SecurityGroupName: pulumi.String("terraform-security-group-for-vm"),
			NetId:             net01.NetId,
		})
		if err != nil {
			return err
		}
		internetService01, err := outscale.NewInternetService(ctx, "internetService01", nil)
		if err != nil {
			return err
		}
		routeTable01, err := outscale.NewRouteTable(ctx, "routeTable01", &outscale.RouteTableArgs{
			NetId: net01.NetId,
			Tags: outscale.RouteTableTagArray{
				&outscale.RouteTableTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-route-table-for-vm"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewRouteTableLink(ctx, "routeTableLink01", &outscale.RouteTableLinkArgs{
			RouteTableId: routeTable01.RouteTableId,
			SubnetId:     subnet01.SubnetId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewInternetServiceLink(ctx, "internetServiceLink01", &outscale.InternetServiceLinkArgs{
			InternetServiceId: internetService01.InternetServiceId,
			NetId:             net01.NetId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewRoute(ctx, "route01", &outscale.RouteArgs{
			GatewayId:          internetService01.InternetServiceId,
			DestinationIpRange: pulumi.String("0.0.0.0/0"),
			RouteTableId:       routeTable01.RouteTableId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewVm(ctx, "vm03", &outscale.VmArgs{
			ImageId:     pulumi.Any(_var.Image_id),
			VmType:      pulumi.Any(_var.Vm_type),
			KeypairName: pulumi.Any(_var.Keypair_name),
			SecurityGroupIds: pulumi.StringArray{
				securityGroup01.SecurityGroupId,
			},
			SubnetId: subnet01.SubnetId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var net01 = new Outscale.Net("net01", new()
    {
        IpRange = "10.0.0.0/16",
        Tags = new[]
        {
            new Outscale.Inputs.NetTagArgs
            {
                Key = "name",
                Value = "terraform-net-for-vm",
            },
        },
    });

    var subnet01 = new Outscale.Subnet("subnet01", new()
    {
        NetId = net01.NetId,
        IpRange = "10.0.0.0/24",
        SubregionName = "eu-west-2b",
        Tags = new[]
        {
            new Outscale.Inputs.SubnetTagArgs
            {
                Key = "name",
                Value = "terraform-subnet-for-vm",
            },
        },
    });

    var securityGroup01 = new Outscale.SecurityGroup("securityGroup01", new()
    {
        Description = "Terraform security group for VM",
        SecurityGroupName = "terraform-security-group-for-vm",
        NetId = net01.NetId,
    });

    var internetService01 = new Outscale.InternetService("internetService01");

    var routeTable01 = new Outscale.RouteTable("routeTable01", new()
    {
        NetId = net01.NetId,
        Tags = new[]
        {
            new Outscale.Inputs.RouteTableTagArgs
            {
                Key = "name",
                Value = "terraform-route-table-for-vm",
            },
        },
    });

    var routeTableLink01 = new Outscale.RouteTableLink("routeTableLink01", new()
    {
        RouteTableId = routeTable01.RouteTableId,
        SubnetId = subnet01.SubnetId,
    });

    var internetServiceLink01 = new Outscale.InternetServiceLink("internetServiceLink01", new()
    {
        InternetServiceId = internetService01.InternetServiceId,
        NetId = net01.NetId,
    });

    var route01 = new Outscale.Route("route01", new()
    {
        GatewayId = internetService01.InternetServiceId,
        DestinationIpRange = "0.0.0.0/0",
        RouteTableId = routeTable01.RouteTableId,
    });

    var vm03 = new Outscale.Vm("vm03", new()
    {
        ImageId = @var.Image_id,
        VmType = @var.Vm_type,
        KeypairName = @var.Keypair_name,
        SecurityGroupIds = new[]
        {
            securityGroup01.SecurityGroupId,
        },
        SubnetId = subnet01.SubnetId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.inputs.NetTagArgs;
import com.pulumi.outscale.Subnet;
import com.pulumi.outscale.SubnetArgs;
import com.pulumi.outscale.inputs.SubnetTagArgs;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
import com.pulumi.outscale.InternetService;
import com.pulumi.outscale.RouteTable;
import com.pulumi.outscale.RouteTableArgs;
import com.pulumi.outscale.inputs.RouteTableTagArgs;
import com.pulumi.outscale.RouteTableLink;
import com.pulumi.outscale.RouteTableLinkArgs;
import com.pulumi.outscale.InternetServiceLink;
import com.pulumi.outscale.InternetServiceLinkArgs;
import com.pulumi.outscale.Route;
import com.pulumi.outscale.RouteArgs;
import com.pulumi.outscale.Vm;
import com.pulumi.outscale.VmArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var net01 = new Net("net01", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .tags(NetTagArgs.builder()
                .key("name")
                .value("terraform-net-for-vm")
                .build())
            .build());

        var subnet01 = new Subnet("subnet01", SubnetArgs.builder()
            .netId(net01.netId())
            .ipRange("10.0.0.0/24")
            .subregionName("eu-west-2b")
            .tags(SubnetTagArgs.builder()
                .key("name")
                .value("terraform-subnet-for-vm")
                .build())
            .build());

        var securityGroup01 = new SecurityGroup("securityGroup01", SecurityGroupArgs.builder()
            .description("Terraform security group for VM")
            .securityGroupName("terraform-security-group-for-vm")
            .netId(net01.netId())
            .build());

        var internetService01 = new InternetService("internetService01");

        var routeTable01 = new RouteTable("routeTable01", RouteTableArgs.builder()
            .netId(net01.netId())
            .tags(RouteTableTagArgs.builder()
                .key("name")
                .value("terraform-route-table-for-vm")
                .build())
            .build());

        var routeTableLink01 = new RouteTableLink("routeTableLink01", RouteTableLinkArgs.builder()
            .routeTableId(routeTable01.routeTableId())
            .subnetId(subnet01.subnetId())
            .build());

        var internetServiceLink01 = new InternetServiceLink("internetServiceLink01", InternetServiceLinkArgs.builder()
            .internetServiceId(internetService01.internetServiceId())
            .netId(net01.netId())
            .build());

        var route01 = new Route("route01", RouteArgs.builder()
            .gatewayId(internetService01.internetServiceId())
            .destinationIpRange("0.0.0.0/0")
            .routeTableId(routeTable01.routeTableId())
            .build());

        var vm03 = new Vm("vm03", VmArgs.builder()
            .imageId(var_.image_id())
            .vmType(var_.vm_type())
            .keypairName(var_.keypair_name())
            .securityGroupIds(securityGroup01.securityGroupId())
            .subnetId(subnet01.subnetId())
            .build());

    }
}
Copy
resources:
  net01:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
      tags:
        - key: name
          value: terraform-net-for-vm
  subnet01:
    type: outscale:Subnet
    properties:
      netId: ${net01.netId}
      ipRange: 10.0.0.0/24
      subregionName: eu-west-2b
      tags:
        - key: name
          value: terraform-subnet-for-vm
  securityGroup01:
    type: outscale:SecurityGroup
    properties:
      description: Terraform security group for VM
      securityGroupName: terraform-security-group-for-vm
      netId: ${net01.netId}
  internetService01:
    type: outscale:InternetService
  routeTable01:
    type: outscale:RouteTable
    properties:
      netId: ${net01.netId}
      tags:
        - key: name
          value: terraform-route-table-for-vm
  routeTableLink01:
    type: outscale:RouteTableLink
    properties:
      routeTableId: ${routeTable01.routeTableId}
      subnetId: ${subnet01.subnetId}
  internetServiceLink01:
    type: outscale:InternetServiceLink
    properties:
      internetServiceId: ${internetService01.internetServiceId}
      netId: ${net01.netId}
  route01:
    type: outscale:Route
    properties:
      gatewayId: ${internetService01.internetServiceId}
      destinationIpRange: 0.0.0.0/0
      routeTableId: ${routeTable01.routeTableId}
  vm03:
    type: outscale:Vm
    properties:
      imageId: ${var.image_id}
      vmType: ${var.vm_type}
      keypairName: ${var.keypair_name}
      securityGroupIds:
        - ${securityGroup01.securityGroupId}
      subnetId: ${subnet01.subnetId}
Copy

Create a VM with a primary NIC

Note: If you plan to use the outscale.NicLinkresource, it is recommended to specify the primary_nic argument to define the primary network interface of a VM.

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const securityGroup01 = new outscale.SecurityGroup("securityGroup01", {
    description: "vm security group",
    securityGroupName: "vm_security_group1",
});
const net02 = new outscale.Net("net02", {
    ipRange: "10.0.0.0/16",
    tags: [{
        key: "name",
        value: "terraform-net-for-vm-with-nic",
    }],
});
const subnet02 = new outscale.Subnet("subnet02", {
    netId: net02.netId,
    ipRange: "10.0.0.0/24",
    subregionName: "eu-west-2a",
    tags: [{
        key: "name",
        value: "terraform-subnet-for-vm-with-nic",
    }],
});
const nic01 = new outscale.Nic("nic01", {subnetId: subnet02.subnetId});
const vm04 = new outscale.Vm("vm04", {
    imageId: _var.image_id,
    vmType: "tinav5.c1r1p2",
    keypairName: _var.keypair_name,
    securityGroupIds: [securityGroup01.securityGroupId],
    primaryNics: [{
        nicId: nic01.nicId,
        deviceNumber: 0,
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

security_group01 = outscale.SecurityGroup("securityGroup01",
    description="vm security group",
    security_group_name="vm_security_group1")
net02 = outscale.Net("net02",
    ip_range="10.0.0.0/16",
    tags=[{
        "key": "name",
        "value": "terraform-net-for-vm-with-nic",
    }])
subnet02 = outscale.Subnet("subnet02",
    net_id=net02.net_id,
    ip_range="10.0.0.0/24",
    subregion_name="eu-west-2a",
    tags=[{
        "key": "name",
        "value": "terraform-subnet-for-vm-with-nic",
    }])
nic01 = outscale.Nic("nic01", subnet_id=subnet02.subnet_id)
vm04 = outscale.Vm("vm04",
    image_id=var["image_id"],
    vm_type="tinav5.c1r1p2",
    keypair_name=var["keypair_name"],
    security_group_ids=[security_group01.security_group_id],
    primary_nics=[{
        "nic_id": nic01.nic_id,
        "device_number": 0,
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		securityGroup01, err := outscale.NewSecurityGroup(ctx, "securityGroup01", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("vm security group"),
			SecurityGroupName: pulumi.String("vm_security_group1"),
		})
		if err != nil {
			return err
		}
		net02, err := outscale.NewNet(ctx, "net02", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
			Tags: outscale.NetTagArray{
				&outscale.NetTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-net-for-vm-with-nic"),
				},
			},
		})
		if err != nil {
			return err
		}
		subnet02, err := outscale.NewSubnet(ctx, "subnet02", &outscale.SubnetArgs{
			NetId:         net02.NetId,
			IpRange:       pulumi.String("10.0.0.0/24"),
			SubregionName: pulumi.String("eu-west-2a"),
			Tags: outscale.SubnetTagArray{
				&outscale.SubnetTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-subnet-for-vm-with-nic"),
				},
			},
		})
		if err != nil {
			return err
		}
		nic01, err := outscale.NewNic(ctx, "nic01", &outscale.NicArgs{
			SubnetId: subnet02.SubnetId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewVm(ctx, "vm04", &outscale.VmArgs{
			ImageId:     pulumi.Any(_var.Image_id),
			VmType:      pulumi.String("tinav5.c1r1p2"),
			KeypairName: pulumi.Any(_var.Keypair_name),
			SecurityGroupIds: pulumi.StringArray{
				securityGroup01.SecurityGroupId,
			},
			PrimaryNics: outscale.VmPrimaryNicArray{
				&outscale.VmPrimaryNicArgs{
					NicId:        nic01.NicId,
					DeviceNumber: pulumi.Float64(0),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var securityGroup01 = new Outscale.SecurityGroup("securityGroup01", new()
    {
        Description = "vm security group",
        SecurityGroupName = "vm_security_group1",
    });

    var net02 = new Outscale.Net("net02", new()
    {
        IpRange = "10.0.0.0/16",
        Tags = new[]
        {
            new Outscale.Inputs.NetTagArgs
            {
                Key = "name",
                Value = "terraform-net-for-vm-with-nic",
            },
        },
    });

    var subnet02 = new Outscale.Subnet("subnet02", new()
    {
        NetId = net02.NetId,
        IpRange = "10.0.0.0/24",
        SubregionName = "eu-west-2a",
        Tags = new[]
        {
            new Outscale.Inputs.SubnetTagArgs
            {
                Key = "name",
                Value = "terraform-subnet-for-vm-with-nic",
            },
        },
    });

    var nic01 = new Outscale.Nic("nic01", new()
    {
        SubnetId = subnet02.SubnetId,
    });

    var vm04 = new Outscale.Vm("vm04", new()
    {
        ImageId = @var.Image_id,
        VmType = "tinav5.c1r1p2",
        KeypairName = @var.Keypair_name,
        SecurityGroupIds = new[]
        {
            securityGroup01.SecurityGroupId,
        },
        PrimaryNics = new[]
        {
            new Outscale.Inputs.VmPrimaryNicArgs
            {
                NicId = nic01.NicId,
                DeviceNumber = 0,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.inputs.NetTagArgs;
import com.pulumi.outscale.Subnet;
import com.pulumi.outscale.SubnetArgs;
import com.pulumi.outscale.inputs.SubnetTagArgs;
import com.pulumi.outscale.Nic;
import com.pulumi.outscale.NicArgs;
import com.pulumi.outscale.Vm;
import com.pulumi.outscale.VmArgs;
import com.pulumi.outscale.inputs.VmPrimaryNicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var securityGroup01 = new SecurityGroup("securityGroup01", SecurityGroupArgs.builder()
            .description("vm security group")
            .securityGroupName("vm_security_group1")
            .build());

        var net02 = new Net("net02", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .tags(NetTagArgs.builder()
                .key("name")
                .value("terraform-net-for-vm-with-nic")
                .build())
            .build());

        var subnet02 = new Subnet("subnet02", SubnetArgs.builder()
            .netId(net02.netId())
            .ipRange("10.0.0.0/24")
            .subregionName("eu-west-2a")
            .tags(SubnetTagArgs.builder()
                .key("name")
                .value("terraform-subnet-for-vm-with-nic")
                .build())
            .build());

        var nic01 = new Nic("nic01", NicArgs.builder()
            .subnetId(subnet02.subnetId())
            .build());

        var vm04 = new Vm("vm04", VmArgs.builder()
            .imageId(var_.image_id())
            .vmType("tinav5.c1r1p2")
            .keypairName(var_.keypair_name())
            .securityGroupIds(securityGroup01.securityGroupId())
            .primaryNics(VmPrimaryNicArgs.builder()
                .nicId(nic01.nicId())
                .deviceNumber("0")
                .build())
            .build());

    }
}
Copy
resources:
  securityGroup01:
    type: outscale:SecurityGroup
    properties:
      description: vm security group
      securityGroupName: vm_security_group1
  net02:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
      tags:
        - key: name
          value: terraform-net-for-vm-with-nic
  subnet02:
    type: outscale:Subnet
    properties:
      netId: ${net02.netId}
      ipRange: 10.0.0.0/24
      subregionName: eu-west-2a
      tags:
        - key: name
          value: terraform-subnet-for-vm-with-nic
  nic01:
    type: outscale:Nic
    properties:
      subnetId: ${subnet02.subnetId}
  vm04:
    type: outscale:Vm
    properties:
      imageId: ${var.image_id}
      vmType: tinav5.c1r1p2
      keypairName: ${var.keypair_name}
      securityGroupIds:
        - ${securityGroup01.securityGroupId}
      primaryNics:
        - nicId: ${nic01.nicId}
          deviceNumber: '0'
Copy

Create a VM with secondary NICs

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const securityGroup01 = new outscale.SecurityGroup("securityGroup01", {
    description: "vm security group",
    securityGroupName: "vm_security_group1",
});
const net02 = new outscale.Net("net02", {
    ipRange: "10.0.0.0/16",
    tags: [{
        key: "name",
        value: "terraform-net-for-vm-with-nic",
    }],
});
const subnet02 = new outscale.Subnet("subnet02", {
    netId: net02.netId,
    ipRange: "10.0.0.0/24",
    subregionName: "eu-west-2a",
    tags: [{
        key: "name",
        value: "terraform-subnet-for-vm-with-nic",
    }],
});
const nic01 = new outscale.Nic("nic01", {subnetId: subnet02.subnetId});
const vm04 = new outscale.Vm("vm04", {
    imageId: _var.image_id,
    vmType: "tinav5.c1r1p2",
    keypairName: _var.keypair_name,
    securityGroupIds: [securityGroup01.securityGroupId],
    nics: [
        {
            nicId: nic01.nicId,
            deviceNumber: 0,
        },
        {
            nicId: outscale_nic.nic02.nic_id,
            deviceNumber: 1,
        },
    ],
});
Copy
import pulumi
import pulumi_outscale as outscale

security_group01 = outscale.SecurityGroup("securityGroup01",
    description="vm security group",
    security_group_name="vm_security_group1")
net02 = outscale.Net("net02",
    ip_range="10.0.0.0/16",
    tags=[{
        "key": "name",
        "value": "terraform-net-for-vm-with-nic",
    }])
subnet02 = outscale.Subnet("subnet02",
    net_id=net02.net_id,
    ip_range="10.0.0.0/24",
    subregion_name="eu-west-2a",
    tags=[{
        "key": "name",
        "value": "terraform-subnet-for-vm-with-nic",
    }])
nic01 = outscale.Nic("nic01", subnet_id=subnet02.subnet_id)
vm04 = outscale.Vm("vm04",
    image_id=var["image_id"],
    vm_type="tinav5.c1r1p2",
    keypair_name=var["keypair_name"],
    security_group_ids=[security_group01.security_group_id],
    nics=[
        {
            "nic_id": nic01.nic_id,
            "device_number": 0,
        },
        {
            "nic_id": outscale_nic["nic02"]["nic_id"],
            "device_number": 1,
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		securityGroup01, err := outscale.NewSecurityGroup(ctx, "securityGroup01", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("vm security group"),
			SecurityGroupName: pulumi.String("vm_security_group1"),
		})
		if err != nil {
			return err
		}
		net02, err := outscale.NewNet(ctx, "net02", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
			Tags: outscale.NetTagArray{
				&outscale.NetTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-net-for-vm-with-nic"),
				},
			},
		})
		if err != nil {
			return err
		}
		subnet02, err := outscale.NewSubnet(ctx, "subnet02", &outscale.SubnetArgs{
			NetId:         net02.NetId,
			IpRange:       pulumi.String("10.0.0.0/24"),
			SubregionName: pulumi.String("eu-west-2a"),
			Tags: outscale.SubnetTagArray{
				&outscale.SubnetTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-subnet-for-vm-with-nic"),
				},
			},
		})
		if err != nil {
			return err
		}
		nic01, err := outscale.NewNic(ctx, "nic01", &outscale.NicArgs{
			SubnetId: subnet02.SubnetId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewVm(ctx, "vm04", &outscale.VmArgs{
			ImageId:     pulumi.Any(_var.Image_id),
			VmType:      pulumi.String("tinav5.c1r1p2"),
			KeypairName: pulumi.Any(_var.Keypair_name),
			SecurityGroupIds: pulumi.StringArray{
				securityGroup01.SecurityGroupId,
			},
			Nics: outscale.VmNicArray{
				&outscale.VmNicArgs{
					NicId:        nic01.NicId,
					DeviceNumber: pulumi.Float64(0),
				},
				&outscale.VmNicArgs{
					NicId:        pulumi.Any(outscale_nic.Nic02.Nic_id),
					DeviceNumber: pulumi.Float64(1),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var securityGroup01 = new Outscale.SecurityGroup("securityGroup01", new()
    {
        Description = "vm security group",
        SecurityGroupName = "vm_security_group1",
    });

    var net02 = new Outscale.Net("net02", new()
    {
        IpRange = "10.0.0.0/16",
        Tags = new[]
        {
            new Outscale.Inputs.NetTagArgs
            {
                Key = "name",
                Value = "terraform-net-for-vm-with-nic",
            },
        },
    });

    var subnet02 = new Outscale.Subnet("subnet02", new()
    {
        NetId = net02.NetId,
        IpRange = "10.0.0.0/24",
        SubregionName = "eu-west-2a",
        Tags = new[]
        {
            new Outscale.Inputs.SubnetTagArgs
            {
                Key = "name",
                Value = "terraform-subnet-for-vm-with-nic",
            },
        },
    });

    var nic01 = new Outscale.Nic("nic01", new()
    {
        SubnetId = subnet02.SubnetId,
    });

    var vm04 = new Outscale.Vm("vm04", new()
    {
        ImageId = @var.Image_id,
        VmType = "tinav5.c1r1p2",
        KeypairName = @var.Keypair_name,
        SecurityGroupIds = new[]
        {
            securityGroup01.SecurityGroupId,
        },
        Nics = new[]
        {
            new Outscale.Inputs.VmNicArgs
            {
                NicId = nic01.NicId,
                DeviceNumber = 0,
            },
            new Outscale.Inputs.VmNicArgs
            {
                NicId = outscale_nic.Nic02.Nic_id,
                DeviceNumber = 1,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.inputs.NetTagArgs;
import com.pulumi.outscale.Subnet;
import com.pulumi.outscale.SubnetArgs;
import com.pulumi.outscale.inputs.SubnetTagArgs;
import com.pulumi.outscale.Nic;
import com.pulumi.outscale.NicArgs;
import com.pulumi.outscale.Vm;
import com.pulumi.outscale.VmArgs;
import com.pulumi.outscale.inputs.VmNicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var securityGroup01 = new SecurityGroup("securityGroup01", SecurityGroupArgs.builder()
            .description("vm security group")
            .securityGroupName("vm_security_group1")
            .build());

        var net02 = new Net("net02", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .tags(NetTagArgs.builder()
                .key("name")
                .value("terraform-net-for-vm-with-nic")
                .build())
            .build());

        var subnet02 = new Subnet("subnet02", SubnetArgs.builder()
            .netId(net02.netId())
            .ipRange("10.0.0.0/24")
            .subregionName("eu-west-2a")
            .tags(SubnetTagArgs.builder()
                .key("name")
                .value("terraform-subnet-for-vm-with-nic")
                .build())
            .build());

        var nic01 = new Nic("nic01", NicArgs.builder()
            .subnetId(subnet02.subnetId())
            .build());

        var vm04 = new Vm("vm04", VmArgs.builder()
            .imageId(var_.image_id())
            .vmType("tinav5.c1r1p2")
            .keypairName(var_.keypair_name())
            .securityGroupIds(securityGroup01.securityGroupId())
            .nics(            
                VmNicArgs.builder()
                    .nicId(nic01.nicId())
                    .deviceNumber("0")
                    .build(),
                VmNicArgs.builder()
                    .nicId(outscale_nic.nic02().nic_id())
                    .deviceNumber("1")
                    .build())
            .build());

    }
}
Copy
resources:
  securityGroup01:
    type: outscale:SecurityGroup
    properties:
      description: vm security group
      securityGroupName: vm_security_group1
  net02:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
      tags:
        - key: name
          value: terraform-net-for-vm-with-nic
  subnet02:
    type: outscale:Subnet
    properties:
      netId: ${net02.netId}
      ipRange: 10.0.0.0/24
      subregionName: eu-west-2a
      tags:
        - key: name
          value: terraform-subnet-for-vm-with-nic
  nic01:
    type: outscale:Nic
    properties:
      subnetId: ${subnet02.subnetId}
  vm04:
    type: outscale:Vm
    properties:
      imageId: ${var.image_id}
      vmType: tinav5.c1r1p2
      keypairName: ${var.keypair_name}
      securityGroupIds:
        - ${securityGroup01.securityGroupId}
      nics:
        - nicId: ${nic01.nicId}
          deviceNumber: '0'
        - nicId: ${outscale_nic.nic02.nic_id}
          deviceNumber: '1'
Copy

Create Vm Resource

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

Constructor syntax

new Vm(name: string, args: VmArgs, opts?: CustomResourceOptions);
@overload
def Vm(resource_name: str,
       args: VmArgs,
       opts: Optional[ResourceOptions] = None)

@overload
def Vm(resource_name: str,
       opts: Optional[ResourceOptions] = None,
       image_id: Optional[str] = None,
       placement_tenancy: Optional[str] = None,
       vm_id: Optional[str] = None,
       get_admin_password: Optional[bool] = None,
       bsu_optimized: Optional[bool] = None,
       is_source_dest_checked: Optional[bool] = None,
       keypair_name: Optional[str] = None,
       nested_virtualization: Optional[bool] = None,
       nics: Optional[Sequence[VmNicArgs]] = None,
       outscale_vm_id: Optional[str] = None,
       performance: Optional[str] = None,
       vm_type: Optional[str] = None,
       deletion_protection: Optional[bool] = None,
       security_group_ids: Optional[Sequence[str]] = None,
       private_ips: Optional[Sequence[str]] = None,
       primary_nics: Optional[Sequence[VmPrimaryNicArgs]] = None,
       security_group_names: Optional[Sequence[str]] = None,
       state: Optional[str] = None,
       subnet_id: Optional[str] = None,
       tags: Optional[Sequence[VmTagArgs]] = None,
       timeouts: Optional[VmTimeoutsArgs] = None,
       user_data: Optional[str] = None,
       block_device_mappings: Optional[Sequence[VmBlockDeviceMappingArgs]] = None,
       vm_initiated_shutdown_behavior: Optional[str] = None,
       placement_subregion_name: Optional[str] = None)
func NewVm(ctx *Context, name string, args VmArgs, opts ...ResourceOption) (*Vm, error)
public Vm(string name, VmArgs args, CustomResourceOptions? opts = null)
public Vm(String name, VmArgs args)
public Vm(String name, VmArgs args, CustomResourceOptions options)
type: outscale:Vm
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VmArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VmArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VmArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VmArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VmArgs
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 vmResource = new Outscale.Vm("vmResource", new()
{
    ImageId = "string",
    PlacementTenancy = "string",
    VmId = "string",
    GetAdminPassword = false,
    BsuOptimized = false,
    IsSourceDestChecked = false,
    KeypairName = "string",
    NestedVirtualization = false,
    Nics = new[]
    {
        new Outscale.Inputs.VmNicArgs
        {
            DeviceNumber = 0,
            NetId = "string",
            MacAddress = "string",
            DeleteOnVmDeletion = false,
            IsSourceDestChecked = false,
            NicId = "string",
            LinkPublicIps = new[]
            {
                new Outscale.Inputs.VmNicLinkPublicIpArgs
                {
                    PublicDnsName = "string",
                    PublicIp = "string",
                    PublicIpAccountId = "string",
                },
            },
            Description = "string",
            AccountId = "string",
            LinkNics = new[]
            {
                new Outscale.Inputs.VmNicLinkNicArgs
                {
                    DeleteOnVmDeletion = false,
                    DeviceNumber = "string",
                    LinkNicId = "string",
                    State = "string",
                },
            },
            PrivateDnsName = "string",
            PrivateIps = new[]
            {
                new Outscale.Inputs.VmNicPrivateIpArgs
                {
                    IsPrimary = false,
                    LinkPublicIps = new[]
                    {
                        new Outscale.Inputs.VmNicPrivateIpLinkPublicIpArgs
                        {
                            PublicDnsName = "string",
                            PublicIp = "string",
                            PublicIpAccountId = "string",
                        },
                    },
                    PrivateDnsName = "string",
                    PrivateIp = "string",
                },
            },
            SecondaryPrivateIpCount = 0,
            SecurityGroupIds = new[]
            {
                "string",
            },
            SecurityGroups = new[]
            {
                new Outscale.Inputs.VmNicSecurityGroupArgs
                {
                    SecurityGroupId = "string",
                    SecurityGroupName = "string",
                },
            },
            State = "string",
            SubnetId = "string",
        },
    },
    OutscaleVmId = "string",
    Performance = "string",
    VmType = "string",
    DeletionProtection = false,
    SecurityGroupIds = new[]
    {
        "string",
    },
    PrivateIps = new[]
    {
        "string",
    },
    PrimaryNics = new[]
    {
        new Outscale.Inputs.VmPrimaryNicArgs
        {
            DeviceNumber = 0,
            NetId = "string",
            MacAddress = "string",
            DeleteOnVmDeletion = false,
            IsSourceDestChecked = false,
            NicId = "string",
            LinkPublicIps = new[]
            {
                new Outscale.Inputs.VmPrimaryNicLinkPublicIpArgs
                {
                    PublicDnsName = "string",
                    PublicIp = "string",
                    PublicIpAccountId = "string",
                },
            },
            Description = "string",
            AccountId = "string",
            LinkNics = new[]
            {
                new Outscale.Inputs.VmPrimaryNicLinkNicArgs
                {
                    DeleteOnVmDeletion = false,
                    DeviceNumber = "string",
                    LinkNicId = "string",
                    State = "string",
                },
            },
            PrivateDnsName = "string",
            PrivateIps = new[]
            {
                new Outscale.Inputs.VmPrimaryNicPrivateIpArgs
                {
                    IsPrimary = false,
                    LinkPublicIps = new[]
                    {
                        new Outscale.Inputs.VmPrimaryNicPrivateIpLinkPublicIpArgs
                        {
                            PublicDnsName = "string",
                            PublicIp = "string",
                            PublicIpAccountId = "string",
                        },
                    },
                    PrivateDnsName = "string",
                    PrivateIp = "string",
                },
            },
            SecondaryPrivateIpCount = 0,
            SecurityGroupIds = new[]
            {
                "string",
            },
            SecurityGroups = new[]
            {
                new Outscale.Inputs.VmPrimaryNicSecurityGroupArgs
                {
                    SecurityGroupId = "string",
                    SecurityGroupName = "string",
                },
            },
            State = "string",
            SubnetId = "string",
        },
    },
    SecurityGroupNames = new[]
    {
        "string",
    },
    State = "string",
    SubnetId = "string",
    Tags = new[]
    {
        new Outscale.Inputs.VmTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    Timeouts = new Outscale.Inputs.VmTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Read = "string",
        Update = "string",
    },
    UserData = "string",
    BlockDeviceMappings = new[]
    {
        new Outscale.Inputs.VmBlockDeviceMappingArgs
        {
            Bsu = new Outscale.Inputs.VmBlockDeviceMappingBsuArgs
            {
                DeleteOnVmDeletion = false,
                Iops = 0,
                SnapshotId = "string",
                Tags = new[]
                {
                    new Outscale.Inputs.VmBlockDeviceMappingBsuTagArgs
                    {
                        Key = "string",
                        Value = "string",
                    },
                },
                VolumeSize = 0,
                VolumeType = "string",
            },
            DeviceName = "string",
            NoDevice = "string",
            VirtualDeviceName = "string",
        },
    },
    VmInitiatedShutdownBehavior = "string",
    PlacementSubregionName = "string",
});
Copy
example, err := outscale.NewVm(ctx, "vmResource", &outscale.VmArgs{
ImageId: pulumi.String("string"),
PlacementTenancy: pulumi.String("string"),
VmId: pulumi.String("string"),
GetAdminPassword: pulumi.Bool(false),
BsuOptimized: pulumi.Bool(false),
IsSourceDestChecked: pulumi.Bool(false),
KeypairName: pulumi.String("string"),
NestedVirtualization: pulumi.Bool(false),
Nics: .VmNicArray{
&.VmNicArgs{
DeviceNumber: pulumi.Float64(0),
NetId: pulumi.String("string"),
MacAddress: pulumi.String("string"),
DeleteOnVmDeletion: pulumi.Bool(false),
IsSourceDestChecked: pulumi.Bool(false),
NicId: pulumi.String("string"),
LinkPublicIps: .VmNicLinkPublicIpArray{
&.VmNicLinkPublicIpArgs{
PublicDnsName: pulumi.String("string"),
PublicIp: pulumi.String("string"),
PublicIpAccountId: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
AccountId: pulumi.String("string"),
LinkNics: .VmNicLinkNicArray{
&.VmNicLinkNicArgs{
DeleteOnVmDeletion: pulumi.Bool(false),
DeviceNumber: pulumi.String("string"),
LinkNicId: pulumi.String("string"),
State: pulumi.String("string"),
},
},
PrivateDnsName: pulumi.String("string"),
PrivateIps: .VmNicPrivateIpArray{
&.VmNicPrivateIpArgs{
IsPrimary: pulumi.Bool(false),
LinkPublicIps: .VmNicPrivateIpLinkPublicIpArray{
&.VmNicPrivateIpLinkPublicIpArgs{
PublicDnsName: pulumi.String("string"),
PublicIp: pulumi.String("string"),
PublicIpAccountId: pulumi.String("string"),
},
},
PrivateDnsName: pulumi.String("string"),
PrivateIp: pulumi.String("string"),
},
},
SecondaryPrivateIpCount: pulumi.Float64(0),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroups: .VmNicSecurityGroupArray{
&.VmNicSecurityGroupArgs{
SecurityGroupId: pulumi.String("string"),
SecurityGroupName: pulumi.String("string"),
},
},
State: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
OutscaleVmId: pulumi.String("string"),
Performance: pulumi.String("string"),
VmType: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
PrivateIps: pulumi.StringArray{
pulumi.String("string"),
},
PrimaryNics: .VmPrimaryNicArray{
&.VmPrimaryNicArgs{
DeviceNumber: pulumi.Float64(0),
NetId: pulumi.String("string"),
MacAddress: pulumi.String("string"),
DeleteOnVmDeletion: pulumi.Bool(false),
IsSourceDestChecked: pulumi.Bool(false),
NicId: pulumi.String("string"),
LinkPublicIps: .VmPrimaryNicLinkPublicIpArray{
&.VmPrimaryNicLinkPublicIpArgs{
PublicDnsName: pulumi.String("string"),
PublicIp: pulumi.String("string"),
PublicIpAccountId: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
AccountId: pulumi.String("string"),
LinkNics: .VmPrimaryNicLinkNicArray{
&.VmPrimaryNicLinkNicArgs{
DeleteOnVmDeletion: pulumi.Bool(false),
DeviceNumber: pulumi.String("string"),
LinkNicId: pulumi.String("string"),
State: pulumi.String("string"),
},
},
PrivateDnsName: pulumi.String("string"),
PrivateIps: .VmPrimaryNicPrivateIpArray{
&.VmPrimaryNicPrivateIpArgs{
IsPrimary: pulumi.Bool(false),
LinkPublicIps: .VmPrimaryNicPrivateIpLinkPublicIpArray{
&.VmPrimaryNicPrivateIpLinkPublicIpArgs{
PublicDnsName: pulumi.String("string"),
PublicIp: pulumi.String("string"),
PublicIpAccountId: pulumi.String("string"),
},
},
PrivateDnsName: pulumi.String("string"),
PrivateIp: pulumi.String("string"),
},
},
SecondaryPrivateIpCount: pulumi.Float64(0),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroups: .VmPrimaryNicSecurityGroupArray{
&.VmPrimaryNicSecurityGroupArgs{
SecurityGroupId: pulumi.String("string"),
SecurityGroupName: pulumi.String("string"),
},
},
State: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
SecurityGroupNames: pulumi.StringArray{
pulumi.String("string"),
},
State: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Tags: .VmTagArray{
&.VmTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &.VmTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserData: pulumi.String("string"),
BlockDeviceMappings: .VmBlockDeviceMappingArray{
&.VmBlockDeviceMappingArgs{
Bsu: &.VmBlockDeviceMappingBsuArgs{
DeleteOnVmDeletion: pulumi.Bool(false),
Iops: pulumi.Float64(0),
SnapshotId: pulumi.String("string"),
Tags: .VmBlockDeviceMappingBsuTagArray{
&.VmBlockDeviceMappingBsuTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
VolumeSize: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
},
DeviceName: pulumi.String("string"),
NoDevice: pulumi.String("string"),
VirtualDeviceName: pulumi.String("string"),
},
},
VmInitiatedShutdownBehavior: pulumi.String("string"),
PlacementSubregionName: pulumi.String("string"),
})
Copy
var vmResource = new Vm("vmResource", VmArgs.builder()
    .imageId("string")
    .placementTenancy("string")
    .vmId("string")
    .getAdminPassword(false)
    .bsuOptimized(false)
    .isSourceDestChecked(false)
    .keypairName("string")
    .nestedVirtualization(false)
    .nics(VmNicArgs.builder()
        .deviceNumber(0)
        .netId("string")
        .macAddress("string")
        .deleteOnVmDeletion(false)
        .isSourceDestChecked(false)
        .nicId("string")
        .linkPublicIps(VmNicLinkPublicIpArgs.builder()
            .publicDnsName("string")
            .publicIp("string")
            .publicIpAccountId("string")
            .build())
        .description("string")
        .accountId("string")
        .linkNics(VmNicLinkNicArgs.builder()
            .deleteOnVmDeletion(false)
            .deviceNumber("string")
            .linkNicId("string")
            .state("string")
            .build())
        .privateDnsName("string")
        .privateIps(VmNicPrivateIpArgs.builder()
            .isPrimary(false)
            .linkPublicIps(VmNicPrivateIpLinkPublicIpArgs.builder()
                .publicDnsName("string")
                .publicIp("string")
                .publicIpAccountId("string")
                .build())
            .privateDnsName("string")
            .privateIp("string")
            .build())
        .secondaryPrivateIpCount(0)
        .securityGroupIds("string")
        .securityGroups(VmNicSecurityGroupArgs.builder()
            .securityGroupId("string")
            .securityGroupName("string")
            .build())
        .state("string")
        .subnetId("string")
        .build())
    .outscaleVmId("string")
    .performance("string")
    .vmType("string")
    .deletionProtection(false)
    .securityGroupIds("string")
    .privateIps("string")
    .primaryNics(VmPrimaryNicArgs.builder()
        .deviceNumber(0)
        .netId("string")
        .macAddress("string")
        .deleteOnVmDeletion(false)
        .isSourceDestChecked(false)
        .nicId("string")
        .linkPublicIps(VmPrimaryNicLinkPublicIpArgs.builder()
            .publicDnsName("string")
            .publicIp("string")
            .publicIpAccountId("string")
            .build())
        .description("string")
        .accountId("string")
        .linkNics(VmPrimaryNicLinkNicArgs.builder()
            .deleteOnVmDeletion(false)
            .deviceNumber("string")
            .linkNicId("string")
            .state("string")
            .build())
        .privateDnsName("string")
        .privateIps(VmPrimaryNicPrivateIpArgs.builder()
            .isPrimary(false)
            .linkPublicIps(VmPrimaryNicPrivateIpLinkPublicIpArgs.builder()
                .publicDnsName("string")
                .publicIp("string")
                .publicIpAccountId("string")
                .build())
            .privateDnsName("string")
            .privateIp("string")
            .build())
        .secondaryPrivateIpCount(0)
        .securityGroupIds("string")
        .securityGroups(VmPrimaryNicSecurityGroupArgs.builder()
            .securityGroupId("string")
            .securityGroupName("string")
            .build())
        .state("string")
        .subnetId("string")
        .build())
    .securityGroupNames("string")
    .state("string")
    .subnetId("string")
    .tags(VmTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .timeouts(VmTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .read("string")
        .update("string")
        .build())
    .userData("string")
    .blockDeviceMappings(VmBlockDeviceMappingArgs.builder()
        .bsu(VmBlockDeviceMappingBsuArgs.builder()
            .deleteOnVmDeletion(false)
            .iops(0)
            .snapshotId("string")
            .tags(VmBlockDeviceMappingBsuTagArgs.builder()
                .key("string")
                .value("string")
                .build())
            .volumeSize(0)
            .volumeType("string")
            .build())
        .deviceName("string")
        .noDevice("string")
        .virtualDeviceName("string")
        .build())
    .vmInitiatedShutdownBehavior("string")
    .placementSubregionName("string")
    .build());
Copy
vm_resource = outscale.Vm("vmResource",
    image_id="string",
    placement_tenancy="string",
    vm_id="string",
    get_admin_password=False,
    bsu_optimized=False,
    is_source_dest_checked=False,
    keypair_name="string",
    nested_virtualization=False,
    nics=[{
        "device_number": 0,
        "net_id": "string",
        "mac_address": "string",
        "delete_on_vm_deletion": False,
        "is_source_dest_checked": False,
        "nic_id": "string",
        "link_public_ips": [{
            "public_dns_name": "string",
            "public_ip": "string",
            "public_ip_account_id": "string",
        }],
        "description": "string",
        "account_id": "string",
        "link_nics": [{
            "delete_on_vm_deletion": False,
            "device_number": "string",
            "link_nic_id": "string",
            "state": "string",
        }],
        "private_dns_name": "string",
        "private_ips": [{
            "is_primary": False,
            "link_public_ips": [{
                "public_dns_name": "string",
                "public_ip": "string",
                "public_ip_account_id": "string",
            }],
            "private_dns_name": "string",
            "private_ip": "string",
        }],
        "secondary_private_ip_count": 0,
        "security_group_ids": ["string"],
        "security_groups": [{
            "security_group_id": "string",
            "security_group_name": "string",
        }],
        "state": "string",
        "subnet_id": "string",
    }],
    outscale_vm_id="string",
    performance="string",
    vm_type="string",
    deletion_protection=False,
    security_group_ids=["string"],
    private_ips=["string"],
    primary_nics=[{
        "device_number": 0,
        "net_id": "string",
        "mac_address": "string",
        "delete_on_vm_deletion": False,
        "is_source_dest_checked": False,
        "nic_id": "string",
        "link_public_ips": [{
            "public_dns_name": "string",
            "public_ip": "string",
            "public_ip_account_id": "string",
        }],
        "description": "string",
        "account_id": "string",
        "link_nics": [{
            "delete_on_vm_deletion": False,
            "device_number": "string",
            "link_nic_id": "string",
            "state": "string",
        }],
        "private_dns_name": "string",
        "private_ips": [{
            "is_primary": False,
            "link_public_ips": [{
                "public_dns_name": "string",
                "public_ip": "string",
                "public_ip_account_id": "string",
            }],
            "private_dns_name": "string",
            "private_ip": "string",
        }],
        "secondary_private_ip_count": 0,
        "security_group_ids": ["string"],
        "security_groups": [{
            "security_group_id": "string",
            "security_group_name": "string",
        }],
        "state": "string",
        "subnet_id": "string",
    }],
    security_group_names=["string"],
    state="string",
    subnet_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
        "read": "string",
        "update": "string",
    },
    user_data="string",
    block_device_mappings=[{
        "bsu": {
            "delete_on_vm_deletion": False,
            "iops": 0,
            "snapshot_id": "string",
            "tags": [{
                "key": "string",
                "value": "string",
            }],
            "volume_size": 0,
            "volume_type": "string",
        },
        "device_name": "string",
        "no_device": "string",
        "virtual_device_name": "string",
    }],
    vm_initiated_shutdown_behavior="string",
    placement_subregion_name="string")
Copy
const vmResource = new outscale.Vm("vmResource", {
    imageId: "string",
    placementTenancy: "string",
    vmId: "string",
    getAdminPassword: false,
    bsuOptimized: false,
    isSourceDestChecked: false,
    keypairName: "string",
    nestedVirtualization: false,
    nics: [{
        deviceNumber: 0,
        netId: "string",
        macAddress: "string",
        deleteOnVmDeletion: false,
        isSourceDestChecked: false,
        nicId: "string",
        linkPublicIps: [{
            publicDnsName: "string",
            publicIp: "string",
            publicIpAccountId: "string",
        }],
        description: "string",
        accountId: "string",
        linkNics: [{
            deleteOnVmDeletion: false,
            deviceNumber: "string",
            linkNicId: "string",
            state: "string",
        }],
        privateDnsName: "string",
        privateIps: [{
            isPrimary: false,
            linkPublicIps: [{
                publicDnsName: "string",
                publicIp: "string",
                publicIpAccountId: "string",
            }],
            privateDnsName: "string",
            privateIp: "string",
        }],
        secondaryPrivateIpCount: 0,
        securityGroupIds: ["string"],
        securityGroups: [{
            securityGroupId: "string",
            securityGroupName: "string",
        }],
        state: "string",
        subnetId: "string",
    }],
    outscaleVmId: "string",
    performance: "string",
    vmType: "string",
    deletionProtection: false,
    securityGroupIds: ["string"],
    privateIps: ["string"],
    primaryNics: [{
        deviceNumber: 0,
        netId: "string",
        macAddress: "string",
        deleteOnVmDeletion: false,
        isSourceDestChecked: false,
        nicId: "string",
        linkPublicIps: [{
            publicDnsName: "string",
            publicIp: "string",
            publicIpAccountId: "string",
        }],
        description: "string",
        accountId: "string",
        linkNics: [{
            deleteOnVmDeletion: false,
            deviceNumber: "string",
            linkNicId: "string",
            state: "string",
        }],
        privateDnsName: "string",
        privateIps: [{
            isPrimary: false,
            linkPublicIps: [{
                publicDnsName: "string",
                publicIp: "string",
                publicIpAccountId: "string",
            }],
            privateDnsName: "string",
            privateIp: "string",
        }],
        secondaryPrivateIpCount: 0,
        securityGroupIds: ["string"],
        securityGroups: [{
            securityGroupId: "string",
            securityGroupName: "string",
        }],
        state: "string",
        subnetId: "string",
    }],
    securityGroupNames: ["string"],
    state: "string",
    subnetId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
        read: "string",
        update: "string",
    },
    userData: "string",
    blockDeviceMappings: [{
        bsu: {
            deleteOnVmDeletion: false,
            iops: 0,
            snapshotId: "string",
            tags: [{
                key: "string",
                value: "string",
            }],
            volumeSize: 0,
            volumeType: "string",
        },
        deviceName: "string",
        noDevice: "string",
        virtualDeviceName: "string",
    }],
    vmInitiatedShutdownBehavior: "string",
    placementSubregionName: "string",
});
Copy
type: outscale:Vm
properties:
    blockDeviceMappings:
        - bsu:
            deleteOnVmDeletion: false
            iops: 0
            snapshotId: string
            tags:
                - key: string
                  value: string
            volumeSize: 0
            volumeType: string
          deviceName: string
          noDevice: string
          virtualDeviceName: string
    bsuOptimized: false
    deletionProtection: false
    getAdminPassword: false
    imageId: string
    isSourceDestChecked: false
    keypairName: string
    nestedVirtualization: false
    nics:
        - accountId: string
          deleteOnVmDeletion: false
          description: string
          deviceNumber: 0
          isSourceDestChecked: false
          linkNics:
            - deleteOnVmDeletion: false
              deviceNumber: string
              linkNicId: string
              state: string
          linkPublicIps:
            - publicDnsName: string
              publicIp: string
              publicIpAccountId: string
          macAddress: string
          netId: string
          nicId: string
          privateDnsName: string
          privateIps:
            - isPrimary: false
              linkPublicIps:
                - publicDnsName: string
                  publicIp: string
                  publicIpAccountId: string
              privateDnsName: string
              privateIp: string
          secondaryPrivateIpCount: 0
          securityGroupIds:
            - string
          securityGroups:
            - securityGroupId: string
              securityGroupName: string
          state: string
          subnetId: string
    outscaleVmId: string
    performance: string
    placementSubregionName: string
    placementTenancy: string
    primaryNics:
        - accountId: string
          deleteOnVmDeletion: false
          description: string
          deviceNumber: 0
          isSourceDestChecked: false
          linkNics:
            - deleteOnVmDeletion: false
              deviceNumber: string
              linkNicId: string
              state: string
          linkPublicIps:
            - publicDnsName: string
              publicIp: string
              publicIpAccountId: string
          macAddress: string
          netId: string
          nicId: string
          privateDnsName: string
          privateIps:
            - isPrimary: false
              linkPublicIps:
                - publicDnsName: string
                  publicIp: string
                  publicIpAccountId: string
              privateDnsName: string
              privateIp: string
          secondaryPrivateIpCount: 0
          securityGroupIds:
            - string
          securityGroups:
            - securityGroupId: string
              securityGroupName: string
          state: string
          subnetId: string
    privateIps:
        - string
    securityGroupIds:
        - string
    securityGroupNames:
        - string
    state: string
    subnetId: string
    tags:
        - key: string
          value: string
    timeouts:
        create: string
        delete: string
        read: string
        update: string
    userData: string
    vmId: string
    vmInitiatedShutdownBehavior: string
    vmType: string
Copy

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

ImageId This property is required. string
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
BlockDeviceMappings List<VmBlockDeviceMapping>
One or more block device mappings.
BsuOptimized bool
DeletionProtection bool
If true, you cannot delete the VM unless you change this parameter back to false.
GetAdminPassword bool
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
KeypairName string
The name of the keypair.
NestedVirtualization bool
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
Nics List<VmNic>
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
OutscaleVmId string
Performance string
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
PlacementSubregionName string
The name of the Subregion where the VM is placed.
PlacementTenancy string
The tenancy of the VM (default | dedicated).
PrimaryNics List<VmPrimaryNic>
The primary network interface of the VM.
PrivateIps List<string>
One or more private IPs of the VM.
SecurityGroupIds List<string>
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
SecurityGroupNames List<string>
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
SubnetId string
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
Tags List<VmTag>
A tag to add to this resource. You can specify this argument several times.
Timeouts VmTimeouts
UserData string
VmId string
The ID of the VM.
VmInitiatedShutdownBehavior string
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
VmType string
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
ImageId This property is required. string
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
BlockDeviceMappings []VmBlockDeviceMappingArgs
One or more block device mappings.
BsuOptimized bool
DeletionProtection bool
If true, you cannot delete the VM unless you change this parameter back to false.
GetAdminPassword bool
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
KeypairName string
The name of the keypair.
NestedVirtualization bool
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
Nics []VmNicArgs
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
OutscaleVmId string
Performance string
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
PlacementSubregionName string
The name of the Subregion where the VM is placed.
PlacementTenancy string
The tenancy of the VM (default | dedicated).
PrimaryNics []VmPrimaryNicArgs
The primary network interface of the VM.
PrivateIps []string
One or more private IPs of the VM.
SecurityGroupIds []string
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
SecurityGroupNames []string
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
SubnetId string
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
Tags []VmTagArgs
A tag to add to this resource. You can specify this argument several times.
Timeouts VmTimeoutsArgs
UserData string
VmId string
The ID of the VM.
VmInitiatedShutdownBehavior string
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
VmType string
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
imageId This property is required. String
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
blockDeviceMappings List<VmBlockDeviceMapping>
One or more block device mappings.
bsuOptimized Boolean
deletionProtection Boolean
If true, you cannot delete the VM unless you change this parameter back to false.
getAdminPassword Boolean
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypairName String
The name of the keypair.
nestedVirtualization Boolean
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
nics List<VmNic>
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
outscaleVmId String
performance String
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placementSubregionName String
The name of the Subregion where the VM is placed.
placementTenancy String
The tenancy of the VM (default | dedicated).
primaryNics List<VmPrimaryNic>
The primary network interface of the VM.
privateIps List<String>
One or more private IPs of the VM.
securityGroupIds List<String>
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroupNames List<String>
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId String
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags List<VmTag>
A tag to add to this resource. You can specify this argument several times.
timeouts VmTimeouts
userData String
vmId String
The ID of the VM.
vmInitiatedShutdownBehavior String
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vmType String
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
imageId This property is required. string
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
blockDeviceMappings VmBlockDeviceMapping[]
One or more block device mappings.
bsuOptimized boolean
deletionProtection boolean
If true, you cannot delete the VM unless you change this parameter back to false.
getAdminPassword boolean
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
isSourceDestChecked boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypairName string
The name of the keypair.
nestedVirtualization boolean
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
nics VmNic[]
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
outscaleVmId string
performance string
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placementSubregionName string
The name of the Subregion where the VM is placed.
placementTenancy string
The tenancy of the VM (default | dedicated).
primaryNics VmPrimaryNic[]
The primary network interface of the VM.
privateIps string[]
One or more private IPs of the VM.
securityGroupIds string[]
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroupNames string[]
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
state string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId string
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags VmTag[]
A tag to add to this resource. You can specify this argument several times.
timeouts VmTimeouts
userData string
vmId string
The ID of the VM.
vmInitiatedShutdownBehavior string
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vmType string
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
image_id This property is required. str
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
block_device_mappings Sequence[VmBlockDeviceMappingArgs]
One or more block device mappings.
bsu_optimized bool
deletion_protection bool
If true, you cannot delete the VM unless you change this parameter back to false.
get_admin_password bool
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
is_source_dest_checked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypair_name str
The name of the keypair.
nested_virtualization bool
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
nics Sequence[VmNicArgs]
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
outscale_vm_id str
performance str
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placement_subregion_name str
The name of the Subregion where the VM is placed.
placement_tenancy str
The tenancy of the VM (default | dedicated).
primary_nics Sequence[VmPrimaryNicArgs]
The primary network interface of the VM.
private_ips Sequence[str]
One or more private IPs of the VM.
security_group_ids Sequence[str]
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
security_group_names Sequence[str]
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
state str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnet_id str
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags Sequence[VmTagArgs]
A tag to add to this resource. You can specify this argument several times.
timeouts VmTimeoutsArgs
user_data str
vm_id str
The ID of the VM.
vm_initiated_shutdown_behavior str
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vm_type str
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
imageId This property is required. String
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
blockDeviceMappings List<Property Map>
One or more block device mappings.
bsuOptimized Boolean
deletionProtection Boolean
If true, you cannot delete the VM unless you change this parameter back to false.
getAdminPassword Boolean
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypairName String
The name of the keypair.
nestedVirtualization Boolean
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
nics List<Property Map>
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
outscaleVmId String
performance String
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placementSubregionName String
The name of the Subregion where the VM is placed.
placementTenancy String
The tenancy of the VM (default | dedicated).
primaryNics List<Property Map>
The primary network interface of the VM.
privateIps List<String>
One or more private IPs of the VM.
securityGroupIds List<String>
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroupNames List<String>
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId String
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.
timeouts Property Map
userData String
vmId String
The ID of the VM.
vmInitiatedShutdownBehavior String
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vmType String
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.

Outputs

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

AdminPassword string
Architecture string
The architecture of the VM (i386 | x86_64).
BlockDeviceMappingsCreateds List<VmBlockDeviceMappingsCreated>
The block device mapping of the VM.
ClientToken string
A unique identifier which enables you to manage the idempotency.
CreationDate string
The date and time (UTC) at which the VM was created.
Hypervisor string
The hypervisor type of the VMs (ovm | xen).
Id string
The provider-assigned unique ID for this managed resource.
LaunchNumber double
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
NetId string
The ID of the Net for the NIC.
OsFamily string
Indicates the operating system (OS) of the VM.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The primary private IP of the VM.
ProductCodes List<string>
The product codes associated with the OMI used to create the VM.
PublicDnsName string
The name of the public DNS.
PublicIp string
The public IP of the VM.
RequestId string
ReservationId string
The reservation ID of the VM.
RootDeviceName string
The name of the root device for the VM (for example, /dev/sda1).
RootDeviceType string
The type of root device used by the VM (always bsu).
SecurityGroups List<VmSecurityGroup>
One or more security groups associated with the VM.
StateReason string
The reason explaining the current state of the VM.
AdminPassword string
Architecture string
The architecture of the VM (i386 | x86_64).
BlockDeviceMappingsCreateds []VmBlockDeviceMappingsCreated
The block device mapping of the VM.
ClientToken string
A unique identifier which enables you to manage the idempotency.
CreationDate string
The date and time (UTC) at which the VM was created.
Hypervisor string
The hypervisor type of the VMs (ovm | xen).
Id string
The provider-assigned unique ID for this managed resource.
LaunchNumber float64
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
NetId string
The ID of the Net for the NIC.
OsFamily string
Indicates the operating system (OS) of the VM.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The primary private IP of the VM.
ProductCodes []string
The product codes associated with the OMI used to create the VM.
PublicDnsName string
The name of the public DNS.
PublicIp string
The public IP of the VM.
RequestId string
ReservationId string
The reservation ID of the VM.
RootDeviceName string
The name of the root device for the VM (for example, /dev/sda1).
RootDeviceType string
The type of root device used by the VM (always bsu).
SecurityGroups []VmSecurityGroup
One or more security groups associated with the VM.
StateReason string
The reason explaining the current state of the VM.
adminPassword String
architecture String
The architecture of the VM (i386 | x86_64).
blockDeviceMappingsCreateds List<VmBlockDeviceMappingsCreated>
The block device mapping of the VM.
clientToken String
A unique identifier which enables you to manage the idempotency.
creationDate String
The date and time (UTC) at which the VM was created.
hypervisor String
The hypervisor type of the VMs (ovm | xen).
id String
The provider-assigned unique ID for this managed resource.
launchNumber Double
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
netId String
The ID of the Net for the NIC.
osFamily String
Indicates the operating system (OS) of the VM.
privateDnsName String
The name of the private DNS.
privateIp String
The primary private IP of the VM.
productCodes List<String>
The product codes associated with the OMI used to create the VM.
publicDnsName String
The name of the public DNS.
publicIp String
The public IP of the VM.
requestId String
reservationId String
The reservation ID of the VM.
rootDeviceName String
The name of the root device for the VM (for example, /dev/sda1).
rootDeviceType String
The type of root device used by the VM (always bsu).
securityGroups List<VmSecurityGroup>
One or more security groups associated with the VM.
stateReason String
The reason explaining the current state of the VM.
adminPassword string
architecture string
The architecture of the VM (i386 | x86_64).
blockDeviceMappingsCreateds VmBlockDeviceMappingsCreated[]
The block device mapping of the VM.
clientToken string
A unique identifier which enables you to manage the idempotency.
creationDate string
The date and time (UTC) at which the VM was created.
hypervisor string
The hypervisor type of the VMs (ovm | xen).
id string
The provider-assigned unique ID for this managed resource.
launchNumber number
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
netId string
The ID of the Net for the NIC.
osFamily string
Indicates the operating system (OS) of the VM.
privateDnsName string
The name of the private DNS.
privateIp string
The primary private IP of the VM.
productCodes string[]
The product codes associated with the OMI used to create the VM.
publicDnsName string
The name of the public DNS.
publicIp string
The public IP of the VM.
requestId string
reservationId string
The reservation ID of the VM.
rootDeviceName string
The name of the root device for the VM (for example, /dev/sda1).
rootDeviceType string
The type of root device used by the VM (always bsu).
securityGroups VmSecurityGroup[]
One or more security groups associated with the VM.
stateReason string
The reason explaining the current state of the VM.
admin_password str
architecture str
The architecture of the VM (i386 | x86_64).
block_device_mappings_createds Sequence[VmBlockDeviceMappingsCreated]
The block device mapping of the VM.
client_token str
A unique identifier which enables you to manage the idempotency.
creation_date str
The date and time (UTC) at which the VM was created.
hypervisor str
The hypervisor type of the VMs (ovm | xen).
id str
The provider-assigned unique ID for this managed resource.
launch_number float
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
net_id str
The ID of the Net for the NIC.
os_family str
Indicates the operating system (OS) of the VM.
private_dns_name str
The name of the private DNS.
private_ip str
The primary private IP of the VM.
product_codes Sequence[str]
The product codes associated with the OMI used to create the VM.
public_dns_name str
The name of the public DNS.
public_ip str
The public IP of the VM.
request_id str
reservation_id str
The reservation ID of the VM.
root_device_name str
The name of the root device for the VM (for example, /dev/sda1).
root_device_type str
The type of root device used by the VM (always bsu).
security_groups Sequence[VmSecurityGroup]
One or more security groups associated with the VM.
state_reason str
The reason explaining the current state of the VM.
adminPassword String
architecture String
The architecture of the VM (i386 | x86_64).
blockDeviceMappingsCreateds List<Property Map>
The block device mapping of the VM.
clientToken String
A unique identifier which enables you to manage the idempotency.
creationDate String
The date and time (UTC) at which the VM was created.
hypervisor String
The hypervisor type of the VMs (ovm | xen).
id String
The provider-assigned unique ID for this managed resource.
launchNumber Number
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
netId String
The ID of the Net for the NIC.
osFamily String
Indicates the operating system (OS) of the VM.
privateDnsName String
The name of the private DNS.
privateIp String
The primary private IP of the VM.
productCodes List<String>
The product codes associated with the OMI used to create the VM.
publicDnsName String
The name of the public DNS.
publicIp String
The public IP of the VM.
requestId String
reservationId String
The reservation ID of the VM.
rootDeviceName String
The name of the root device for the VM (for example, /dev/sda1).
rootDeviceType String
The type of root device used by the VM (always bsu).
securityGroups List<Property Map>
One or more security groups associated with the VM.
stateReason String
The reason explaining the current state of the VM.

Look up Existing Vm Resource

Get an existing Vm 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?: VmState, opts?: CustomResourceOptions): Vm
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admin_password: Optional[str] = None,
        architecture: Optional[str] = None,
        block_device_mappings: Optional[Sequence[VmBlockDeviceMappingArgs]] = None,
        block_device_mappings_createds: Optional[Sequence[VmBlockDeviceMappingsCreatedArgs]] = None,
        bsu_optimized: Optional[bool] = None,
        client_token: Optional[str] = None,
        creation_date: Optional[str] = None,
        deletion_protection: Optional[bool] = None,
        get_admin_password: Optional[bool] = None,
        hypervisor: Optional[str] = None,
        image_id: Optional[str] = None,
        is_source_dest_checked: Optional[bool] = None,
        keypair_name: Optional[str] = None,
        launch_number: Optional[float] = None,
        nested_virtualization: Optional[bool] = None,
        net_id: Optional[str] = None,
        nics: Optional[Sequence[VmNicArgs]] = None,
        os_family: Optional[str] = None,
        outscale_vm_id: Optional[str] = None,
        performance: Optional[str] = None,
        placement_subregion_name: Optional[str] = None,
        placement_tenancy: Optional[str] = None,
        primary_nics: Optional[Sequence[VmPrimaryNicArgs]] = None,
        private_dns_name: Optional[str] = None,
        private_ip: Optional[str] = None,
        private_ips: Optional[Sequence[str]] = None,
        product_codes: Optional[Sequence[str]] = None,
        public_dns_name: Optional[str] = None,
        public_ip: Optional[str] = None,
        request_id: Optional[str] = None,
        reservation_id: Optional[str] = None,
        root_device_name: Optional[str] = None,
        root_device_type: Optional[str] = None,
        security_group_ids: Optional[Sequence[str]] = None,
        security_group_names: Optional[Sequence[str]] = None,
        security_groups: Optional[Sequence[VmSecurityGroupArgs]] = None,
        state: Optional[str] = None,
        state_reason: Optional[str] = None,
        subnet_id: Optional[str] = None,
        tags: Optional[Sequence[VmTagArgs]] = None,
        timeouts: Optional[VmTimeoutsArgs] = None,
        user_data: Optional[str] = None,
        vm_id: Optional[str] = None,
        vm_initiated_shutdown_behavior: Optional[str] = None,
        vm_type: Optional[str] = None) -> Vm
func GetVm(ctx *Context, name string, id IDInput, state *VmState, opts ...ResourceOption) (*Vm, error)
public static Vm Get(string name, Input<string> id, VmState? state, CustomResourceOptions? opts = null)
public static Vm get(String name, Output<String> id, VmState state, CustomResourceOptions options)
resources:  _:    type: outscale:Vm    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AdminPassword string
Architecture string
The architecture of the VM (i386 | x86_64).
BlockDeviceMappings List<VmBlockDeviceMapping>
One or more block device mappings.
BlockDeviceMappingsCreateds List<VmBlockDeviceMappingsCreated>
The block device mapping of the VM.
BsuOptimized bool
ClientToken string
A unique identifier which enables you to manage the idempotency.
CreationDate string
The date and time (UTC) at which the VM was created.
DeletionProtection bool
If true, you cannot delete the VM unless you change this parameter back to false.
GetAdminPassword bool
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
Hypervisor string
The hypervisor type of the VMs (ovm | xen).
ImageId string
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
KeypairName string
The name of the keypair.
LaunchNumber double
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
NestedVirtualization bool
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
NetId string
The ID of the Net for the NIC.
Nics List<VmNic>
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
OsFamily string
Indicates the operating system (OS) of the VM.
OutscaleVmId string
Performance string
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
PlacementSubregionName string
The name of the Subregion where the VM is placed.
PlacementTenancy string
The tenancy of the VM (default | dedicated).
PrimaryNics List<VmPrimaryNic>
The primary network interface of the VM.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The primary private IP of the VM.
PrivateIps List<string>
One or more private IPs of the VM.
ProductCodes List<string>
The product codes associated with the OMI used to create the VM.
PublicDnsName string
The name of the public DNS.
PublicIp string
The public IP of the VM.
RequestId string
ReservationId string
The reservation ID of the VM.
RootDeviceName string
The name of the root device for the VM (for example, /dev/sda1).
RootDeviceType string
The type of root device used by the VM (always bsu).
SecurityGroupIds List<string>
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
SecurityGroupNames List<string>
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
SecurityGroups List<VmSecurityGroup>
One or more security groups associated with the VM.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
StateReason string
The reason explaining the current state of the VM.
SubnetId string
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
Tags List<VmTag>
A tag to add to this resource. You can specify this argument several times.
Timeouts VmTimeouts
UserData string
VmId string
The ID of the VM.
VmInitiatedShutdownBehavior string
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
VmType string
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
AdminPassword string
Architecture string
The architecture of the VM (i386 | x86_64).
BlockDeviceMappings []VmBlockDeviceMappingArgs
One or more block device mappings.
BlockDeviceMappingsCreateds []VmBlockDeviceMappingsCreatedArgs
The block device mapping of the VM.
BsuOptimized bool
ClientToken string
A unique identifier which enables you to manage the idempotency.
CreationDate string
The date and time (UTC) at which the VM was created.
DeletionProtection bool
If true, you cannot delete the VM unless you change this parameter back to false.
GetAdminPassword bool
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
Hypervisor string
The hypervisor type of the VMs (ovm | xen).
ImageId string
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
KeypairName string
The name of the keypair.
LaunchNumber float64
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
NestedVirtualization bool
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
NetId string
The ID of the Net for the NIC.
Nics []VmNicArgs
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
OsFamily string
Indicates the operating system (OS) of the VM.
OutscaleVmId string
Performance string
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
PlacementSubregionName string
The name of the Subregion where the VM is placed.
PlacementTenancy string
The tenancy of the VM (default | dedicated).
PrimaryNics []VmPrimaryNicArgs
The primary network interface of the VM.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The primary private IP of the VM.
PrivateIps []string
One or more private IPs of the VM.
ProductCodes []string
The product codes associated with the OMI used to create the VM.
PublicDnsName string
The name of the public DNS.
PublicIp string
The public IP of the VM.
RequestId string
ReservationId string
The reservation ID of the VM.
RootDeviceName string
The name of the root device for the VM (for example, /dev/sda1).
RootDeviceType string
The type of root device used by the VM (always bsu).
SecurityGroupIds []string
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
SecurityGroupNames []string
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
SecurityGroups []VmSecurityGroupArgs
One or more security groups associated with the VM.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
StateReason string
The reason explaining the current state of the VM.
SubnetId string
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
Tags []VmTagArgs
A tag to add to this resource. You can specify this argument several times.
Timeouts VmTimeoutsArgs
UserData string
VmId string
The ID of the VM.
VmInitiatedShutdownBehavior string
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
VmType string
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
adminPassword String
architecture String
The architecture of the VM (i386 | x86_64).
blockDeviceMappings List<VmBlockDeviceMapping>
One or more block device mappings.
blockDeviceMappingsCreateds List<VmBlockDeviceMappingsCreated>
The block device mapping of the VM.
bsuOptimized Boolean
clientToken String
A unique identifier which enables you to manage the idempotency.
creationDate String
The date and time (UTC) at which the VM was created.
deletionProtection Boolean
If true, you cannot delete the VM unless you change this parameter back to false.
getAdminPassword Boolean
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
hypervisor String
The hypervisor type of the VMs (ovm | xen).
imageId String
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypairName String
The name of the keypair.
launchNumber Double
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
nestedVirtualization Boolean
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
netId String
The ID of the Net for the NIC.
nics List<VmNic>
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
osFamily String
Indicates the operating system (OS) of the VM.
outscaleVmId String
performance String
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placementSubregionName String
The name of the Subregion where the VM is placed.
placementTenancy String
The tenancy of the VM (default | dedicated).
primaryNics List<VmPrimaryNic>
The primary network interface of the VM.
privateDnsName String
The name of the private DNS.
privateIp String
The primary private IP of the VM.
privateIps List<String>
One or more private IPs of the VM.
productCodes List<String>
The product codes associated with the OMI used to create the VM.
publicDnsName String
The name of the public DNS.
publicIp String
The public IP of the VM.
requestId String
reservationId String
The reservation ID of the VM.
rootDeviceName String
The name of the root device for the VM (for example, /dev/sda1).
rootDeviceType String
The type of root device used by the VM (always bsu).
securityGroupIds List<String>
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroupNames List<String>
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroups List<VmSecurityGroup>
One or more security groups associated with the VM.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
stateReason String
The reason explaining the current state of the VM.
subnetId String
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags List<VmTag>
A tag to add to this resource. You can specify this argument several times.
timeouts VmTimeouts
userData String
vmId String
The ID of the VM.
vmInitiatedShutdownBehavior String
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vmType String
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
adminPassword string
architecture string
The architecture of the VM (i386 | x86_64).
blockDeviceMappings VmBlockDeviceMapping[]
One or more block device mappings.
blockDeviceMappingsCreateds VmBlockDeviceMappingsCreated[]
The block device mapping of the VM.
bsuOptimized boolean
clientToken string
A unique identifier which enables you to manage the idempotency.
creationDate string
The date and time (UTC) at which the VM was created.
deletionProtection boolean
If true, you cannot delete the VM unless you change this parameter back to false.
getAdminPassword boolean
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
hypervisor string
The hypervisor type of the VMs (ovm | xen).
imageId string
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
isSourceDestChecked boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypairName string
The name of the keypair.
launchNumber number
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
nestedVirtualization boolean
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
netId string
The ID of the Net for the NIC.
nics VmNic[]
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
osFamily string
Indicates the operating system (OS) of the VM.
outscaleVmId string
performance string
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placementSubregionName string
The name of the Subregion where the VM is placed.
placementTenancy string
The tenancy of the VM (default | dedicated).
primaryNics VmPrimaryNic[]
The primary network interface of the VM.
privateDnsName string
The name of the private DNS.
privateIp string
The primary private IP of the VM.
privateIps string[]
One or more private IPs of the VM.
productCodes string[]
The product codes associated with the OMI used to create the VM.
publicDnsName string
The name of the public DNS.
publicIp string
The public IP of the VM.
requestId string
reservationId string
The reservation ID of the VM.
rootDeviceName string
The name of the root device for the VM (for example, /dev/sda1).
rootDeviceType string
The type of root device used by the VM (always bsu).
securityGroupIds string[]
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroupNames string[]
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroups VmSecurityGroup[]
One or more security groups associated with the VM.
state string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
stateReason string
The reason explaining the current state of the VM.
subnetId string
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags VmTag[]
A tag to add to this resource. You can specify this argument several times.
timeouts VmTimeouts
userData string
vmId string
The ID of the VM.
vmInitiatedShutdownBehavior string
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vmType string
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
admin_password str
architecture str
The architecture of the VM (i386 | x86_64).
block_device_mappings Sequence[VmBlockDeviceMappingArgs]
One or more block device mappings.
block_device_mappings_createds Sequence[VmBlockDeviceMappingsCreatedArgs]
The block device mapping of the VM.
bsu_optimized bool
client_token str
A unique identifier which enables you to manage the idempotency.
creation_date str
The date and time (UTC) at which the VM was created.
deletion_protection bool
If true, you cannot delete the VM unless you change this parameter back to false.
get_admin_password bool
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
hypervisor str
The hypervisor type of the VMs (ovm | xen).
image_id str
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
is_source_dest_checked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypair_name str
The name of the keypair.
launch_number float
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
nested_virtualization bool
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
net_id str
The ID of the Net for the NIC.
nics Sequence[VmNicArgs]
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
os_family str
Indicates the operating system (OS) of the VM.
outscale_vm_id str
performance str
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placement_subregion_name str
The name of the Subregion where the VM is placed.
placement_tenancy str
The tenancy of the VM (default | dedicated).
primary_nics Sequence[VmPrimaryNicArgs]
The primary network interface of the VM.
private_dns_name str
The name of the private DNS.
private_ip str
The primary private IP of the VM.
private_ips Sequence[str]
One or more private IPs of the VM.
product_codes Sequence[str]
The product codes associated with the OMI used to create the VM.
public_dns_name str
The name of the public DNS.
public_ip str
The public IP of the VM.
request_id str
reservation_id str
The reservation ID of the VM.
root_device_name str
The name of the root device for the VM (for example, /dev/sda1).
root_device_type str
The type of root device used by the VM (always bsu).
security_group_ids Sequence[str]
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
security_group_names Sequence[str]
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
security_groups Sequence[VmSecurityGroupArgs]
One or more security groups associated with the VM.
state str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
state_reason str
The reason explaining the current state of the VM.
subnet_id str
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags Sequence[VmTagArgs]
A tag to add to this resource. You can specify this argument several times.
timeouts VmTimeoutsArgs
user_data str
vm_id str
The ID of the VM.
vm_initiated_shutdown_behavior str
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vm_type str
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.
adminPassword String
architecture String
The architecture of the VM (i386 | x86_64).
blockDeviceMappings List<Property Map>
One or more block device mappings.
blockDeviceMappingsCreateds List<Property Map>
The block device mapping of the VM.
bsuOptimized Boolean
clientToken String
A unique identifier which enables you to manage the idempotency.
creationDate String
The date and time (UTC) at which the VM was created.
deletionProtection Boolean
If true, you cannot delete the VM unless you change this parameter back to false.
getAdminPassword Boolean
(Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the admin_password attribute.
hypervisor String
The hypervisor type of the VMs (ovm | xen).
imageId String
The ID of the OMI used to create the VM. You can find the list of OMIs by calling the ReadImages method.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypairName String
The name of the keypair.
launchNumber Number
The number for the VM when launching a group of several VMs (for example, 0, 1, 2, and so on).
nestedVirtualization Boolean
(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
netId String
The ID of the Net for the NIC.
nics List<Property Map>
One or more NICs. If you specify this parameter, you must not specify the subnet_id and subregion_name parameters. To define a NIC as the primary network interface of the VM, use the primary_nic argument.
osFamily String
Indicates the operating system (OS) of the VM.
outscaleVmId String
performance String
The performance of the VM (medium | high | highest). Updating this parameter will trigger a stop/start of the VM.
placementSubregionName String
The name of the Subregion where the VM is placed.
placementTenancy String
The tenancy of the VM (default | dedicated).
primaryNics List<Property Map>
The primary network interface of the VM.
privateDnsName String
The name of the private DNS.
privateIp String
The primary private IP of the VM.
privateIps List<String>
One or more private IPs of the VM.
productCodes List<String>
The product codes associated with the OMI used to create the VM.
publicDnsName String
The name of the public DNS.
publicIp String
The public IP of the VM.
requestId String
reservationId String
The reservation ID of the VM.
rootDeviceName String
The name of the root device for the VM (for example, /dev/sda1).
rootDeviceType String
The type of root device used by the VM (always bsu).
securityGroupIds List<String>
One or more IDs of security group for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroupNames List<String>
One or more names of security groups for the VMs. You must specify at least one of the following parameters: security_group_ids or security_group_names.
securityGroups List<Property Map>
One or more security groups associated with the VM.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
stateReason String
The reason explaining the current state of the VM.
subnetId String
The ID of the Subnet in which you want to create the VM. If you specify this parameter, you must not specify the nics parameter.
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.
timeouts Property Map
userData String
vmId String
The ID of the VM.
vmInitiatedShutdownBehavior String
The VM behavior when you stop it. By default or if set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vmType String
The type of VM (t2.small by default). Updating this parameter will trigger a stop/start of the VM. For more information, see VM Types.

Supporting Types

VmBlockDeviceMapping
, VmBlockDeviceMappingArgs

Bsu VmBlockDeviceMappingBsu
Information about the BSU volume to create.
DeviceName string
The name of the device.
NoDevice string
VirtualDeviceName string
Bsu VmBlockDeviceMappingBsu
Information about the BSU volume to create.
DeviceName string
The name of the device.
NoDevice string
VirtualDeviceName string
bsu VmBlockDeviceMappingBsu
Information about the BSU volume to create.
deviceName String
The name of the device.
noDevice String
virtualDeviceName String
bsu VmBlockDeviceMappingBsu
Information about the BSU volume to create.
deviceName string
The name of the device.
noDevice string
virtualDeviceName string
bsu VmBlockDeviceMappingBsu
Information about the BSU volume to create.
device_name str
The name of the device.
no_device str
virtual_device_name str
bsu Property Map
Information about the BSU volume to create.
deviceName String
The name of the device.
noDevice String
virtualDeviceName String

VmBlockDeviceMappingBsu
, VmBlockDeviceMappingBsuArgs

DeleteOnVmDeletion bool
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
Iops double
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
SnapshotId string
The ID of the snapshot used to create the volume.
Tags List<VmBlockDeviceMappingBsuTag>
One or more tags associated with the VM.
VolumeSize double
The size of the volume, in gibibytes (GiB).
VolumeType string
DeleteOnVmDeletion bool
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
Iops float64
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
SnapshotId string
The ID of the snapshot used to create the volume.
Tags []VmBlockDeviceMappingBsuTag
One or more tags associated with the VM.
VolumeSize float64
The size of the volume, in gibibytes (GiB).
VolumeType string
deleteOnVmDeletion Boolean
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops Double
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshotId String
The ID of the snapshot used to create the volume.
tags List<VmBlockDeviceMappingBsuTag>
One or more tags associated with the VM.
volumeSize Double
The size of the volume, in gibibytes (GiB).
volumeType String
deleteOnVmDeletion boolean
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops number
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshotId string
The ID of the snapshot used to create the volume.
tags VmBlockDeviceMappingBsuTag[]
One or more tags associated with the VM.
volumeSize number
The size of the volume, in gibibytes (GiB).
volumeType string
delete_on_vm_deletion bool
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops float
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshot_id str
The ID of the snapshot used to create the volume.
tags Sequence[VmBlockDeviceMappingBsuTag]
One or more tags associated with the VM.
volume_size float
The size of the volume, in gibibytes (GiB).
volume_type str
deleteOnVmDeletion Boolean
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops Number
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshotId String
The ID of the snapshot used to create the volume.
tags List<Property Map>
One or more tags associated with the VM.
volumeSize Number
The size of the volume, in gibibytes (GiB).
volumeType String

VmBlockDeviceMappingBsuTag
, VmBlockDeviceMappingBsuTagArgs

Key string
The key of the tag with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
Key string
The key of the tag with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
key String
The key of the tag with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.
key string
The key of the tag with a minimum of 1 character.
value string
The value of the tag, between 0 and 255 characters.
key str
The key of the tag with a minimum of 1 character.
value str
The value of the tag, between 0 and 255 characters.
key String
The key of the tag with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.

VmBlockDeviceMappingsCreated
, VmBlockDeviceMappingsCreatedArgs

Bsus This property is required. List<VmBlockDeviceMappingsCreatedBsus>
Information about the created BSU volume.
DeviceName This property is required. string
The name of the device.
Bsus This property is required. []VmBlockDeviceMappingsCreatedBsus
Information about the created BSU volume.
DeviceName This property is required. string
The name of the device.
bsus This property is required. List<VmBlockDeviceMappingsCreatedBsus>
Information about the created BSU volume.
deviceName This property is required. String
The name of the device.
bsus This property is required. VmBlockDeviceMappingsCreatedBsus[]
Information about the created BSU volume.
deviceName This property is required. string
The name of the device.
bsus This property is required. Sequence[VmBlockDeviceMappingsCreatedBsus]
Information about the created BSU volume.
device_name This property is required. str
The name of the device.
bsus This property is required. List<Property Map>
Information about the created BSU volume.
deviceName This property is required. String
The name of the device.

VmBlockDeviceMappingsCreatedBsus
, VmBlockDeviceMappingsCreatedBsusArgs

DeleteOnVmDeletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
LinkDate This property is required. string
The date and time (UTC) at which the volume was attached to the VM, in ISO 8601 date-time format.
State This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
Tags This property is required. List<VmBlockDeviceMappingsCreatedBsusTag>
A tag to add to this resource. You can specify this argument several times.
VolumeId This property is required. string
The ID of the volume.
DeleteOnVmDeletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
LinkDate This property is required. string
The date and time (UTC) at which the volume was attached to the VM, in ISO 8601 date-time format.
State This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
Tags This property is required. []VmBlockDeviceMappingsCreatedBsusTag
A tag to add to this resource. You can specify this argument several times.
VolumeId This property is required. string
The ID of the volume.
deleteOnVmDeletion This property is required. Boolean
If true, the NIC is deleted when the VM is terminated.
linkDate This property is required. String
The date and time (UTC) at which the volume was attached to the VM, in ISO 8601 date-time format.
state This property is required. String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
tags This property is required. List<VmBlockDeviceMappingsCreatedBsusTag>
A tag to add to this resource. You can specify this argument several times.
volumeId This property is required. String
The ID of the volume.
deleteOnVmDeletion This property is required. boolean
If true, the NIC is deleted when the VM is terminated.
linkDate This property is required. string
The date and time (UTC) at which the volume was attached to the VM, in ISO 8601 date-time format.
state This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
tags This property is required. VmBlockDeviceMappingsCreatedBsusTag[]
A tag to add to this resource. You can specify this argument several times.
volumeId This property is required. string
The ID of the volume.
delete_on_vm_deletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
link_date This property is required. str
The date and time (UTC) at which the volume was attached to the VM, in ISO 8601 date-time format.
state This property is required. str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
tags This property is required. Sequence[VmBlockDeviceMappingsCreatedBsusTag]
A tag to add to this resource. You can specify this argument several times.
volume_id This property is required. str
The ID of the volume.
deleteOnVmDeletion This property is required. Boolean
If true, the NIC is deleted when the VM is terminated.
linkDate This property is required. String
The date and time (UTC) at which the volume was attached to the VM, in ISO 8601 date-time format.
state This property is required. String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
tags This property is required. List<Property Map>
A tag to add to this resource. You can specify this argument several times.
volumeId This property is required. String
The ID of the volume.

VmBlockDeviceMappingsCreatedBsusTag
, VmBlockDeviceMappingsCreatedBsusTagArgs

Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.
key This property is required. string
The key of the tag, with a minimum of 1 character.
value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. str
The key of the tag, with a minimum of 1 character.
value This property is required. str
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.

VmNic
, VmNicArgs

DeviceNumber This property is required. double
The index of the VM device for the NIC attachment (between 1 and 7, both included). This parameter is required if you create a NIC when creating the VM.
AccountId string
The account ID of the owner of the NIC.
DeleteOnVmDeletion bool
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
Description string
The description of the NIC, if you are creating a NIC when creating the VM.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
LinkNics List<VmNicLinkNic>
Information about the network interface card (NIC).
LinkPublicIps List<VmNicLinkPublicIp>
Information about the public IP associated with the NIC.
MacAddress string
The Media Access Control (MAC) address of the NIC.
NetId string
The ID of the Net for the NIC.
NicId string
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
PrivateDnsName string
The name of the private DNS.
PrivateIps List<VmNicPrivateIp>
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
SecondaryPrivateIpCount double
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
SecurityGroupIds List<string>
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
SecurityGroups List<VmNicSecurityGroup>
One or more security groups associated with the VM.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
SubnetId string
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
DeviceNumber This property is required. float64
The index of the VM device for the NIC attachment (between 1 and 7, both included). This parameter is required if you create a NIC when creating the VM.
AccountId string
The account ID of the owner of the NIC.
DeleteOnVmDeletion bool
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
Description string
The description of the NIC, if you are creating a NIC when creating the VM.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
LinkNics []VmNicLinkNic
Information about the network interface card (NIC).
LinkPublicIps []VmNicLinkPublicIp
Information about the public IP associated with the NIC.
MacAddress string
The Media Access Control (MAC) address of the NIC.
NetId string
The ID of the Net for the NIC.
NicId string
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
PrivateDnsName string
The name of the private DNS.
PrivateIps []VmNicPrivateIp
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
SecondaryPrivateIpCount float64
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
SecurityGroupIds []string
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
SecurityGroups []VmNicSecurityGroup
One or more security groups associated with the VM.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
SubnetId string
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
deviceNumber This property is required. Double
The index of the VM device for the NIC attachment (between 1 and 7, both included). This parameter is required if you create a NIC when creating the VM.
accountId String
The account ID of the owner of the NIC.
deleteOnVmDeletion Boolean
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description String
The description of the NIC, if you are creating a NIC when creating the VM.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
linkNics List<VmNicLinkNic>
Information about the network interface card (NIC).
linkPublicIps List<VmNicLinkPublicIp>
Information about the public IP associated with the NIC.
macAddress String
The Media Access Control (MAC) address of the NIC.
netId String
The ID of the Net for the NIC.
nicId String
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
privateDnsName String
The name of the private DNS.
privateIps List<VmNicPrivateIp>
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondaryPrivateIpCount Double
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
securityGroupIds List<String>
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
securityGroups List<VmNicSecurityGroup>
One or more security groups associated with the VM.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId String
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
deviceNumber This property is required. number
The index of the VM device for the NIC attachment (between 1 and 7, both included). This parameter is required if you create a NIC when creating the VM.
accountId string
The account ID of the owner of the NIC.
deleteOnVmDeletion boolean
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description string
The description of the NIC, if you are creating a NIC when creating the VM.
isSourceDestChecked boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
linkNics VmNicLinkNic[]
Information about the network interface card (NIC).
linkPublicIps VmNicLinkPublicIp[]
Information about the public IP associated with the NIC.
macAddress string
The Media Access Control (MAC) address of the NIC.
netId string
The ID of the Net for the NIC.
nicId string
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
privateDnsName string
The name of the private DNS.
privateIps VmNicPrivateIp[]
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondaryPrivateIpCount number
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
securityGroupIds string[]
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
securityGroups VmNicSecurityGroup[]
One or more security groups associated with the VM.
state string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId string
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
device_number This property is required. float
The index of the VM device for the NIC attachment (between 1 and 7, both included). This parameter is required if you create a NIC when creating the VM.
account_id str
The account ID of the owner of the NIC.
delete_on_vm_deletion bool
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description str
The description of the NIC, if you are creating a NIC when creating the VM.
is_source_dest_checked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
link_nics Sequence[VmNicLinkNic]
Information about the network interface card (NIC).
link_public_ips Sequence[VmNicLinkPublicIp]
Information about the public IP associated with the NIC.
mac_address str
The Media Access Control (MAC) address of the NIC.
net_id str
The ID of the Net for the NIC.
nic_id str
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
private_dns_name str
The name of the private DNS.
private_ips Sequence[VmNicPrivateIp]
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondary_private_ip_count float
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
security_group_ids Sequence[str]
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
security_groups Sequence[VmNicSecurityGroup]
One or more security groups associated with the VM.
state str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnet_id str
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
deviceNumber This property is required. Number
The index of the VM device for the NIC attachment (between 1 and 7, both included). This parameter is required if you create a NIC when creating the VM.
accountId String
The account ID of the owner of the NIC.
deleteOnVmDeletion Boolean
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description String
The description of the NIC, if you are creating a NIC when creating the VM.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
linkNics List<Property Map>
Information about the network interface card (NIC).
linkPublicIps List<Property Map>
Information about the public IP associated with the NIC.
macAddress String
The Media Access Control (MAC) address of the NIC.
netId String
The ID of the Net for the NIC.
nicId String
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
privateDnsName String
The name of the private DNS.
privateIps List<Property Map>
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondaryPrivateIpCount Number
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
securityGroupIds List<String>
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
securityGroups List<Property Map>
One or more security groups associated with the VM.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId String
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.

VmNicLinkNic
, VmNicLinkNicArgs

DeleteOnVmDeletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
DeviceNumber This property is required. string
The device index for the NIC attachment (between 1 and 7, both included).
LinkNicId This property is required. string
The ID of the NIC to attach.
State This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
DeleteOnVmDeletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
DeviceNumber This property is required. string
The device index for the NIC attachment (between 1 and 7, both included).
LinkNicId This property is required. string
The ID of the NIC to attach.
State This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
deleteOnVmDeletion This property is required. Boolean
If true, the NIC is deleted when the VM is terminated.
deviceNumber This property is required. String
The device index for the NIC attachment (between 1 and 7, both included).
linkNicId This property is required. String
The ID of the NIC to attach.
state This property is required. String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
deleteOnVmDeletion This property is required. boolean
If true, the NIC is deleted when the VM is terminated.
deviceNumber This property is required. string
The device index for the NIC attachment (between 1 and 7, both included).
linkNicId This property is required. string
The ID of the NIC to attach.
state This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
delete_on_vm_deletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
device_number This property is required. str
The device index for the NIC attachment (between 1 and 7, both included).
link_nic_id This property is required. str
The ID of the NIC to attach.
state This property is required. str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
deleteOnVmDeletion This property is required. Boolean
If true, the NIC is deleted when the VM is terminated.
deviceNumber This property is required. String
The device index for the NIC attachment (between 1 and 7, both included).
linkNicId This property is required. String
The ID of the NIC to attach.
state This property is required. String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.

VmNicLinkPublicIp
, VmNicLinkPublicIpArgs

PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.
publicDnsName This property is required. string
The name of the public DNS.
publicIp This property is required. string
The public IP of the VM.
publicIpAccountId This property is required. string
The account ID of the owner of the public IP.
public_dns_name This property is required. str
The name of the public DNS.
public_ip This property is required. str
The public IP of the VM.
public_ip_account_id This property is required. str
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.

VmNicPrivateIp
, VmNicPrivateIpArgs

IsPrimary bool
If true, the IP is the primary private IP of the NIC.
LinkPublicIps List<VmNicPrivateIpLinkPublicIp>
Information about the public IP associated with the NIC.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The private IP of the NIC.
IsPrimary bool
If true, the IP is the primary private IP of the NIC.
LinkPublicIps []VmNicPrivateIpLinkPublicIp
Information about the public IP associated with the NIC.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The private IP of the NIC.
isPrimary Boolean
If true, the IP is the primary private IP of the NIC.
linkPublicIps List<VmNicPrivateIpLinkPublicIp>
Information about the public IP associated with the NIC.
privateDnsName String
The name of the private DNS.
privateIp String
The private IP of the NIC.
isPrimary boolean
If true, the IP is the primary private IP of the NIC.
linkPublicIps VmNicPrivateIpLinkPublicIp[]
Information about the public IP associated with the NIC.
privateDnsName string
The name of the private DNS.
privateIp string
The private IP of the NIC.
is_primary bool
If true, the IP is the primary private IP of the NIC.
link_public_ips Sequence[VmNicPrivateIpLinkPublicIp]
Information about the public IP associated with the NIC.
private_dns_name str
The name of the private DNS.
private_ip str
The private IP of the NIC.
isPrimary Boolean
If true, the IP is the primary private IP of the NIC.
linkPublicIps List<Property Map>
Information about the public IP associated with the NIC.
privateDnsName String
The name of the private DNS.
privateIp String
The private IP of the NIC.

VmNicPrivateIpLinkPublicIp
, VmNicPrivateIpLinkPublicIpArgs

PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.
publicDnsName This property is required. string
The name of the public DNS.
publicIp This property is required. string
The public IP of the VM.
publicIpAccountId This property is required. string
The account ID of the owner of the public IP.
public_dns_name This property is required. str
The name of the public DNS.
public_ip This property is required. str
The public IP of the VM.
public_ip_account_id This property is required. str
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.

VmNicSecurityGroup
, VmNicSecurityGroupArgs

SecurityGroupId This property is required. string
The ID of the security group.
SecurityGroupName This property is required. string
The name of the security group.
SecurityGroupId This property is required. string
The ID of the security group.
SecurityGroupName This property is required. string
The name of the security group.
securityGroupId This property is required. String
The ID of the security group.
securityGroupName This property is required. String
The name of the security group.
securityGroupId This property is required. string
The ID of the security group.
securityGroupName This property is required. string
The name of the security group.
security_group_id This property is required. str
The ID of the security group.
security_group_name This property is required. str
The name of the security group.
securityGroupId This property is required. String
The ID of the security group.
securityGroupName This property is required. String
The name of the security group.

VmPrimaryNic
, VmPrimaryNicArgs

DeviceNumber This property is required. double
The index of the VM device for the NIC attachment (must be 0). This parameter is required if you create a NIC when creating the VM.
AccountId string
The account ID of the owner of the NIC.
DeleteOnVmDeletion bool
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
Description string
The description of the NIC, if you are creating a NIC when creating the VM.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
LinkNics List<VmPrimaryNicLinkNic>
Information about the network interface card (NIC).
LinkPublicIps List<VmPrimaryNicLinkPublicIp>
Information about the public IP associated with the NIC.
MacAddress string
The Media Access Control (MAC) address of the NIC.
NetId string
The ID of the Net for the NIC.
NicId string
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
PrivateDnsName string
The name of the private DNS.
PrivateIps List<VmPrimaryNicPrivateIp>
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
SecondaryPrivateIpCount double
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
SecurityGroupIds List<string>
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
SecurityGroups List<VmPrimaryNicSecurityGroup>
One or more security groups associated with the VM.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
SubnetId string
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
DeviceNumber This property is required. float64
The index of the VM device for the NIC attachment (must be 0). This parameter is required if you create a NIC when creating the VM.
AccountId string
The account ID of the owner of the NIC.
DeleteOnVmDeletion bool
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
Description string
The description of the NIC, if you are creating a NIC when creating the VM.
IsSourceDestChecked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
LinkNics []VmPrimaryNicLinkNic
Information about the network interface card (NIC).
LinkPublicIps []VmPrimaryNicLinkPublicIp
Information about the public IP associated with the NIC.
MacAddress string
The Media Access Control (MAC) address of the NIC.
NetId string
The ID of the Net for the NIC.
NicId string
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
PrivateDnsName string
The name of the private DNS.
PrivateIps []VmPrimaryNicPrivateIp
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
SecondaryPrivateIpCount float64
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
SecurityGroupIds []string
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
SecurityGroups []VmPrimaryNicSecurityGroup
One or more security groups associated with the VM.
State string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
SubnetId string
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
deviceNumber This property is required. Double
The index of the VM device for the NIC attachment (must be 0). This parameter is required if you create a NIC when creating the VM.
accountId String
The account ID of the owner of the NIC.
deleteOnVmDeletion Boolean
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description String
The description of the NIC, if you are creating a NIC when creating the VM.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
linkNics List<VmPrimaryNicLinkNic>
Information about the network interface card (NIC).
linkPublicIps List<VmPrimaryNicLinkPublicIp>
Information about the public IP associated with the NIC.
macAddress String
The Media Access Control (MAC) address of the NIC.
netId String
The ID of the Net for the NIC.
nicId String
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
privateDnsName String
The name of the private DNS.
privateIps List<VmPrimaryNicPrivateIp>
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondaryPrivateIpCount Double
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
securityGroupIds List<String>
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
securityGroups List<VmPrimaryNicSecurityGroup>
One or more security groups associated with the VM.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId String
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
deviceNumber This property is required. number
The index of the VM device for the NIC attachment (must be 0). This parameter is required if you create a NIC when creating the VM.
accountId string
The account ID of the owner of the NIC.
deleteOnVmDeletion boolean
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description string
The description of the NIC, if you are creating a NIC when creating the VM.
isSourceDestChecked boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
linkNics VmPrimaryNicLinkNic[]
Information about the network interface card (NIC).
linkPublicIps VmPrimaryNicLinkPublicIp[]
Information about the public IP associated with the NIC.
macAddress string
The Media Access Control (MAC) address of the NIC.
netId string
The ID of the Net for the NIC.
nicId string
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
privateDnsName string
The name of the private DNS.
privateIps VmPrimaryNicPrivateIp[]
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondaryPrivateIpCount number
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
securityGroupIds string[]
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
securityGroups VmPrimaryNicSecurityGroup[]
One or more security groups associated with the VM.
state string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId string
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
device_number This property is required. float
The index of the VM device for the NIC attachment (must be 0). This parameter is required if you create a NIC when creating the VM.
account_id str
The account ID of the owner of the NIC.
delete_on_vm_deletion bool
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description str
The description of the NIC, if you are creating a NIC when creating the VM.
is_source_dest_checked bool
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
link_nics Sequence[VmPrimaryNicLinkNic]
Information about the network interface card (NIC).
link_public_ips Sequence[VmPrimaryNicLinkPublicIp]
Information about the public IP associated with the NIC.
mac_address str
The Media Access Control (MAC) address of the NIC.
net_id str
The ID of the Net for the NIC.
nic_id str
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
private_dns_name str
The name of the private DNS.
private_ips Sequence[VmPrimaryNicPrivateIp]
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondary_private_ip_count float
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
security_group_ids Sequence[str]
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
security_groups Sequence[VmPrimaryNicSecurityGroup]
One or more security groups associated with the VM.
state str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnet_id str
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.
deviceNumber This property is required. Number
The index of the VM device for the NIC attachment (must be 0). This parameter is required if you create a NIC when creating the VM.
accountId String
The account ID of the owner of the NIC.
deleteOnVmDeletion Boolean
If true, the NIC is deleted when the VM is terminated. You can specify this parameter only for a new NIC. To modify this value for an existing NIC, see UpdateNic.
description String
The description of the NIC, if you are creating a NIC when creating the VM.
isSourceDestChecked Boolean
(Net only) If true, the source/destination check is enabled. If false, it is disabled.
linkNics List<Property Map>
Information about the network interface card (NIC).
linkPublicIps List<Property Map>
Information about the public IP associated with the NIC.
macAddress String
The Media Access Control (MAC) address of the NIC.
netId String
The ID of the Net for the NIC.
nicId String
The ID of the NIC, if you are attaching an existing NIC when creating a VM.
privateDnsName String
The name of the private DNS.
privateIps List<Property Map>
One or more private IPs to assign to the NIC, if you create a NIC when creating a VM. Only one private IP can be the primary private IP.
secondaryPrivateIpCount Number
The number of secondary private IPs, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP in the private_ips parameter.
securityGroupIds List<String>
One or more IDs of security groups for the NIC, if you create a NIC when creating a VM.
securityGroups List<Property Map>
One or more security groups associated with the VM.
state String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
subnetId String
The ID of the Subnet for the NIC, if you create a NIC when creating a VM. This parameter is required if you create a NIC when creating the VM.

VmPrimaryNicLinkNic
, VmPrimaryNicLinkNicArgs

DeleteOnVmDeletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
DeviceNumber This property is required. string
The device index for the NIC attachment (between 1 and 7, both included).
LinkNicId This property is required. string
The ID of the NIC to attach.
State This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
DeleteOnVmDeletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
DeviceNumber This property is required. string
The device index for the NIC attachment (between 1 and 7, both included).
LinkNicId This property is required. string
The ID of the NIC to attach.
State This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
deleteOnVmDeletion This property is required. Boolean
If true, the NIC is deleted when the VM is terminated.
deviceNumber This property is required. String
The device index for the NIC attachment (between 1 and 7, both included).
linkNicId This property is required. String
The ID of the NIC to attach.
state This property is required. String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
deleteOnVmDeletion This property is required. boolean
If true, the NIC is deleted when the VM is terminated.
deviceNumber This property is required. string
The device index for the NIC attachment (between 1 and 7, both included).
linkNicId This property is required. string
The ID of the NIC to attach.
state This property is required. string
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
delete_on_vm_deletion This property is required. bool
If true, the NIC is deleted when the VM is terminated.
device_number This property is required. str
The device index for the NIC attachment (between 1 and 7, both included).
link_nic_id This property is required. str
The ID of the NIC to attach.
state This property is required. str
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.
deleteOnVmDeletion This property is required. Boolean
If true, the NIC is deleted when the VM is terminated.
deviceNumber This property is required. String
The device index for the NIC attachment (between 1 and 7, both included).
linkNicId This property is required. String
The ID of the NIC to attach.
state This property is required. String
The state of the VM (running | stopped). If set to stopped, the VM is stopped regardless of the value of the vm_initiated_shutdown_behavior argument.

VmPrimaryNicLinkPublicIp
, VmPrimaryNicLinkPublicIpArgs

PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.
publicDnsName This property is required. string
The name of the public DNS.
publicIp This property is required. string
The public IP of the VM.
publicIpAccountId This property is required. string
The account ID of the owner of the public IP.
public_dns_name This property is required. str
The name of the public DNS.
public_ip This property is required. str
The public IP of the VM.
public_ip_account_id This property is required. str
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.

VmPrimaryNicPrivateIp
, VmPrimaryNicPrivateIpArgs

IsPrimary bool
If true, the IP is the primary private IP of the NIC.
LinkPublicIps List<VmPrimaryNicPrivateIpLinkPublicIp>
Information about the public IP associated with the NIC.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The private IP of the NIC.
IsPrimary bool
If true, the IP is the primary private IP of the NIC.
LinkPublicIps []VmPrimaryNicPrivateIpLinkPublicIp
Information about the public IP associated with the NIC.
PrivateDnsName string
The name of the private DNS.
PrivateIp string
The private IP of the NIC.
isPrimary Boolean
If true, the IP is the primary private IP of the NIC.
linkPublicIps List<VmPrimaryNicPrivateIpLinkPublicIp>
Information about the public IP associated with the NIC.
privateDnsName String
The name of the private DNS.
privateIp String
The private IP of the NIC.
isPrimary boolean
If true, the IP is the primary private IP of the NIC.
linkPublicIps VmPrimaryNicPrivateIpLinkPublicIp[]
Information about the public IP associated with the NIC.
privateDnsName string
The name of the private DNS.
privateIp string
The private IP of the NIC.
is_primary bool
If true, the IP is the primary private IP of the NIC.
link_public_ips Sequence[VmPrimaryNicPrivateIpLinkPublicIp]
Information about the public IP associated with the NIC.
private_dns_name str
The name of the private DNS.
private_ip str
The private IP of the NIC.
isPrimary Boolean
If true, the IP is the primary private IP of the NIC.
linkPublicIps List<Property Map>
Information about the public IP associated with the NIC.
privateDnsName String
The name of the private DNS.
privateIp String
The private IP of the NIC.

VmPrimaryNicPrivateIpLinkPublicIp
, VmPrimaryNicPrivateIpLinkPublicIpArgs

PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
PublicDnsName This property is required. string
The name of the public DNS.
PublicIp This property is required. string
The public IP of the VM.
PublicIpAccountId This property is required. string
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.
publicDnsName This property is required. string
The name of the public DNS.
publicIp This property is required. string
The public IP of the VM.
publicIpAccountId This property is required. string
The account ID of the owner of the public IP.
public_dns_name This property is required. str
The name of the public DNS.
public_ip This property is required. str
The public IP of the VM.
public_ip_account_id This property is required. str
The account ID of the owner of the public IP.
publicDnsName This property is required. String
The name of the public DNS.
publicIp This property is required. String
The public IP of the VM.
publicIpAccountId This property is required. String
The account ID of the owner of the public IP.

VmPrimaryNicSecurityGroup
, VmPrimaryNicSecurityGroupArgs

SecurityGroupId This property is required. string
The ID of the security group.
SecurityGroupName This property is required. string
The name of the security group.
SecurityGroupId This property is required. string
The ID of the security group.
SecurityGroupName This property is required. string
The name of the security group.
securityGroupId This property is required. String
The ID of the security group.
securityGroupName This property is required. String
The name of the security group.
securityGroupId This property is required. string
The ID of the security group.
securityGroupName This property is required. string
The name of the security group.
security_group_id This property is required. str
The ID of the security group.
security_group_name This property is required. str
The name of the security group.
securityGroupId This property is required. String
The ID of the security group.
securityGroupName This property is required. String
The name of the security group.

VmSecurityGroup
, VmSecurityGroupArgs

SecurityGroupId This property is required. string
The ID of the security group.
SecurityGroupName This property is required. string
The name of the security group.
SecurityGroupId This property is required. string
The ID of the security group.
SecurityGroupName This property is required. string
The name of the security group.
securityGroupId This property is required. String
The ID of the security group.
securityGroupName This property is required. String
The name of the security group.
securityGroupId This property is required. string
The ID of the security group.
securityGroupName This property is required. string
The name of the security group.
security_group_id This property is required. str
The ID of the security group.
security_group_name This property is required. str
The name of the security group.
securityGroupId This property is required. String
The ID of the security group.
securityGroupName This property is required. String
The name of the security group.

VmTag
, VmTagArgs

Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.
key string
The key of the tag, with a minimum of 1 character.
value string
The value of the tag, between 0 and 255 characters.
key str
The key of the tag, with a minimum of 1 character.
value str
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.

VmTimeouts
, VmTimeoutsArgs

Create string
Delete string
Read string
Update string
Create string
Delete string
Read string
Update string
create String
delete String
read String
update String
create string
delete string
read string
update string
create str
delete str
read str
update str
create String
delete String
read String
update String

Import

A VM can be imported using its ID. For example:

console

$ pulumi import outscale:index/vm:Vm ImportedVm i-12345678
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.