1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. Instance
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
ucloud
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    // Query default security group
    const _default = ucloud.getSecurityGroups({
        type: "recommend_web",
    });
    // Query normal image
    const normal = ucloud.getImages({
        availabilityZone: "cn-bj2-03",
        nameRegex: "^CentOS 6.5 64",
        imageType: "base",
    });
    // Create normal instance
    const normalInstance = new ucloud.Instance("normal", {
        availabilityZone: "cn-bj2-03",
        imageId: normal.then(normal => normal.images?.[0]?.id),
        instanceType: "n-basic-2",
        rootPassword: "wA1234567",
        name: "tf-example-normal-instance",
        tag: "tf-example",
        bootDiskType: "cloud_ssd",
        securityGroup: _default.then(_default => _default.securityGroups?.[0]?.id),
        dataDisks: {
            size: 20,
            type: "cloud_ssd",
        },
        deleteDisksWithInstance: true,
    });
    // Create instance with key pair login
    const keypair = new ucloud.Instance("keypair", {
        availabilityZone: "cn-bj2-03",
        imageId: normal.then(normal => normal.images?.[0]?.id),
        instanceType: "n-basic-2",
        name: "tf-example-keypair-instance",
        tag: "tf-example",
        bootDiskType: "cloud_ssd",
        loginMode: "KeyPair",
        keyPairId: "keypair-xxxxx",
        securityGroup: _default.then(_default => _default.securityGroups?.[0]?.id),
    });
    // Create instance in SecGroup mode
    const secgroup = new ucloud.Instance("secgroup", {
        availabilityZone: "cn-bj2-03",
        imageId: normal.then(normal => normal.images?.[0]?.id),
        instanceType: "n-basic-2",
        rootPassword: "wA1234567",
        name: "tf-example-secgroup-instance",
        tag: "tf-example",
        bootDiskType: "cloud_ssd",
        securityMode: "SecGroup",
        secGroupIds: [{
            id: "secgroup-xxxxx",
            priority: 1,
        }],
    });
    // Query outstanding image
    const outstanding = ucloud.getImages({
        availabilityZone: "cn-bj2-03",
        nameRegex: "^高内核CentOS 7.6 64",
        imageType: "base",
    });
    // Create outstanding instance
    const outstandingInstance = new ucloud.Instance("outstanding", {
        availabilityZone: "cn-bj2-03",
        imageId: outstanding.then(outstanding => outstanding.images?.[0]?.id),
        instanceType: "o-basic-4",
        rootPassword: "wA1234567",
        name: "tf-example-outstanding-instance",
        tag: "tf-example",
        bootDiskType: "cloud_rssd",
        securityGroup: _default.then(_default => _default.securityGroups?.[0]?.id),
        dataDisks: {
            size: 20,
            type: "cloud_rssd",
        },
        deleteDisksWithInstance: true,
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    # Query default security group
    default = ucloud.get_security_groups(type="recommend_web")
    # Query normal image
    normal = ucloud.get_images(availability_zone="cn-bj2-03",
        name_regex="^CentOS 6.5 64",
        image_type="base")
    # Create normal instance
    normal_instance = ucloud.Instance("normal",
        availability_zone="cn-bj2-03",
        image_id=normal.images[0].id,
        instance_type="n-basic-2",
        root_password="wA1234567",
        name="tf-example-normal-instance",
        tag="tf-example",
        boot_disk_type="cloud_ssd",
        security_group=default.security_groups[0].id,
        data_disks={
            "size": 20,
            "type": "cloud_ssd",
        },
        delete_disks_with_instance=True)
    # Create instance with key pair login
    keypair = ucloud.Instance("keypair",
        availability_zone="cn-bj2-03",
        image_id=normal.images[0].id,
        instance_type="n-basic-2",
        name="tf-example-keypair-instance",
        tag="tf-example",
        boot_disk_type="cloud_ssd",
        login_mode="KeyPair",
        key_pair_id="keypair-xxxxx",
        security_group=default.security_groups[0].id)
    # Create instance in SecGroup mode
    secgroup = ucloud.Instance("secgroup",
        availability_zone="cn-bj2-03",
        image_id=normal.images[0].id,
        instance_type="n-basic-2",
        root_password="wA1234567",
        name="tf-example-secgroup-instance",
        tag="tf-example",
        boot_disk_type="cloud_ssd",
        security_mode="SecGroup",
        sec_group_ids=[{
            "id": "secgroup-xxxxx",
            "priority": 1,
        }])
    # Query outstanding image
    outstanding = ucloud.get_images(availability_zone="cn-bj2-03",
        name_regex="^高内核CentOS 7.6 64",
        image_type="base")
    # Create outstanding instance
    outstanding_instance = ucloud.Instance("outstanding",
        availability_zone="cn-bj2-03",
        image_id=outstanding.images[0].id,
        instance_type="o-basic-4",
        root_password="wA1234567",
        name="tf-example-outstanding-instance",
        tag="tf-example",
        boot_disk_type="cloud_rssd",
        security_group=default.security_groups[0].id,
        data_disks={
            "size": 20,
            "type": "cloud_rssd",
        },
        delete_disks_with_instance=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Query default security group
    		_default, err := ucloud.GetSecurityGroups(ctx, &ucloud.GetSecurityGroupsArgs{
    			Type: pulumi.StringRef("recommend_web"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Query normal image
    		normal, err := ucloud.GetImages(ctx, &ucloud.GetImagesArgs{
    			AvailabilityZone: pulumi.StringRef("cn-bj2-03"),
    			NameRegex:        pulumi.StringRef("^CentOS 6.5 64"),
    			ImageType:        pulumi.StringRef("base"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Create normal instance
    		_, err = ucloud.NewInstance(ctx, "normal", &ucloud.InstanceArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-03"),
    			ImageId:          pulumi.String(normal.Images[0].Id),
    			InstanceType:     pulumi.String("n-basic-2"),
    			RootPassword:     pulumi.String("wA1234567"),
    			Name:             pulumi.String("tf-example-normal-instance"),
    			Tag:              pulumi.String("tf-example"),
    			BootDiskType:     pulumi.String("cloud_ssd"),
    			SecurityGroup:    pulumi.String(_default.SecurityGroups[0].Id),
    			DataDisks: &ucloud.InstanceDataDisksArgs{
    				Size: pulumi.Float64(20),
    				Type: pulumi.String("cloud_ssd"),
    			},
    			DeleteDisksWithInstance: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// Create instance with key pair login
    		_, err = ucloud.NewInstance(ctx, "keypair", &ucloud.InstanceArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-03"),
    			ImageId:          pulumi.String(normal.Images[0].Id),
    			InstanceType:     pulumi.String("n-basic-2"),
    			Name:             pulumi.String("tf-example-keypair-instance"),
    			Tag:              pulumi.String("tf-example"),
    			BootDiskType:     pulumi.String("cloud_ssd"),
    			LoginMode:        pulumi.String("KeyPair"),
    			KeyPairId:        pulumi.String("keypair-xxxxx"),
    			SecurityGroup:    pulumi.String(_default.SecurityGroups[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		// Create instance in SecGroup mode
    		_, err = ucloud.NewInstance(ctx, "secgroup", &ucloud.InstanceArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-03"),
    			ImageId:          pulumi.String(normal.Images[0].Id),
    			InstanceType:     pulumi.String("n-basic-2"),
    			RootPassword:     pulumi.String("wA1234567"),
    			Name:             pulumi.String("tf-example-secgroup-instance"),
    			Tag:              pulumi.String("tf-example"),
    			BootDiskType:     pulumi.String("cloud_ssd"),
    			SecurityMode:     pulumi.String("SecGroup"),
    			SecGroupIds: ucloud.InstanceSecGroupIdArray{
    				&ucloud.InstanceSecGroupIdArgs{
    					Id:       pulumi.String("secgroup-xxxxx"),
    					Priority: pulumi.Float64(1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Query outstanding image
    		outstanding, err := ucloud.GetImages(ctx, &ucloud.GetImagesArgs{
    			AvailabilityZone: pulumi.StringRef("cn-bj2-03"),
    			NameRegex:        pulumi.StringRef("^高内核CentOS 7.6 64"),
    			ImageType:        pulumi.StringRef("base"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Create outstanding instance
    		_, err = ucloud.NewInstance(ctx, "outstanding", &ucloud.InstanceArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-03"),
    			ImageId:          pulumi.String(outstanding.Images[0].Id),
    			InstanceType:     pulumi.String("o-basic-4"),
    			RootPassword:     pulumi.String("wA1234567"),
    			Name:             pulumi.String("tf-example-outstanding-instance"),
    			Tag:              pulumi.String("tf-example"),
    			BootDiskType:     pulumi.String("cloud_rssd"),
    			SecurityGroup:    pulumi.String(_default.SecurityGroups[0].Id),
    			DataDisks: &ucloud.InstanceDataDisksArgs{
    				Size: pulumi.Float64(20),
    				Type: pulumi.String("cloud_rssd"),
    			},
    			DeleteDisksWithInstance: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        // Query default security group
        var @default = Ucloud.GetSecurityGroups.Invoke(new()
        {
            Type = "recommend_web",
        });
    
        // Query normal image
        var normal = Ucloud.GetImages.Invoke(new()
        {
            AvailabilityZone = "cn-bj2-03",
            NameRegex = "^CentOS 6.5 64",
            ImageType = "base",
        });
    
        // Create normal instance
        var normalInstance = new Ucloud.Instance("normal", new()
        {
            AvailabilityZone = "cn-bj2-03",
            ImageId = normal.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = "n-basic-2",
            RootPassword = "wA1234567",
            Name = "tf-example-normal-instance",
            Tag = "tf-example",
            BootDiskType = "cloud_ssd",
            SecurityGroup = @default.Apply(@default => @default.Apply(getSecurityGroupsResult => getSecurityGroupsResult.SecurityGroups[0]?.Id)),
            DataDisks = new Ucloud.Inputs.InstanceDataDisksArgs
            {
                Size = 20,
                Type = "cloud_ssd",
            },
            DeleteDisksWithInstance = true,
        });
    
        // Create instance with key pair login
        var keypair = new Ucloud.Instance("keypair", new()
        {
            AvailabilityZone = "cn-bj2-03",
            ImageId = normal.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = "n-basic-2",
            Name = "tf-example-keypair-instance",
            Tag = "tf-example",
            BootDiskType = "cloud_ssd",
            LoginMode = "KeyPair",
            KeyPairId = "keypair-xxxxx",
            SecurityGroup = @default.Apply(@default => @default.Apply(getSecurityGroupsResult => getSecurityGroupsResult.SecurityGroups[0]?.Id)),
        });
    
        // Create instance in SecGroup mode
        var secgroup = new Ucloud.Instance("secgroup", new()
        {
            AvailabilityZone = "cn-bj2-03",
            ImageId = normal.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = "n-basic-2",
            RootPassword = "wA1234567",
            Name = "tf-example-secgroup-instance",
            Tag = "tf-example",
            BootDiskType = "cloud_ssd",
            SecurityMode = "SecGroup",
            SecGroupIds = new[]
            {
                new Ucloud.Inputs.InstanceSecGroupIdArgs
                {
                    Id = "secgroup-xxxxx",
                    Priority = 1,
                },
            },
        });
    
        // Query outstanding image
        var outstanding = Ucloud.GetImages.Invoke(new()
        {
            AvailabilityZone = "cn-bj2-03",
            NameRegex = "^高内核CentOS 7.6 64",
            ImageType = "base",
        });
    
        // Create outstanding instance
        var outstandingInstance = new Ucloud.Instance("outstanding", new()
        {
            AvailabilityZone = "cn-bj2-03",
            ImageId = outstanding.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = "o-basic-4",
            RootPassword = "wA1234567",
            Name = "tf-example-outstanding-instance",
            Tag = "tf-example",
            BootDiskType = "cloud_rssd",
            SecurityGroup = @default.Apply(@default => @default.Apply(getSecurityGroupsResult => getSecurityGroupsResult.SecurityGroups[0]?.Id)),
            DataDisks = new Ucloud.Inputs.InstanceDataDisksArgs
            {
                Size = 20,
                Type = "cloud_rssd",
            },
            DeleteDisksWithInstance = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.UcloudFunctions;
    import com.pulumi.ucloud.inputs.GetSecurityGroupsArgs;
    import com.pulumi.ucloud.inputs.GetImagesArgs;
    import com.pulumi.ucloud.Instance;
    import com.pulumi.ucloud.InstanceArgs;
    import com.pulumi.ucloud.inputs.InstanceDataDisksArgs;
    import com.pulumi.ucloud.inputs.InstanceSecGroupIdArgs;
    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) {
            // Query default security group
            final var default = UcloudFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
                .type("recommend_web")
                .build());
    
            // Query normal image
            final var normal = UcloudFunctions.getImages(GetImagesArgs.builder()
                .availabilityZone("cn-bj2-03")
                .nameRegex("^CentOS 6.5 64")
                .imageType("base")
                .build());
    
            // Create normal instance
            var normalInstance = new Instance("normalInstance", InstanceArgs.builder()
                .availabilityZone("cn-bj2-03")
                .imageId(normal.images()[0].id())
                .instanceType("n-basic-2")
                .rootPassword("wA1234567")
                .name("tf-example-normal-instance")
                .tag("tf-example")
                .bootDiskType("cloud_ssd")
                .securityGroup(default_.securityGroups()[0].id())
                .dataDisks(InstanceDataDisksArgs.builder()
                    .size(20.0)
                    .type("cloud_ssd")
                    .build())
                .deleteDisksWithInstance(true)
                .build());
    
            // Create instance with key pair login
            var keypair = new Instance("keypair", InstanceArgs.builder()
                .availabilityZone("cn-bj2-03")
                .imageId(normal.images()[0].id())
                .instanceType("n-basic-2")
                .name("tf-example-keypair-instance")
                .tag("tf-example")
                .bootDiskType("cloud_ssd")
                .loginMode("KeyPair")
                .keyPairId("keypair-xxxxx")
                .securityGroup(default_.securityGroups()[0].id())
                .build());
    
            // Create instance in SecGroup mode
            var secgroup = new Instance("secgroup", InstanceArgs.builder()
                .availabilityZone("cn-bj2-03")
                .imageId(normal.images()[0].id())
                .instanceType("n-basic-2")
                .rootPassword("wA1234567")
                .name("tf-example-secgroup-instance")
                .tag("tf-example")
                .bootDiskType("cloud_ssd")
                .securityMode("SecGroup")
                .secGroupIds(InstanceSecGroupIdArgs.builder()
                    .id("secgroup-xxxxx")
                    .priority(1.0)
                    .build())
                .build());
    
            // Query outstanding image
            final var outstanding = UcloudFunctions.getImages(GetImagesArgs.builder()
                .availabilityZone("cn-bj2-03")
                .nameRegex("^高内核CentOS 7.6 64")
                .imageType("base")
                .build());
    
            // Create outstanding instance
            var outstandingInstance = new Instance("outstandingInstance", InstanceArgs.builder()
                .availabilityZone("cn-bj2-03")
                .imageId(outstanding.images()[0].id())
                .instanceType("o-basic-4")
                .rootPassword("wA1234567")
                .name("tf-example-outstanding-instance")
                .tag("tf-example")
                .bootDiskType("cloud_rssd")
                .securityGroup(default_.securityGroups()[0].id())
                .dataDisks(InstanceDataDisksArgs.builder()
                    .size(20.0)
                    .type("cloud_rssd")
                    .build())
                .deleteDisksWithInstance(true)
                .build());
    
        }
    }
    
    resources:
      # Create normal instance
      normalInstance:
        type: ucloud:Instance
        name: normal
        properties:
          availabilityZone: cn-bj2-03
          imageId: ${normal.images[0].id}
          instanceType: n-basic-2
          rootPassword: wA1234567
          name: tf-example-normal-instance
          tag: tf-example
          bootDiskType: cloud_ssd
          securityGroup: ${default.securityGroups[0].id}
          dataDisks:
            size: 20
            type: cloud_ssd
          deleteDisksWithInstance: true
      # Create instance with key pair login
      keypair:
        type: ucloud:Instance
        properties:
          availabilityZone: cn-bj2-03
          imageId: ${normal.images[0].id}
          instanceType: n-basic-2
          name: tf-example-keypair-instance
          tag: tf-example
          bootDiskType: cloud_ssd
          loginMode: KeyPair
          keyPairId: keypair-xxxxx
          securityGroup: ${default.securityGroups[0].id}
      # Create instance in SecGroup mode
      secgroup:
        type: ucloud:Instance
        properties:
          availabilityZone: cn-bj2-03
          imageId: ${normal.images[0].id}
          instanceType: n-basic-2
          rootPassword: wA1234567
          name: tf-example-secgroup-instance
          tag: tf-example
          bootDiskType: cloud_ssd
          securityMode: SecGroup
          secGroupIds:
            - id: secgroup-xxxxx
              priority: 1
      # Create outstanding instance
      outstandingInstance:
        type: ucloud:Instance
        name: outstanding
        properties:
          availabilityZone: cn-bj2-03
          imageId: ${outstanding.images[0].id}
          instanceType: o-basic-4
          rootPassword: wA1234567
          name: tf-example-outstanding-instance
          tag: tf-example
          bootDiskType: cloud_rssd
          securityGroup: ${default.securityGroups[0].id}
          dataDisks:
            size: 20
            type: cloud_rssd
          deleteDisksWithInstance: true
    variables:
      # Query default security group
      default:
        fn::invoke:
          function: ucloud:getSecurityGroups
          arguments:
            type: recommend_web
      # Query normal image
      normal:
        fn::invoke:
          function: ucloud:getImages
          arguments:
            availabilityZone: cn-bj2-03
            nameRegex: ^CentOS 6.5 64
            imageType: base
      # Query outstanding image
      outstanding:
        fn::invoke:
          function: ucloud:getImages
          arguments:
            availabilityZone: cn-bj2-03
            nameRegex: ^高内核CentOS 7.6 64
            imageType: base
    
    Example coming soon!
    

    Create Instance Resource

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

    Constructor syntax

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 args: InstanceArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 availability_zone: Optional[str] = None,
                 instance_type: Optional[str] = None,
                 image_id: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 auto_start: Optional[bool] = None,
                 boot_disk_size: Optional[float] = None,
                 boot_disk_type: Optional[str] = None,
                 charge_type: Optional[str] = None,
                 coupon_id: Optional[str] = None,
                 data_disk_size: Optional[float] = None,
                 data_disk_type: Optional[str] = None,
                 data_disks: Optional[InstanceDataDisksArgs] = None,
                 delete_disks_with_instance: Optional[bool] = None,
                 delete_eips_with_instance: Optional[bool] = None,
                 deletion_protection: Optional[bool] = None,
                 disk_password: Optional[str] = None,
                 duration: Optional[float] = None,
                 gpu: Optional[float] = None,
                 gpu_type: Optional[str] = None,
                 host_binding: Optional[bool] = None,
                 hotplug_feature: Optional[bool] = None,
                 auto_data_disk_init: Optional[str] = None,
                 alarm_template_id: Optional[float] = None,
                 key_pair_id: Optional[str] = None,
                 allow_stopping_for_update: Optional[bool] = None,
                 isolation_group: Optional[str] = None,
                 labels: Optional[Mapping[str, str]] = None,
                 login_mode: Optional[str] = None,
                 min_cpu_platform: Optional[str] = None,
                 name: Optional[str] = None,
                 net_capability: Optional[str] = None,
                 network_interface: Optional[InstanceNetworkInterfaceArgs] = None,
                 private_ip: Optional[str] = None,
                 remark: Optional[str] = None,
                 root_password: Optional[str] = None,
                 sec_group_ids: Optional[Sequence[InstanceSecGroupIdArgs]] = None,
                 security_group: Optional[str] = None,
                 security_mode: Optional[str] = None,
                 subnet_id: Optional[str] = None,
                 tag: Optional[str] = None,
                 timeouts: Optional[InstanceTimeoutsArgs] = None,
                 udhost_id: Optional[str] = None,
                 udset_id: Optional[str] = None,
                 uhost_family: Optional[str] = None,
                 uni_feature: Optional[bool] = None,
                 user_data: Optional[str] = None,
                 vpc_id: Optional[str] = None)
    func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
    public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
    public Instance(String name, InstanceArgs args)
    public Instance(String name, InstanceArgs args, CustomResourceOptions options)
    
    type: ucloud:Instance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ucloud_instance" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    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 instanceResource = new Ucloud.Instance("instanceResource", new()
    {
        AvailabilityZone = "string",
        InstanceType = "string",
        ImageId = "string",
        InstanceId = "string",
        AutoStart = false,
        BootDiskSize = 0.0,
        BootDiskType = "string",
        ChargeType = "string",
        CouponId = "string",
        DataDiskSize = 0.0,
        DataDiskType = "string",
        DataDisks = new Ucloud.Inputs.InstanceDataDisksArgs
        {
            Size = 0.0,
            Type = "string",
        },
        DeleteDisksWithInstance = false,
        DeleteEipsWithInstance = false,
        DeletionProtection = false,
        DiskPassword = "string",
        Duration = 0.0,
        Gpu = 0.0,
        GpuType = "string",
        HostBinding = false,
        HotplugFeature = false,
        AutoDataDiskInit = "string",
        AlarmTemplateId = 0.0,
        KeyPairId = "string",
        AllowStoppingForUpdate = false,
        IsolationGroup = "string",
        Labels = 
        {
            { "string", "string" },
        },
        LoginMode = "string",
        MinCpuPlatform = "string",
        Name = "string",
        NetCapability = "string",
        NetworkInterface = new Ucloud.Inputs.InstanceNetworkInterfaceArgs
        {
            EipBandwidth = 0.0,
            EipChargeMode = "string",
            EipInternetType = "string",
        },
        PrivateIp = "string",
        Remark = "string",
        RootPassword = "string",
        SecGroupIds = new[]
        {
            new Ucloud.Inputs.InstanceSecGroupIdArgs
            {
                Id = "string",
                Priority = 0.0,
            },
        },
        SecurityGroup = "string",
        SecurityMode = "string",
        SubnetId = "string",
        Tag = "string",
        Timeouts = new Ucloud.Inputs.InstanceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        UdhostId = "string",
        UdsetId = "string",
        UhostFamily = "string",
        UniFeature = false,
        UserData = "string",
        VpcId = "string",
    });
    
    example, err := ucloud.NewInstance(ctx, "instanceResource", &ucloud.InstanceArgs{
    	AvailabilityZone: pulumi.String("string"),
    	InstanceType:     pulumi.String("string"),
    	ImageId:          pulumi.String("string"),
    	InstanceId:       pulumi.String("string"),
    	AutoStart:        pulumi.Bool(false),
    	BootDiskSize:     pulumi.Float64(0),
    	BootDiskType:     pulumi.String("string"),
    	ChargeType:       pulumi.String("string"),
    	CouponId:         pulumi.String("string"),
    	DataDiskSize:     pulumi.Float64(0),
    	DataDiskType:     pulumi.String("string"),
    	DataDisks: &ucloud.InstanceDataDisksArgs{
    		Size: pulumi.Float64(0),
    		Type: pulumi.String("string"),
    	},
    	DeleteDisksWithInstance: pulumi.Bool(false),
    	DeleteEipsWithInstance:  pulumi.Bool(false),
    	DeletionProtection:      pulumi.Bool(false),
    	DiskPassword:            pulumi.String("string"),
    	Duration:                pulumi.Float64(0),
    	Gpu:                     pulumi.Float64(0),
    	GpuType:                 pulumi.String("string"),
    	HostBinding:             pulumi.Bool(false),
    	HotplugFeature:          pulumi.Bool(false),
    	AutoDataDiskInit:        pulumi.String("string"),
    	AlarmTemplateId:         pulumi.Float64(0),
    	KeyPairId:               pulumi.String("string"),
    	AllowStoppingForUpdate:  pulumi.Bool(false),
    	IsolationGroup:          pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	LoginMode:      pulumi.String("string"),
    	MinCpuPlatform: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	NetCapability:  pulumi.String("string"),
    	NetworkInterface: &ucloud.InstanceNetworkInterfaceArgs{
    		EipBandwidth:    pulumi.Float64(0),
    		EipChargeMode:   pulumi.String("string"),
    		EipInternetType: pulumi.String("string"),
    	},
    	PrivateIp:    pulumi.String("string"),
    	Remark:       pulumi.String("string"),
    	RootPassword: pulumi.String("string"),
    	SecGroupIds: ucloud.InstanceSecGroupIdArray{
    		&ucloud.InstanceSecGroupIdArgs{
    			Id:       pulumi.String("string"),
    			Priority: pulumi.Float64(0),
    		},
    	},
    	SecurityGroup: pulumi.String("string"),
    	SecurityMode:  pulumi.String("string"),
    	SubnetId:      pulumi.String("string"),
    	Tag:           pulumi.String("string"),
    	Timeouts: &ucloud.InstanceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	UdhostId:    pulumi.String("string"),
    	UdsetId:     pulumi.String("string"),
    	UhostFamily: pulumi.String("string"),
    	UniFeature:  pulumi.Bool(false),
    	UserData:    pulumi.String("string"),
    	VpcId:       pulumi.String("string"),
    })
    
    resource "ucloud_instance" "instanceResource" {
      lifecycle {
        create_before_destroy = true
      }
      availability_zone = "string"
      instance_type     = "string"
      image_id          = "string"
      instance_id       = "string"
      auto_start        = false
      boot_disk_size    = 0
      boot_disk_type    = "string"
      charge_type       = "string"
      coupon_id         = "string"
      data_disk_size    = 0
      data_disk_type    = "string"
      data_disks = {
        size = 0
        type = "string"
      }
      delete_disks_with_instance = false
      delete_eips_with_instance  = false
      deletion_protection        = false
      disk_password              = "string"
      duration                   = 0
      gpu                        = 0
      gpu_type                   = "string"
      host_binding               = false
      hotplug_feature            = false
      auto_data_disk_init        = "string"
      alarm_template_id          = 0
      key_pair_id                = "string"
      allow_stopping_for_update  = false
      isolation_group            = "string"
      labels = {
        "string" = "string"
      }
      login_mode       = "string"
      min_cpu_platform = "string"
      name             = "string"
      net_capability   = "string"
      network_interface = {
        eip_bandwidth     = 0
        eip_charge_mode   = "string"
        eip_internet_type = "string"
      }
      private_ip    = "string"
      remark        = "string"
      root_password = "string"
      sec_group_ids {
        id       = "string"
        priority = 0
      }
      security_group = "string"
      security_mode  = "string"
      subnet_id      = "string"
      tag            = "string"
      _ {
        timeouts = {
          create = "string"
          delete = "string"
          update = "string"
        }
      }
      udhost_id    = "string"
      udset_id     = "string"
      uhost_family = "string"
      uni_feature  = false
      user_data    = "string"
      vpc_id       = "string"
    }
    
    var instanceResource = new Instance("instanceResource", InstanceArgs.builder()
        .availabilityZone("string")
        .instanceType("string")
        .imageId("string")
        .instanceId("string")
        .autoStart(false)
        .bootDiskSize(0.0)
        .bootDiskType("string")
        .chargeType("string")
        .couponId("string")
        .dataDiskSize(0.0)
        .dataDiskType("string")
        .dataDisks(InstanceDataDisksArgs.builder()
            .size(0.0)
            .type("string")
            .build())
        .deleteDisksWithInstance(false)
        .deleteEipsWithInstance(false)
        .deletionProtection(false)
        .diskPassword("string")
        .duration(0.0)
        .gpu(0.0)
        .gpuType("string")
        .hostBinding(false)
        .hotplugFeature(false)
        .autoDataDiskInit("string")
        .alarmTemplateId(0.0)
        .keyPairId("string")
        .allowStoppingForUpdate(false)
        .isolationGroup("string")
        .labels(Map.of("string", "string"))
        .loginMode("string")
        .minCpuPlatform("string")
        .name("string")
        .netCapability("string")
        .networkInterface(InstanceNetworkInterfaceArgs.builder()
            .eipBandwidth(0.0)
            .eipChargeMode("string")
            .eipInternetType("string")
            .build())
        .privateIp("string")
        .remark("string")
        .rootPassword("string")
        .secGroupIds(InstanceSecGroupIdArgs.builder()
            .id("string")
            .priority(0.0)
            .build())
        .securityGroup("string")
        .securityMode("string")
        .subnetId("string")
        .tag("string")
        .timeouts(InstanceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .udhostId("string")
        .udsetId("string")
        .uhostFamily("string")
        .uniFeature(false)
        .userData("string")
        .vpcId("string")
        .build());
    
    instance_resource = ucloud.Instance("instanceResource",
        availability_zone="string",
        instance_type="string",
        image_id="string",
        instance_id="string",
        auto_start=False,
        boot_disk_size=float(0),
        boot_disk_type="string",
        charge_type="string",
        coupon_id="string",
        data_disk_size=float(0),
        data_disk_type="string",
        data_disks={
            "size": float(0),
            "type": "string",
        },
        delete_disks_with_instance=False,
        delete_eips_with_instance=False,
        deletion_protection=False,
        disk_password="string",
        duration=float(0),
        gpu=float(0),
        gpu_type="string",
        host_binding=False,
        hotplug_feature=False,
        auto_data_disk_init="string",
        alarm_template_id=float(0),
        key_pair_id="string",
        allow_stopping_for_update=False,
        isolation_group="string",
        labels={
            "string": "string",
        },
        login_mode="string",
        min_cpu_platform="string",
        name="string",
        net_capability="string",
        network_interface={
            "eip_bandwidth": float(0),
            "eip_charge_mode": "string",
            "eip_internet_type": "string",
        },
        private_ip="string",
        remark="string",
        root_password="string",
        sec_group_ids=[{
            "id": "string",
            "priority": float(0),
        }],
        security_group="string",
        security_mode="string",
        subnet_id="string",
        tag="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        udhost_id="string",
        udset_id="string",
        uhost_family="string",
        uni_feature=False,
        user_data="string",
        vpc_id="string")
    
    const instanceResource = new ucloud.Instance("instanceResource", {
        availabilityZone: "string",
        instanceType: "string",
        imageId: "string",
        instanceId: "string",
        autoStart: false,
        bootDiskSize: 0,
        bootDiskType: "string",
        chargeType: "string",
        couponId: "string",
        dataDiskSize: 0,
        dataDiskType: "string",
        dataDisks: {
            size: 0,
            type: "string",
        },
        deleteDisksWithInstance: false,
        deleteEipsWithInstance: false,
        deletionProtection: false,
        diskPassword: "string",
        duration: 0,
        gpu: 0,
        gpuType: "string",
        hostBinding: false,
        hotplugFeature: false,
        autoDataDiskInit: "string",
        alarmTemplateId: 0,
        keyPairId: "string",
        allowStoppingForUpdate: false,
        isolationGroup: "string",
        labels: {
            string: "string",
        },
        loginMode: "string",
        minCpuPlatform: "string",
        name: "string",
        netCapability: "string",
        networkInterface: {
            eipBandwidth: 0,
            eipChargeMode: "string",
            eipInternetType: "string",
        },
        privateIp: "string",
        remark: "string",
        rootPassword: "string",
        secGroupIds: [{
            id: "string",
            priority: 0,
        }],
        securityGroup: "string",
        securityMode: "string",
        subnetId: "string",
        tag: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        udhostId: "string",
        udsetId: "string",
        uhostFamily: "string",
        uniFeature: false,
        userData: "string",
        vpcId: "string",
    });
    
    type: ucloud:Instance
    properties:
        alarmTemplateId: 0
        allowStoppingForUpdate: false
        autoDataDiskInit: string
        autoStart: false
        availabilityZone: string
        bootDiskSize: 0
        bootDiskType: string
        chargeType: string
        couponId: string
        dataDiskSize: 0
        dataDiskType: string
        dataDisks:
            size: 0
            type: string
        deleteDisksWithInstance: false
        deleteEipsWithInstance: false
        deletionProtection: false
        diskPassword: string
        duration: 0
        gpu: 0
        gpuType: string
        hostBinding: false
        hotplugFeature: false
        imageId: string
        instanceId: string
        instanceType: string
        isolationGroup: string
        keyPairId: string
        labels:
            string: string
        loginMode: string
        minCpuPlatform: string
        name: string
        netCapability: string
        networkInterface:
            eipBandwidth: 0
            eipChargeMode: string
            eipInternetType: string
        privateIp: string
        remark: string
        rootPassword: string
        secGroupIds:
            - id: string
              priority: 0
        securityGroup: string
        securityMode: string
        subnetId: string
        tag: string
        timeouts:
            create: string
            delete: string
            update: string
        udhostId: string
        udsetId: string
        uhostFamily: string
        uniFeature: false
        userData: string
        vpcId: string
    

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

    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    ImageId string
    The ID for the image to use for the instance.
    InstanceType string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    AlarmTemplateId double
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    AllowStoppingForUpdate bool
    AutoDataDiskInit string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    AutoStart bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    BootDiskSize double

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CouponId string
    The ID of the host coupon to use for payment.
    DataDiskSize double

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    DataDisks InstanceDataDisks
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    DeleteDisksWithInstance bool
    DeleteEipsWithInstance bool
    DeletionProtection bool
    DiskPassword string
    Duration double
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    Gpu double
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    GpuType string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    HostBinding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    HotplugFeature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    InstanceId string
    The ID of disk.
    IsolationGroup string
    The ID of the associated isolation group.
    KeyPairId string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    Labels Dictionary<string, string>
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    LoginMode string
    MinCpuPlatform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    Name string
    NetCapability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    NetworkInterface InstanceNetworkInterface
    PrivateIp string
    The private IP address assigned to the instance.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecGroupIds List<InstanceSecGroupId>
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    SecurityGroup string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    SecurityMode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    Timeouts InstanceTimeouts
    UdhostId string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    UdsetId string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    UhostFamily string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    UniFeature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    UserData string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    ImageId string
    The ID for the image to use for the instance.
    InstanceType string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    AlarmTemplateId float64
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    AllowStoppingForUpdate bool
    AutoDataDiskInit string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    AutoStart bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    BootDiskSize float64

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CouponId string
    The ID of the host coupon to use for payment.
    DataDiskSize float64

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    DataDisks InstanceDataDisksArgs
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    DeleteDisksWithInstance bool
    DeleteEipsWithInstance bool
    DeletionProtection bool
    DiskPassword string
    Duration float64
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    Gpu float64
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    GpuType string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    HostBinding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    HotplugFeature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    InstanceId string
    The ID of disk.
    IsolationGroup string
    The ID of the associated isolation group.
    KeyPairId string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    Labels map[string]string
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    LoginMode string
    MinCpuPlatform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    Name string
    NetCapability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    NetworkInterface InstanceNetworkInterfaceArgs
    PrivateIp string
    The private IP address assigned to the instance.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecGroupIds []InstanceSecGroupIdArgs
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    SecurityGroup string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    SecurityMode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    Timeouts InstanceTimeoutsArgs
    UdhostId string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    UdsetId string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    UhostFamily string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    UniFeature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    UserData string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    availability_zone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    image_id string
    The ID for the image to use for the instance.
    instance_type string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    alarm_template_id number
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allow_stopping_for_update bool
    auto_data_disk_init string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    auto_start bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    boot_disk_size number

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    boot_disk_type string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    charge_type string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    coupon_id string
    The ID of the host coupon to use for payment.
    data_disk_size number

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    data_disk_type string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    data_disks object
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    delete_disks_with_instance bool
    delete_eips_with_instance bool
    deletion_protection bool
    disk_password string
    duration number
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    gpu number
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpu_type string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    host_binding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplug_feature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    instance_id string
    The ID of disk.
    isolation_group string
    The ID of the associated isolation group.
    key_pair_id string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels map(string)
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    login_mode string
    min_cpu_platform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name string
    net_capability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    network_interface object
    private_ip string
    The private IP address assigned to the instance.
    remark string
    The remarks of instance. (Default: "").
    root_password string
    sec_group_ids list(object)
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    security_group string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    security_mode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    subnet_id string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts object
    udhost_id string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udset_id string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhost_family string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uni_feature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    user_data string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpc_id string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    imageId String
    The ID for the image to use for the instance.
    instanceType String

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    alarmTemplateId Double
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allowStoppingForUpdate Boolean
    autoDataDiskInit String
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    autoStart Boolean
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    bootDiskSize Double

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    couponId String
    The ID of the host coupon to use for payment.
    dataDiskSize Double

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    dataDisks InstanceDataDisks
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    deleteDisksWithInstance Boolean
    deleteEipsWithInstance Boolean
    deletionProtection Boolean
    diskPassword String
    duration Double
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    gpu Double
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpuType String
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    hostBinding Boolean
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplugFeature Boolean
    Enable the hot upgrade feature of the instance. (Default: false).
    instanceId String
    The ID of disk.
    isolationGroup String
    The ID of the associated isolation group.
    keyPairId String
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels Map<String,String>
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    loginMode String
    minCpuPlatform String
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name String
    netCapability String
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    networkInterface InstanceNetworkInterface
    privateIp String
    The private IP address assigned to the instance.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    secGroupIds List<InstanceSecGroupId>
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    securityGroup String
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    securityMode String
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag String
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts InstanceTimeouts
    udhostId String
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udsetId String
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhostFamily String
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uniFeature Boolean
    Enable the elastic network interface feature of the instance. (Default: false).
    userData String
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    availabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    imageId string
    The ID for the image to use for the instance.
    instanceType string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    alarmTemplateId number
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allowStoppingForUpdate boolean
    autoDataDiskInit string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    autoStart boolean
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    bootDiskSize number

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    bootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    couponId string
    The ID of the host coupon to use for payment.
    dataDiskSize number

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    dataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    dataDisks InstanceDataDisks
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    deleteDisksWithInstance boolean
    deleteEipsWithInstance boolean
    deletionProtection boolean
    diskPassword string
    duration number
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    gpu number
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpuType string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    hostBinding boolean
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplugFeature boolean
    Enable the hot upgrade feature of the instance. (Default: false).
    instanceId string
    The ID of disk.
    isolationGroup string
    The ID of the associated isolation group.
    keyPairId string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels {[key: string]: string}
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    loginMode string
    minCpuPlatform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name string
    netCapability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    networkInterface InstanceNetworkInterface
    privateIp string
    The private IP address assigned to the instance.
    remark string
    The remarks of instance. (Default: "").
    rootPassword string
    secGroupIds InstanceSecGroupId[]
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    securityGroup string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    securityMode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    subnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts InstanceTimeouts
    udhostId string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udsetId string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhostFamily string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uniFeature boolean
    Enable the elastic network interface feature of the instance. (Default: false).
    userData string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    availability_zone str
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    image_id str
    The ID for the image to use for the instance.
    instance_type str

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    alarm_template_id float
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allow_stopping_for_update bool
    auto_data_disk_init str
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    auto_start bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    boot_disk_size float

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    boot_disk_type str
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    charge_type str
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    coupon_id str
    The ID of the host coupon to use for payment.
    data_disk_size float

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    data_disk_type str
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    data_disks InstanceDataDisksArgs
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    delete_disks_with_instance bool
    delete_eips_with_instance bool
    deletion_protection bool
    disk_password str
    duration float
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    gpu float
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpu_type str
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    host_binding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplug_feature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    instance_id str
    The ID of disk.
    isolation_group str
    The ID of the associated isolation group.
    key_pair_id str
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels Mapping[str, str]
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    login_mode str
    min_cpu_platform str
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name str
    net_capability str
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    network_interface InstanceNetworkInterfaceArgs
    private_ip str
    The private IP address assigned to the instance.
    remark str
    The remarks of instance. (Default: "").
    root_password str
    sec_group_ids Sequence[InstanceSecGroupIdArgs]
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    security_group str
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    security_mode str
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    subnet_id str
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag str
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts InstanceTimeoutsArgs
    udhost_id str
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udset_id str
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhost_family str
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uni_feature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    user_data str
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpc_id str
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    imageId String
    The ID for the image to use for the instance.
    instanceType String

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    alarmTemplateId Number
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allowStoppingForUpdate Boolean
    autoDataDiskInit String
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    autoStart Boolean
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    bootDiskSize Number

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    couponId String
    The ID of the host coupon to use for payment.
    dataDiskSize Number

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    dataDisks Property Map
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    deleteDisksWithInstance Boolean
    deleteEipsWithInstance Boolean
    deletionProtection Boolean
    diskPassword String
    duration Number
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    gpu Number
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpuType String
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    hostBinding Boolean
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplugFeature Boolean
    Enable the hot upgrade feature of the instance. (Default: false).
    instanceId String
    The ID of disk.
    isolationGroup String
    The ID of the associated isolation group.
    keyPairId String
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels Map<String>
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    loginMode String
    minCpuPlatform String
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name String
    netCapability String
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    networkInterface Property Map
    privateIp String
    The private IP address assigned to the instance.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    secGroupIds List<Property Map>
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    securityGroup String
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    securityMode String
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag String
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts Property Map
    udhostId String
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udsetId String
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhostFamily String
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uniFeature Boolean
    Enable the elastic network interface feature of the instance. (Default: false).
    userData String
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.

    Outputs

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

    AutoRenew bool
    Whether to renew an instance automatically or not.
    Cpu double
    The number of cores of virtual CPU, measured in core.
    CpuPlatform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DiskSets List<InstanceDiskSet>
    It is a nested type which documented below.
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpSets List<InstanceIpSet>
    It is a nested type which documented below.
    Memory double
    The size of memory, measured in GB(Gigabyte).
    RdmaClusterId string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    AutoRenew bool
    Whether to renew an instance automatically or not.
    Cpu float64
    The number of cores of virtual CPU, measured in core.
    CpuPlatform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DiskSets []InstanceDiskSet
    It is a nested type which documented below.
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpSets []InstanceIpSet
    It is a nested type which documented below.
    Memory float64
    The size of memory, measured in GB(Gigabyte).
    RdmaClusterId string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    auto_renew bool
    Whether to renew an instance automatically or not.
    cpu number
    The number of cores of virtual CPU, measured in core.
    cpu_platform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    create_time string
    The time of creation for instance, formatted in RFC3339 time string.
    disk_sets list(object)
    It is a nested type which documented below.
    expire_time string
    The expiration time for instance, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    ip_sets list(object)
    It is a nested type which documented below.
    memory number
    The size of memory, measured in GB(Gigabyte).
    rdma_cluster_id string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    autoRenew Boolean
    Whether to renew an instance automatically or not.
    cpu Double
    The number of cores of virtual CPU, measured in core.
    cpuPlatform String
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    diskSets List<InstanceDiskSet>
    It is a nested type which documented below.
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    ipSets List<InstanceIpSet>
    It is a nested type which documented below.
    memory Double
    The size of memory, measured in GB(Gigabyte).
    rdmaClusterId String
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    autoRenew boolean
    Whether to renew an instance automatically or not.
    cpu number
    The number of cores of virtual CPU, measured in core.
    cpuPlatform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    diskSets InstanceDiskSet[]
    It is a nested type which documented below.
    expireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    ipSets InstanceIpSet[]
    It is a nested type which documented below.
    memory number
    The size of memory, measured in GB(Gigabyte).
    rdmaClusterId string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    auto_renew bool
    Whether to renew an instance automatically or not.
    cpu float
    The number of cores of virtual CPU, measured in core.
    cpu_platform str
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    disk_sets Sequence[InstanceDiskSet]
    It is a nested type which documented below.
    expire_time str
    The expiration time for instance, formatted in RFC3339 time string.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_sets Sequence[InstanceIpSet]
    It is a nested type which documented below.
    memory float
    The size of memory, measured in GB(Gigabyte).
    rdma_cluster_id str
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    status str
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    autoRenew Boolean
    Whether to renew an instance automatically or not.
    cpu Number
    The number of cores of virtual CPU, measured in core.
    cpuPlatform String
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    diskSets List<Property Map>
    It is a nested type which documented below.
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    ipSets List<Property Map>
    It is a nested type which documented below.
    memory Number
    The size of memory, measured in GB(Gigabyte).
    rdmaClusterId String
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.

    Look up Existing Instance Resource

    Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_template_id: Optional[float] = None,
            allow_stopping_for_update: Optional[bool] = None,
            auto_data_disk_init: Optional[str] = None,
            auto_renew: Optional[bool] = None,
            auto_start: Optional[bool] = None,
            availability_zone: Optional[str] = None,
            boot_disk_size: Optional[float] = None,
            boot_disk_type: Optional[str] = None,
            charge_type: Optional[str] = None,
            coupon_id: Optional[str] = None,
            cpu: Optional[float] = None,
            cpu_platform: Optional[str] = None,
            create_time: Optional[str] = None,
            data_disk_size: Optional[float] = None,
            data_disk_type: Optional[str] = None,
            data_disks: Optional[InstanceDataDisksArgs] = None,
            delete_disks_with_instance: Optional[bool] = None,
            delete_eips_with_instance: Optional[bool] = None,
            deletion_protection: Optional[bool] = None,
            disk_password: Optional[str] = None,
            disk_sets: Optional[Sequence[InstanceDiskSetArgs]] = None,
            duration: Optional[float] = None,
            expire_time: Optional[str] = None,
            gpu: Optional[float] = None,
            gpu_type: Optional[str] = None,
            host_binding: Optional[bool] = None,
            hotplug_feature: Optional[bool] = None,
            image_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            instance_type: Optional[str] = None,
            ip_sets: Optional[Sequence[InstanceIpSetArgs]] = None,
            isolation_group: Optional[str] = None,
            key_pair_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            login_mode: Optional[str] = None,
            memory: Optional[float] = None,
            min_cpu_platform: Optional[str] = None,
            name: Optional[str] = None,
            net_capability: Optional[str] = None,
            network_interface: Optional[InstanceNetworkInterfaceArgs] = None,
            private_ip: Optional[str] = None,
            rdma_cluster_id: Optional[str] = None,
            remark: Optional[str] = None,
            root_password: Optional[str] = None,
            sec_group_ids: Optional[Sequence[InstanceSecGroupIdArgs]] = None,
            security_group: Optional[str] = None,
            security_mode: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tag: Optional[str] = None,
            timeouts: Optional[InstanceTimeoutsArgs] = None,
            udhost_id: Optional[str] = None,
            udset_id: Optional[str] = None,
            uhost_family: Optional[str] = None,
            uni_feature: Optional[bool] = None,
            user_data: Optional[str] = None,
            vpc_id: Optional[str] = None) -> Instance
    func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
    public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
    public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:Instance    get:      id: ${id}
    import {
      to = ucloud_instance.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlarmTemplateId double
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    AllowStoppingForUpdate bool
    AutoDataDiskInit string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    AutoRenew bool
    Whether to renew an instance automatically or not.
    AutoStart bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    BootDiskSize double

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CouponId string
    The ID of the host coupon to use for payment.
    Cpu double
    The number of cores of virtual CPU, measured in core.
    CpuPlatform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DataDiskSize double

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    DataDisks InstanceDataDisks
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    DeleteDisksWithInstance bool
    DeleteEipsWithInstance bool
    DeletionProtection bool
    DiskPassword string
    DiskSets List<InstanceDiskSet>
    It is a nested type which documented below.
    Duration double
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    Gpu double
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    GpuType string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    HostBinding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    HotplugFeature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    ImageId string
    The ID for the image to use for the instance.
    InstanceId string
    The ID of disk.
    InstanceType string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    IpSets List<InstanceIpSet>
    It is a nested type which documented below.
    IsolationGroup string
    The ID of the associated isolation group.
    KeyPairId string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    Labels Dictionary<string, string>
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    LoginMode string
    Memory double
    The size of memory, measured in GB(Gigabyte).
    MinCpuPlatform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    Name string
    NetCapability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    NetworkInterface InstanceNetworkInterface
    PrivateIp string
    The private IP address assigned to the instance.
    RdmaClusterId string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecGroupIds List<InstanceSecGroupId>
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    SecurityGroup string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    SecurityMode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    Timeouts InstanceTimeouts
    UdhostId string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    UdsetId string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    UhostFamily string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    UniFeature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    UserData string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    AlarmTemplateId float64
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    AllowStoppingForUpdate bool
    AutoDataDiskInit string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    AutoRenew bool
    Whether to renew an instance automatically or not.
    AutoStart bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    BootDiskSize float64

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CouponId string
    The ID of the host coupon to use for payment.
    Cpu float64
    The number of cores of virtual CPU, measured in core.
    CpuPlatform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DataDiskSize float64

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    DataDisks InstanceDataDisksArgs
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    DeleteDisksWithInstance bool
    DeleteEipsWithInstance bool
    DeletionProtection bool
    DiskPassword string
    DiskSets []InstanceDiskSetArgs
    It is a nested type which documented below.
    Duration float64
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    Gpu float64
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    GpuType string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    HostBinding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    HotplugFeature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    ImageId string
    The ID for the image to use for the instance.
    InstanceId string
    The ID of disk.
    InstanceType string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    IpSets []InstanceIpSetArgs
    It is a nested type which documented below.
    IsolationGroup string
    The ID of the associated isolation group.
    KeyPairId string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    Labels map[string]string
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    LoginMode string
    Memory float64
    The size of memory, measured in GB(Gigabyte).
    MinCpuPlatform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    Name string
    NetCapability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    NetworkInterface InstanceNetworkInterfaceArgs
    PrivateIp string
    The private IP address assigned to the instance.
    RdmaClusterId string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecGroupIds []InstanceSecGroupIdArgs
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    SecurityGroup string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    SecurityMode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    Timeouts InstanceTimeoutsArgs
    UdhostId string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    UdsetId string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    UhostFamily string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    UniFeature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    UserData string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    alarm_template_id number
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allow_stopping_for_update bool
    auto_data_disk_init string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    auto_renew bool
    Whether to renew an instance automatically or not.
    auto_start bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    availability_zone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    boot_disk_size number

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    boot_disk_type string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    charge_type string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    coupon_id string
    The ID of the host coupon to use for payment.
    cpu number
    The number of cores of virtual CPU, measured in core.
    cpu_platform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    create_time string
    The time of creation for instance, formatted in RFC3339 time string.
    data_disk_size number

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    data_disk_type string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    data_disks object
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    delete_disks_with_instance bool
    delete_eips_with_instance bool
    deletion_protection bool
    disk_password string
    disk_sets list(object)
    It is a nested type which documented below.
    duration number
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    expire_time string
    The expiration time for instance, formatted in RFC3339 time string.
    gpu number
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpu_type string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    host_binding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplug_feature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    image_id string
    The ID for the image to use for the instance.
    instance_id string
    The ID of disk.
    instance_type string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    ip_sets list(object)
    It is a nested type which documented below.
    isolation_group string
    The ID of the associated isolation group.
    key_pair_id string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels map(string)
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    login_mode string
    memory number
    The size of memory, measured in GB(Gigabyte).
    min_cpu_platform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name string
    net_capability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    network_interface object
    private_ip string
    The private IP address assigned to the instance.
    rdma_cluster_id string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    remark string
    The remarks of instance. (Default: "").
    root_password string
    sec_group_ids list(object)
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    security_group string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    security_mode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    subnet_id string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts object
    udhost_id string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udset_id string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhost_family string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uni_feature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    user_data string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpc_id string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    alarmTemplateId Double
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allowStoppingForUpdate Boolean
    autoDataDiskInit String
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    autoRenew Boolean
    Whether to renew an instance automatically or not.
    autoStart Boolean
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    bootDiskSize Double

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    couponId String
    The ID of the host coupon to use for payment.
    cpu Double
    The number of cores of virtual CPU, measured in core.
    cpuPlatform String
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize Double

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    dataDisks InstanceDataDisks
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    deleteDisksWithInstance Boolean
    deleteEipsWithInstance Boolean
    deletionProtection Boolean
    diskPassword String
    diskSets List<InstanceDiskSet>
    It is a nested type which documented below.
    duration Double
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    gpu Double
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpuType String
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    hostBinding Boolean
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplugFeature Boolean
    Enable the hot upgrade feature of the instance. (Default: false).
    imageId String
    The ID for the image to use for the instance.
    instanceId String
    The ID of disk.
    instanceType String

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    ipSets List<InstanceIpSet>
    It is a nested type which documented below.
    isolationGroup String
    The ID of the associated isolation group.
    keyPairId String
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels Map<String,String>
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    loginMode String
    memory Double
    The size of memory, measured in GB(Gigabyte).
    minCpuPlatform String
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name String
    netCapability String
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    networkInterface InstanceNetworkInterface
    privateIp String
    The private IP address assigned to the instance.
    rdmaClusterId String
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    secGroupIds List<InstanceSecGroupId>
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    securityGroup String
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    securityMode String
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag String
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts InstanceTimeouts
    udhostId String
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udsetId String
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhostFamily String
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uniFeature Boolean
    Enable the elastic network interface feature of the instance. (Default: false).
    userData String
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    alarmTemplateId number
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allowStoppingForUpdate boolean
    autoDataDiskInit string
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    autoRenew boolean
    Whether to renew an instance automatically or not.
    autoStart boolean
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    availabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    bootDiskSize number

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    bootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    couponId string
    The ID of the host coupon to use for payment.
    cpu number
    The number of cores of virtual CPU, measured in core.
    cpuPlatform string
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize number

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    dataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    dataDisks InstanceDataDisks
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    deleteDisksWithInstance boolean
    deleteEipsWithInstance boolean
    deletionProtection boolean
    diskPassword string
    diskSets InstanceDiskSet[]
    It is a nested type which documented below.
    duration number
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    expireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    gpu number
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpuType string
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    hostBinding boolean
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplugFeature boolean
    Enable the hot upgrade feature of the instance. (Default: false).
    imageId string
    The ID for the image to use for the instance.
    instanceId string
    The ID of disk.
    instanceType string

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    ipSets InstanceIpSet[]
    It is a nested type which documented below.
    isolationGroup string
    The ID of the associated isolation group.
    keyPairId string
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels {[key: string]: string}
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    loginMode string
    memory number
    The size of memory, measured in GB(Gigabyte).
    minCpuPlatform string
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name string
    netCapability string
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    networkInterface InstanceNetworkInterface
    privateIp string
    The private IP address assigned to the instance.
    rdmaClusterId string
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    remark string
    The remarks of instance. (Default: "").
    rootPassword string
    secGroupIds InstanceSecGroupId[]
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    securityGroup string
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    securityMode string
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    subnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag string
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts InstanceTimeouts
    udhostId string
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udsetId string
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhostFamily string
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uniFeature boolean
    Enable the elastic network interface feature of the instance. (Default: false).
    userData string
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    alarm_template_id float
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allow_stopping_for_update bool
    auto_data_disk_init str
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    auto_renew bool
    Whether to renew an instance automatically or not.
    auto_start bool
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    availability_zone str
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    boot_disk_size float

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    boot_disk_type str
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    charge_type str
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    coupon_id str
    The ID of the host coupon to use for payment.
    cpu float
    The number of cores of virtual CPU, measured in core.
    cpu_platform str
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    data_disk_size float

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    data_disk_type str
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    data_disks InstanceDataDisksArgs
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    delete_disks_with_instance bool
    delete_eips_with_instance bool
    deletion_protection bool
    disk_password str
    disk_sets Sequence[InstanceDiskSetArgs]
    It is a nested type which documented below.
    duration float
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    expire_time str
    The expiration time for instance, formatted in RFC3339 time string.
    gpu float
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpu_type str
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    host_binding bool
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplug_feature bool
    Enable the hot upgrade feature of the instance. (Default: false).
    image_id str
    The ID for the image to use for the instance.
    instance_id str
    The ID of disk.
    instance_type str

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    ip_sets Sequence[InstanceIpSetArgs]
    It is a nested type which documented below.
    isolation_group str
    The ID of the associated isolation group.
    key_pair_id str
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels Mapping[str, str]
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    login_mode str
    memory float
    The size of memory, measured in GB(Gigabyte).
    min_cpu_platform str
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name str
    net_capability str
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    network_interface InstanceNetworkInterfaceArgs
    private_ip str
    The private IP address assigned to the instance.
    rdma_cluster_id str
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    remark str
    The remarks of instance. (Default: "").
    root_password str
    sec_group_ids Sequence[InstanceSecGroupIdArgs]
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    security_group str
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    security_mode str
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    status str
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    subnet_id str
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag str
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts InstanceTimeoutsArgs
    udhost_id str
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udset_id str
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhost_family str
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uni_feature bool
    Enable the elastic network interface feature of the instance. (Default: false).
    user_data str
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpc_id str
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    alarmTemplateId Number
    The ID of the alarm template to bind to the instance. Binding failure does not affect instance creation. The value is an integer alarm template ID (range: 1-2147483647).
    allowStoppingForUpdate Boolean
    autoDataDiskInit String
    Whether to automatically partition and mount the data disks when the image supports Cloud-init. Possible values are: On for auto mount (default), Off for no auto mount.
    autoRenew Boolean
    Whether to renew an instance automatically or not.
    autoStart Boolean
    Whether to start the instance immediately after resetting its password or resizing the instance is completed, default is false. It takes effect only when updating root_password, login_mode, key_pair_id, instance_type or net_capability, and is not supported for dynamic (pay by hour) and preemptible instances.
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    bootDiskSize Number

    The size of the boot disk, measured in GB (GigaByte). Range: 20-500. The value set of disk size must be larger or equal to 20(default: 20) for Linux and 40 (default: 40) for Windows. The responsive time is a bit longer if the value set is larger than default for local boot disk, and further settings may be required on host instance if the value set is larger than default for cloud boot disk. The disk volume adjustment must be a multiple of 10 GB. In addition, any reduction of boot disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk, cloud_rssd as RDMA-SSD cloud disk. (Default: local_normal). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    couponId String
    The ID of the host coupon to use for payment.
    cpu Number
    The number of cores of virtual CPU, measured in core.
    cpuPlatform String
    The CPU platform of the instance, e.g. Intel/Cascadelake.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize Number

    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.

    Note If you want to update this value, you must set allow_stopping_for_updateto true. In addition, when it is changed, you need to go to the instance for configuration.

    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk. (Default: local_normal). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, the data_disk_type must be same as boot_disk_type if specified.
    dataDisks Property Map
    Additional cloud data disks to attach to the instance. data_disks configurations only apply on resource creation. The count of data_disks can only be one. See data_disks below for details on attributes. When set data_disks, the argument delete_disks_with_instance must bet set.
    deleteDisksWithInstance Boolean
    deleteEipsWithInstance Boolean
    deletionProtection Boolean
    diskPassword String
    diskSets List<Property Map>
    It is a nested type which documented below.
    duration Number
    The duration that you will buy the instance (Default: 1, range: 0-9). The value is 0 when pay by month and the instance will be valid till the last day of that month, and it is invalid when charge_type is year or dynamic. It is not required when dynamic (pay by hour).
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    gpu Number
    The count of GPU cores, range: 1-8, only supported by GPU machine types.
    gpuType String
    The type of GPU, required when the machine type is G. Possible values are: K80, P40, V100, V100S, T4, T4A, T4S, 2080, 2080Ti, 2080Ti-4C, 2080TiS, 2080TiPro, 1080Ti, 3080Ti, 3090, 4090, 4090Pro, 4090_48G, 4090LD, 5090, 5090Pro, BR104P, MR-V100, A100, A800, H20, H800.
    hostBinding Boolean
    Whether to bind the dedicated zone instance to the dedicated host. It requires udset_id to be set. (Default: false).
    hotplugFeature Boolean
    Enable the hot upgrade feature of the instance. (Default: false).
    imageId String
    The ID for the image to use for the instance.
    instanceId String
    The ID of disk.
    instanceType String

    The type of instance, please visit the instance type table

    Note If you want to update this value, you must set allow_stopping_for_updateto true.


    ipSets List<Property Map>
    It is a nested type which documented below.
    isolationGroup String
    The ID of the associated isolation group.
    keyPairId String
    The ID of the key pair used when login_mode is KeyPair. This argument is required when login_mode is KeyPair, and cannot be used when login_mode is Password.
    labels Map<String>
    User resource labels to attach to the instance on creation, given as a key/value map. The label key and value should comply with the label specification. Changing labels after creation is not supported here; use the ucloud.LabelAttachment resource to manage labels of an existing instance.
    loginMode String
    memory Number
    The size of memory, measured in GB(Gigabyte).
    minCpuPlatform String
    Specifies a minimum CPU platform for the the VM instance. (Default: Intel/Auto). You may refer to product documentation and API documentation.
    name String
    netCapability String
    The network enhancement feature of the instance. Possible values are: normal for no enhancement, super for network enhancement 1.0, ultra for network enhancement 2.0, extreme for network enhancement 3.0. (Default: normal). It can only be changed between normal and an enhancement level in place (upgrade or downgrade through ResizeUHostInstance); switching between enhancement levels requires rebuilding the instance. Updating it to a value other than normal requires stopping the instance, please set allow_stopping_for_update to true to acknowledge it, and the instance is restarted automatically after the update when auto_start is true.
    networkInterface Property Map
    privateIp String
    The private IP address assigned to the instance.
    rdmaClusterId String
    The RDMA Cluster ID of instance. This is only available when machine type is O.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    secGroupIds List<Property Map>
    A list of security group bindings, up to 5. Only takes effect when security_mode is SecGroup, and it is required when security_mode is SecGroup; at least one binding must be kept when updating. Each item supports id (security group ID) and priority (binding priority, range: 1-5).
    securityGroup String
    The ID of the associated security group (firewall). Only takes effect when security_mode is not set or set to Firewall.
    securityMode String
    The security mode of instance. Possible values are: Firewall and SecGroup. If not set, the instance will use Firewall mode by default for backward compatibility.
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Stopped, Install Fail, ResizeFail, Rebooting and NetworkModeSwitching.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    tag String
    A tag assigned to instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    timeouts Property Map
    udhostId String
    The ID of the dedicated host (UDHost) inside the private dedicated zone on which the instance is created. It requires udset_id to be set.
    udsetId String
    The ID of the private dedicated zone (UDSet) in which the instance is created. It is required by other dedicated zone arguments, and cannot be changed once the instance is created.
    uhostFamily String
    The instance family, composed of the machine type code and CPU platform. Possible values for machine type O: o1i (O1, Intel), o1a (O1, AMD), o1r (O1, ARM), o1h, o2i (O2, Intel), o2a; for machine type OM: om1i, om1a, om2i; for performance-optimized machine types: opro1a, opro2a, oprog1i, oprog2i, oprog1a. The family must match the machine type, otherwise the request is rejected.
    uniFeature Boolean
    Enable the elastic network interface feature of the instance. (Default: false).
    userData String
    The user data to customize the startup behaviors when launching the instance, up to 16384 characters. The image must support the CloudInit feature, otherwise instance creation fails. You may refer to user_data_document
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.

    Supporting Types

    InstanceDataDisks, InstanceDataDisksArgs

    Size double
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    Type string
    Size float64
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    Type string
    size number
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type string
    size Double
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type String
    size number
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type string
    size float
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type str
    size Number
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type String

    InstanceDiskSet, InstanceDiskSetArgs

    Id string
    The ID of disk.
    IsBoot bool
    Specifies whether boot disk or not.
    Size double
    The size of disk, measured in GB (Gigabyte).
    Type string
    The type of disk.
    Id string
    The ID of disk.
    IsBoot bool
    Specifies whether boot disk or not.
    Size float64
    The size of disk, measured in GB (Gigabyte).
    Type string
    The type of disk.
    id string
    The ID of disk.
    is_boot bool
    Specifies whether boot disk or not.
    size number
    The size of disk, measured in GB (Gigabyte).
    type string
    The type of disk.
    id String
    The ID of disk.
    isBoot Boolean
    Specifies whether boot disk or not.
    size Double
    The size of disk, measured in GB (Gigabyte).
    type String
    The type of disk.
    id string
    The ID of disk.
    isBoot boolean
    Specifies whether boot disk or not.
    size number
    The size of disk, measured in GB (Gigabyte).
    type string
    The type of disk.
    id str
    The ID of disk.
    is_boot bool
    Specifies whether boot disk or not.
    size float
    The size of disk, measured in GB (Gigabyte).
    type str
    The type of disk.
    id String
    The ID of disk.
    isBoot Boolean
    Specifies whether boot disk or not.
    size Number
    The size of disk, measured in GB (Gigabyte).
    type String
    The type of disk.

    InstanceIpSet, InstanceIpSetArgs

    InternetType string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    Ip string
    Elastic IP address.
    InternetType string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    Ip string
    Elastic IP address.
    internet_type string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip string
    Elastic IP address.
    internetType String
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip String
    Elastic IP address.
    internetType string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip string
    Elastic IP address.
    internet_type str
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip str
    Elastic IP address.
    internetType String
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip String
    Elastic IP address.

    InstanceNetworkInterface, InstanceNetworkInterfaceArgs

    EipBandwidth double
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    EipChargeMode string
    EipInternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
    EipBandwidth float64
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    EipChargeMode string
    EipInternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
    eip_bandwidth number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    eip_charge_mode string
    eip_internet_type string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
    eipBandwidth Double
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    eipChargeMode String
    eipInternetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
    eipBandwidth number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    eipChargeMode string
    eipInternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
    eip_bandwidth float
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    eip_charge_mode str
    eip_internet_type str
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
    eipBandwidth Number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth.
    eipChargeMode String
    eipInternetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.

    InstanceSecGroupId, InstanceSecGroupIdArgs

    Id string
    The ID of disk.
    Priority double
    Id string
    The ID of disk.
    Priority float64
    id string
    The ID of disk.
    priority number
    id String
    The ID of disk.
    priority Double
    id string
    The ID of disk.
    priority number
    id str
    The ID of disk.
    priority float
    id String
    The ID of disk.
    priority Number

    InstanceTimeouts, InstanceTimeoutsArgs

    Create string
    Used when launching the instance (until it reaches the initial Running state)
    Delete string
    Used when terminating the instance
    Update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    Create string
    Used when launching the instance (until it reaches the initial Running state)
    Delete string
    Used when terminating the instance
    Update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create string
    Used when launching the instance (until it reaches the initial Running state)
    delete string
    Used when terminating the instance
    update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create String
    Used when launching the instance (until it reaches the initial Running state)
    delete String
    Used when terminating the instance
    update String
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create string
    Used when launching the instance (until it reaches the initial Running state)
    delete string
    Used when terminating the instance
    update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create str
    Used when launching the instance (until it reaches the initial Running state)
    delete str
    Used when terminating the instance
    update str
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create String
    Used when launching the instance (until it reaches the initial Running state)
    delete String
    Used when terminating the instance
    update String
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type

    Import

    Instance can be imported using the id, e.g.

    $ pulumi import ucloud:index/instance:Instance example uhost-abcdefg
    

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

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud
    Viewing docs for ucloud 1.49.0
    published on Tuesday, Oct 27, 2026 by ucloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial