1. Packages
  2. Ucloud Provider
  3. API Docs
  4. BaremetalInstance
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.BaremetalInstance

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    The ucloud.BaremetalInstance resource provides a UCloud Bare Metal instance. This can be used to create, modify, and delete Bare Metal instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const example = new ucloud.BaremetalInstance("example", {
        availabilityZone: "cn-bj2-02",
        chargeType: "day",
        imageId: "pimg-cs-aqxttl",
        instanceType: "Base-SSD-V5",
        networkInterface: {
            eipBandwidth: 10,
            eipChargeMode: "traffic",
            eipInternetType: "bgp",
        },
        raidType: "no_raid",
        rootPassword: "test123456",
        securityGroup: "firewall-zzz",
        subnetId: "subnet-yyy",
        tag: "Default",
        vpcId: "uvnet-xxx",
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    example = ucloud.BaremetalInstance("example",
        availability_zone="cn-bj2-02",
        charge_type="day",
        image_id="pimg-cs-aqxttl",
        instance_type="Base-SSD-V5",
        network_interface={
            "eip_bandwidth": 10,
            "eip_charge_mode": "traffic",
            "eip_internet_type": "bgp",
        },
        raid_type="no_raid",
        root_password="test123456",
        security_group="firewall-zzz",
        subnet_id="subnet-yyy",
        tag="Default",
        vpc_id="uvnet-xxx")
    
    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 {
    		_, err := ucloud.NewBaremetalInstance(ctx, "example", &ucloud.BaremetalInstanceArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-02"),
    			ChargeType:       pulumi.String("day"),
    			ImageId:          pulumi.String("pimg-cs-aqxttl"),
    			InstanceType:     pulumi.String("Base-SSD-V5"),
    			NetworkInterface: &ucloud.BaremetalInstanceNetworkInterfaceArgs{
    				EipBandwidth:    pulumi.Float64(10),
    				EipChargeMode:   pulumi.String("traffic"),
    				EipInternetType: pulumi.String("bgp"),
    			},
    			RaidType:      pulumi.String("no_raid"),
    			RootPassword:  pulumi.String("test123456"),
    			SecurityGroup: pulumi.String("firewall-zzz"),
    			SubnetId:      pulumi.String("subnet-yyy"),
    			Tag:           pulumi.String("Default"),
    			VpcId:         pulumi.String("uvnet-xxx"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ucloud.BaremetalInstance("example", new()
        {
            AvailabilityZone = "cn-bj2-02",
            ChargeType = "day",
            ImageId = "pimg-cs-aqxttl",
            InstanceType = "Base-SSD-V5",
            NetworkInterface = new Ucloud.Inputs.BaremetalInstanceNetworkInterfaceArgs
            {
                EipBandwidth = 10,
                EipChargeMode = "traffic",
                EipInternetType = "bgp",
            },
            RaidType = "no_raid",
            RootPassword = "test123456",
            SecurityGroup = "firewall-zzz",
            SubnetId = "subnet-yyy",
            Tag = "Default",
            VpcId = "uvnet-xxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.BaremetalInstance;
    import com.pulumi.ucloud.BaremetalInstanceArgs;
    import com.pulumi.ucloud.inputs.BaremetalInstanceNetworkInterfaceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new BaremetalInstance("example", BaremetalInstanceArgs.builder()
                .availabilityZone("cn-bj2-02")
                .chargeType("day")
                .imageId("pimg-cs-aqxttl")
                .instanceType("Base-SSD-V5")
                .networkInterface(BaremetalInstanceNetworkInterfaceArgs.builder()
                    .eipBandwidth(10)
                    .eipChargeMode("traffic")
                    .eipInternetType("bgp")
                    .build())
                .raidType("no_raid")
                .rootPassword("test123456")
                .securityGroup("firewall-zzz")
                .subnetId("subnet-yyy")
                .tag("Default")
                .vpcId("uvnet-xxx")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ucloud:BaremetalInstance
        properties:
          availabilityZone: cn-bj2-02
          chargeType: day
          imageId: pimg-cs-aqxttl
          instanceType: Base-SSD-V5
          networkInterface:
            eipBandwidth: 10
            eipChargeMode: traffic
            eipInternetType: bgp
          raidType: no_raid
          rootPassword: test123456
          securityGroup: firewall-zzz
          subnetId: subnet-yyy
          tag: Default
          vpcId: uvnet-xxx
    

    Create BaremetalInstance Resource

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

    Constructor syntax

    new BaremetalInstance(name: string, args: BaremetalInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def BaremetalInstance(resource_name: str,
                          args: BaremetalInstanceArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def BaremetalInstance(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          image_id: Optional[str] = None,
                          vpc_id: Optional[str] = None,
                          availability_zone: Optional[str] = None,
                          subnet_id: Optional[str] = None,
                          instance_type: Optional[str] = None,
                          duration: Optional[float] = None,
                          network_interface: Optional[BaremetalInstanceNetworkInterfaceArgs] = None,
                          data_disks: Optional[BaremetalInstanceDataDisksArgs] = None,
                          delete_disks_with_instance: Optional[bool] = None,
                          delete_eips_with_instance: Optional[bool] = None,
                          allow_stopping_for_resizing: Optional[bool] = None,
                          boot_disk_type: Optional[str] = None,
                          boot_disk_size: Optional[float] = None,
                          name: Optional[str] = None,
                          charge_type: Optional[str] = None,
                          private_ip: Optional[str] = None,
                          raid_type: Optional[str] = None,
                          remark: Optional[str] = None,
                          root_password: Optional[str] = None,
                          security_group: Optional[str] = None,
                          baremetal_instance_id: Optional[str] = None,
                          tag: Optional[str] = None,
                          allow_stopping_for_update: Optional[bool] = None)
    func NewBaremetalInstance(ctx *Context, name string, args BaremetalInstanceArgs, opts ...ResourceOption) (*BaremetalInstance, error)
    public BaremetalInstance(string name, BaremetalInstanceArgs args, CustomResourceOptions? opts = null)
    public BaremetalInstance(String name, BaremetalInstanceArgs args)
    public BaremetalInstance(String name, BaremetalInstanceArgs args, CustomResourceOptions options)
    
    type: ucloud:BaremetalInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BaremetalInstanceArgs
    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 BaremetalInstanceArgs
    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 BaremetalInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BaremetalInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BaremetalInstanceArgs
    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 baremetalInstanceResource = new Ucloud.BaremetalInstance("baremetalInstanceResource", new()
    {
        ImageId = "string",
        VpcId = "string",
        AvailabilityZone = "string",
        SubnetId = "string",
        InstanceType = "string",
        Duration = 0,
        NetworkInterface = new Ucloud.Inputs.BaremetalInstanceNetworkInterfaceArgs
        {
            EipBandwidth = 0,
            EipChargeMode = "string",
            EipInternetType = "string",
        },
        DataDisks = new Ucloud.Inputs.BaremetalInstanceDataDisksArgs
        {
            Size = 0,
            Type = "string",
            DeviceName = "string",
            Id = "string",
        },
        DeleteDisksWithInstance = false,
        DeleteEipsWithInstance = false,
        AllowStoppingForResizing = false,
        BootDiskType = "string",
        BootDiskSize = 0,
        Name = "string",
        ChargeType = "string",
        PrivateIp = "string",
        RaidType = "string",
        Remark = "string",
        RootPassword = "string",
        SecurityGroup = "string",
        BaremetalInstanceId = "string",
        Tag = "string",
        AllowStoppingForUpdate = false,
    });
    
    example, err := ucloud.NewBaremetalInstance(ctx, "baremetalInstanceResource", &ucloud.BaremetalInstanceArgs{
    	ImageId:          pulumi.String("string"),
    	VpcId:            pulumi.String("string"),
    	AvailabilityZone: pulumi.String("string"),
    	SubnetId:         pulumi.String("string"),
    	InstanceType:     pulumi.String("string"),
    	Duration:         pulumi.Float64(0),
    	NetworkInterface: &ucloud.BaremetalInstanceNetworkInterfaceArgs{
    		EipBandwidth:    pulumi.Float64(0),
    		EipChargeMode:   pulumi.String("string"),
    		EipInternetType: pulumi.String("string"),
    	},
    	DataDisks: &ucloud.BaremetalInstanceDataDisksArgs{
    		Size:       pulumi.Float64(0),
    		Type:       pulumi.String("string"),
    		DeviceName: pulumi.String("string"),
    		Id:         pulumi.String("string"),
    	},
    	DeleteDisksWithInstance:  pulumi.Bool(false),
    	DeleteEipsWithInstance:   pulumi.Bool(false),
    	AllowStoppingForResizing: pulumi.Bool(false),
    	BootDiskType:             pulumi.String("string"),
    	BootDiskSize:             pulumi.Float64(0),
    	Name:                     pulumi.String("string"),
    	ChargeType:               pulumi.String("string"),
    	PrivateIp:                pulumi.String("string"),
    	RaidType:                 pulumi.String("string"),
    	Remark:                   pulumi.String("string"),
    	RootPassword:             pulumi.String("string"),
    	SecurityGroup:            pulumi.String("string"),
    	BaremetalInstanceId:      pulumi.String("string"),
    	Tag:                      pulumi.String("string"),
    	AllowStoppingForUpdate:   pulumi.Bool(false),
    })
    
    var baremetalInstanceResource = new BaremetalInstance("baremetalInstanceResource", BaremetalInstanceArgs.builder()
        .imageId("string")
        .vpcId("string")
        .availabilityZone("string")
        .subnetId("string")
        .instanceType("string")
        .duration(0)
        .networkInterface(BaremetalInstanceNetworkInterfaceArgs.builder()
            .eipBandwidth(0)
            .eipChargeMode("string")
            .eipInternetType("string")
            .build())
        .dataDisks(BaremetalInstanceDataDisksArgs.builder()
            .size(0)
            .type("string")
            .deviceName("string")
            .id("string")
            .build())
        .deleteDisksWithInstance(false)
        .deleteEipsWithInstance(false)
        .allowStoppingForResizing(false)
        .bootDiskType("string")
        .bootDiskSize(0)
        .name("string")
        .chargeType("string")
        .privateIp("string")
        .raidType("string")
        .remark("string")
        .rootPassword("string")
        .securityGroup("string")
        .baremetalInstanceId("string")
        .tag("string")
        .allowStoppingForUpdate(false)
        .build());
    
    baremetal_instance_resource = ucloud.BaremetalInstance("baremetalInstanceResource",
        image_id="string",
        vpc_id="string",
        availability_zone="string",
        subnet_id="string",
        instance_type="string",
        duration=0,
        network_interface={
            "eip_bandwidth": 0,
            "eip_charge_mode": "string",
            "eip_internet_type": "string",
        },
        data_disks={
            "size": 0,
            "type": "string",
            "device_name": "string",
            "id": "string",
        },
        delete_disks_with_instance=False,
        delete_eips_with_instance=False,
        allow_stopping_for_resizing=False,
        boot_disk_type="string",
        boot_disk_size=0,
        name="string",
        charge_type="string",
        private_ip="string",
        raid_type="string",
        remark="string",
        root_password="string",
        security_group="string",
        baremetal_instance_id="string",
        tag="string",
        allow_stopping_for_update=False)
    
    const baremetalInstanceResource = new ucloud.BaremetalInstance("baremetalInstanceResource", {
        imageId: "string",
        vpcId: "string",
        availabilityZone: "string",
        subnetId: "string",
        instanceType: "string",
        duration: 0,
        networkInterface: {
            eipBandwidth: 0,
            eipChargeMode: "string",
            eipInternetType: "string",
        },
        dataDisks: {
            size: 0,
            type: "string",
            deviceName: "string",
            id: "string",
        },
        deleteDisksWithInstance: false,
        deleteEipsWithInstance: false,
        allowStoppingForResizing: false,
        bootDiskType: "string",
        bootDiskSize: 0,
        name: "string",
        chargeType: "string",
        privateIp: "string",
        raidType: "string",
        remark: "string",
        rootPassword: "string",
        securityGroup: "string",
        baremetalInstanceId: "string",
        tag: "string",
        allowStoppingForUpdate: false,
    });
    
    type: ucloud:BaremetalInstance
    properties:
        allowStoppingForResizing: false
        allowStoppingForUpdate: false
        availabilityZone: string
        baremetalInstanceId: string
        bootDiskSize: 0
        bootDiskType: string
        chargeType: string
        dataDisks:
            deviceName: string
            id: string
            size: 0
            type: string
        deleteDisksWithInstance: false
        deleteEipsWithInstance: false
        duration: 0
        imageId: string
        instanceType: string
        name: string
        networkInterface:
            eipBandwidth: 0
            eipChargeMode: string
            eipInternetType: string
        privateIp: string
        raidType: string
        remark: string
        rootPassword: string
        securityGroup: string
        subnetId: string
        tag: string
        vpcId: string
    

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

    AvailabilityZone string
    The availability zone where the instance is created.
    ImageId string
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    InstanceType string
    The instance type of expected bare metal instance.
    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.
    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.
    AllowStoppingForResizing bool
    Allow stopping the instance when the boot disk size needs to be resized.
    AllowStoppingForUpdate bool
    BaremetalInstanceId string
    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. Only cloud disk type instance can have a custom boot disk.
    BootDiskType string
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    ChargeType string
    The charge type of instance, possible values are: year, month and day. (Default: month).
    DataDisks BaremetalInstanceDataDisks
    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.
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached should be destroyed on instance termination.
    DeleteEipsWithInstance bool
    Whether the EIP associated should be destroyed on instance termination.
    Duration double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    Name string
    NetworkInterface BaremetalInstanceNetworkInterface
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    PrivateIp string
    The private IP address assigned to the instance.
    RaidType string
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecurityGroup string
    The ID of the associated security group.
    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).
    AvailabilityZone string
    The availability zone where the instance is created.
    ImageId string
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    InstanceType string
    The instance type of expected bare metal instance.
    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.
    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.
    AllowStoppingForResizing bool
    Allow stopping the instance when the boot disk size needs to be resized.
    AllowStoppingForUpdate bool
    BaremetalInstanceId string
    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. Only cloud disk type instance can have a custom boot disk.
    BootDiskType string
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    ChargeType string
    The charge type of instance, possible values are: year, month and day. (Default: month).
    DataDisks BaremetalInstanceDataDisksArgs
    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.
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached should be destroyed on instance termination.
    DeleteEipsWithInstance bool
    Whether the EIP associated should be destroyed on instance termination.
    Duration float64
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    Name string
    NetworkInterface BaremetalInstanceNetworkInterfaceArgs
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    PrivateIp string
    The private IP address assigned to the instance.
    RaidType string
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecurityGroup string
    The ID of the associated security group.
    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).
    availabilityZone String
    The availability zone where the instance is created.
    imageId String
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instanceType String
    The instance type of expected bare metal instance.
    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.
    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.
    allowStoppingForResizing Boolean
    Allow stopping the instance when the boot disk size needs to be resized.
    allowStoppingForUpdate Boolean
    baremetalInstanceId String
    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. Only cloud disk type instance can have a custom boot disk.
    bootDiskType String
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    chargeType String
    The charge type of instance, possible values are: year, month and day. (Default: month).
    dataDisks BaremetalInstanceDataDisks
    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.
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached should be destroyed on instance termination.
    deleteEipsWithInstance Boolean
    Whether the EIP associated should be destroyed on instance termination.
    duration Double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    name String
    networkInterface BaremetalInstanceNetworkInterface
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    privateIp String
    The private IP address assigned to the instance.
    raidType String
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    securityGroup String
    The ID of the associated security group.
    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).
    availabilityZone string
    The availability zone where the instance is created.
    imageId string
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instanceType string
    The instance type of expected bare metal instance.
    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.
    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.
    allowStoppingForResizing boolean
    Allow stopping the instance when the boot disk size needs to be resized.
    allowStoppingForUpdate boolean
    baremetalInstanceId string
    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. Only cloud disk type instance can have a custom boot disk.
    bootDiskType string
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    chargeType string
    The charge type of instance, possible values are: year, month and day. (Default: month).
    dataDisks BaremetalInstanceDataDisks
    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.
    deleteDisksWithInstance boolean
    Whether the cloud data disks attached should be destroyed on instance termination.
    deleteEipsWithInstance boolean
    Whether the EIP associated should be destroyed on instance termination.
    duration number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    name string
    networkInterface BaremetalInstanceNetworkInterface
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    privateIp string
    The private IP address assigned to the instance.
    raidType string
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    remark string
    The remarks of instance. (Default: "").
    rootPassword string
    securityGroup string
    The ID of the associated security group.
    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).
    availability_zone str
    The availability zone where the instance is created.
    image_id str
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instance_type str
    The instance type of expected bare metal instance.
    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.
    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.
    allow_stopping_for_resizing bool
    Allow stopping the instance when the boot disk size needs to be resized.
    allow_stopping_for_update bool
    baremetal_instance_id str
    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. Only cloud disk type instance can have a custom boot disk.
    boot_disk_type str
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    charge_type str
    The charge type of instance, possible values are: year, month and day. (Default: month).
    data_disks BaremetalInstanceDataDisksArgs
    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.
    delete_disks_with_instance bool
    Whether the cloud data disks attached should be destroyed on instance termination.
    delete_eips_with_instance bool
    Whether the EIP associated should be destroyed on instance termination.
    duration float
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    name str
    network_interface BaremetalInstanceNetworkInterfaceArgs
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    private_ip str
    The private IP address assigned to the instance.
    raid_type str
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    remark str
    The remarks of instance. (Default: "").
    root_password str
    security_group str
    The ID of the associated security group.
    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).
    availabilityZone String
    The availability zone where the instance is created.
    imageId String
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instanceType String
    The instance type of expected bare metal instance.
    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.
    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.
    allowStoppingForResizing Boolean
    Allow stopping the instance when the boot disk size needs to be resized.
    allowStoppingForUpdate Boolean
    baremetalInstanceId String
    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. Only cloud disk type instance can have a custom boot disk.
    bootDiskType String
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    chargeType String
    The charge type of instance, possible values are: year, month and day. (Default: month).
    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.
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached should be destroyed on instance termination.
    deleteEipsWithInstance Boolean
    Whether the EIP associated should be destroyed on instance termination.
    duration Number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    name String
    networkInterface Property Map
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    privateIp String
    The private IP address assigned to the instance.
    raidType String
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    securityGroup String
    The ID of the associated security group.
    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).

    Outputs

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

    BootDiskId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RdmaClusterId string
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    BootDiskId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RdmaClusterId string
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    bootDiskId String
    id String
    The provider-assigned unique ID for this managed resource.
    rdmaClusterId String
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    bootDiskId string
    id string
    The provider-assigned unique ID for this managed resource.
    rdmaClusterId string
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    boot_disk_id str
    id str
    The provider-assigned unique ID for this managed resource.
    rdma_cluster_id str
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    bootDiskId String
    id String
    The provider-assigned unique ID for this managed resource.
    rdmaClusterId String
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.

    Look up Existing BaremetalInstance Resource

    Get an existing BaremetalInstance 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?: BaremetalInstanceState, opts?: CustomResourceOptions): BaremetalInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_stopping_for_resizing: Optional[bool] = None,
            allow_stopping_for_update: Optional[bool] = None,
            availability_zone: Optional[str] = None,
            baremetal_instance_id: Optional[str] = None,
            boot_disk_id: Optional[str] = None,
            boot_disk_size: Optional[float] = None,
            boot_disk_type: Optional[str] = None,
            charge_type: Optional[str] = None,
            data_disks: Optional[BaremetalInstanceDataDisksArgs] = None,
            delete_disks_with_instance: Optional[bool] = None,
            delete_eips_with_instance: Optional[bool] = None,
            duration: Optional[float] = None,
            image_id: Optional[str] = None,
            instance_type: Optional[str] = None,
            name: Optional[str] = None,
            network_interface: Optional[BaremetalInstanceNetworkInterfaceArgs] = None,
            private_ip: Optional[str] = None,
            raid_type: Optional[str] = None,
            rdma_cluster_id: Optional[str] = None,
            remark: Optional[str] = None,
            root_password: Optional[str] = None,
            security_group: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tag: Optional[str] = None,
            vpc_id: Optional[str] = None) -> BaremetalInstance
    func GetBaremetalInstance(ctx *Context, name string, id IDInput, state *BaremetalInstanceState, opts ...ResourceOption) (*BaremetalInstance, error)
    public static BaremetalInstance Get(string name, Input<string> id, BaremetalInstanceState? state, CustomResourceOptions? opts = null)
    public static BaremetalInstance get(String name, Output<String> id, BaremetalInstanceState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:BaremetalInstance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowStoppingForResizing bool
    Allow stopping the instance when the boot disk size needs to be resized.
    AllowStoppingForUpdate bool
    AvailabilityZone string
    The availability zone where the instance is created.
    BaremetalInstanceId string
    BootDiskId string
    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. Only cloud disk type instance can have a custom boot disk.
    BootDiskType string
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    ChargeType string
    The charge type of instance, possible values are: year, month and day. (Default: month).
    DataDisks BaremetalInstanceDataDisks
    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.
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached should be destroyed on instance termination.
    DeleteEipsWithInstance bool
    Whether the EIP associated should be destroyed on instance termination.
    Duration double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    ImageId string
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    InstanceType string
    The instance type of expected bare metal instance.
    Name string
    NetworkInterface BaremetalInstanceNetworkInterface
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    PrivateIp string
    The private IP address assigned to the instance.
    RaidType string
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    RdmaClusterId string
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecurityGroup string
    The ID of the associated security group.
    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).
    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.
    AllowStoppingForResizing bool
    Allow stopping the instance when the boot disk size needs to be resized.
    AllowStoppingForUpdate bool
    AvailabilityZone string
    The availability zone where the instance is created.
    BaremetalInstanceId string
    BootDiskId string
    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. Only cloud disk type instance can have a custom boot disk.
    BootDiskType string
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    ChargeType string
    The charge type of instance, possible values are: year, month and day. (Default: month).
    DataDisks BaremetalInstanceDataDisksArgs
    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.
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached should be destroyed on instance termination.
    DeleteEipsWithInstance bool
    Whether the EIP associated should be destroyed on instance termination.
    Duration float64
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    ImageId string
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    InstanceType string
    The instance type of expected bare metal instance.
    Name string
    NetworkInterface BaremetalInstanceNetworkInterfaceArgs
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    PrivateIp string
    The private IP address assigned to the instance.
    RaidType string
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    RdmaClusterId string
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    Remark string
    The remarks of instance. (Default: "").
    RootPassword string
    SecurityGroup string
    The ID of the associated security group.
    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).
    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.
    allowStoppingForResizing Boolean
    Allow stopping the instance when the boot disk size needs to be resized.
    allowStoppingForUpdate Boolean
    availabilityZone String
    The availability zone where the instance is created.
    baremetalInstanceId String
    bootDiskId String
    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. Only cloud disk type instance can have a custom boot disk.
    bootDiskType String
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    chargeType String
    The charge type of instance, possible values are: year, month and day. (Default: month).
    dataDisks BaremetalInstanceDataDisks
    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.
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached should be destroyed on instance termination.
    deleteEipsWithInstance Boolean
    Whether the EIP associated should be destroyed on instance termination.
    duration Double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    imageId String
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instanceType String
    The instance type of expected bare metal instance.
    name String
    networkInterface BaremetalInstanceNetworkInterface
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    privateIp String
    The private IP address assigned to the instance.
    raidType String
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    rdmaClusterId String
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    securityGroup String
    The ID of the associated security group.
    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).
    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.
    allowStoppingForResizing boolean
    Allow stopping the instance when the boot disk size needs to be resized.
    allowStoppingForUpdate boolean
    availabilityZone string
    The availability zone where the instance is created.
    baremetalInstanceId string
    bootDiskId string
    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. Only cloud disk type instance can have a custom boot disk.
    bootDiskType string
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    chargeType string
    The charge type of instance, possible values are: year, month and day. (Default: month).
    dataDisks BaremetalInstanceDataDisks
    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.
    deleteDisksWithInstance boolean
    Whether the cloud data disks attached should be destroyed on instance termination.
    deleteEipsWithInstance boolean
    Whether the EIP associated should be destroyed on instance termination.
    duration number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    imageId string
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instanceType string
    The instance type of expected bare metal instance.
    name string
    networkInterface BaremetalInstanceNetworkInterface
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    privateIp string
    The private IP address assigned to the instance.
    raidType string
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    rdmaClusterId string
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    remark string
    The remarks of instance. (Default: "").
    rootPassword string
    securityGroup string
    The ID of the associated security group.
    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).
    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.
    allow_stopping_for_resizing bool
    Allow stopping the instance when the boot disk size needs to be resized.
    allow_stopping_for_update bool
    availability_zone str
    The availability zone where the instance is created.
    baremetal_instance_id str
    boot_disk_id str
    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. Only cloud disk type instance can have a custom boot disk.
    boot_disk_type str
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    charge_type str
    The charge type of instance, possible values are: year, month and day. (Default: month).
    data_disks BaremetalInstanceDataDisksArgs
    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.
    delete_disks_with_instance bool
    Whether the cloud data disks attached should be destroyed on instance termination.
    delete_eips_with_instance bool
    Whether the EIP associated should be destroyed on instance termination.
    duration float
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    image_id str
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instance_type str
    The instance type of expected bare metal instance.
    name str
    network_interface BaremetalInstanceNetworkInterfaceArgs
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    private_ip str
    The private IP address assigned to the instance.
    raid_type str
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    rdma_cluster_id str
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    remark str
    The remarks of instance. (Default: "").
    root_password str
    security_group str
    The ID of the associated security group.
    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).
    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.
    allowStoppingForResizing Boolean
    Allow stopping the instance when the boot disk size needs to be resized.
    allowStoppingForUpdate Boolean
    availabilityZone String
    The availability zone where the instance is created.
    baremetalInstanceId String
    bootDiskId String
    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. Only cloud disk type instance can have a custom boot disk.
    bootDiskType String
    The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
    chargeType String
    The charge type of instance, possible values are: year, month and day. (Default: month).
    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.
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached should be destroyed on instance termination.
    deleteEipsWithInstance Boolean
    Whether the EIP associated should be destroyed on instance termination.
    duration Number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month.
    imageId String
    The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
    instanceType String
    The instance type of expected bare metal instance.
    name String
    networkInterface Property Map
    Additional network interface eips to attach to the instance. network_interface configurations only apply on resource creation. The count of network_interface can only be one. See network_interface below for details on attributes.
    privateIp String
    The private IP address assigned to the instance.
    raidType String
    Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
    rdmaClusterId String
    The RDMA Cluster ID of disk. It is mandatory if your disk type is rssd_data_disk in ucloud.Disk resource and must be set to the same value as the bare metal instance to attach to.
    remark String
    The remarks of instance. (Default: "").
    rootPassword String
    securityGroup String
    The ID of the associated security group.
    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).
    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

    BaremetalInstanceDataDisks, BaremetalInstanceDataDisksArgs

    Size double
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    Type string
    The type of the cloud data disk. Possible values are: cloud_normal for cloud disk, cloud_ssd for SSD cloud disk, cloud_rssd as RDMA-SSD cloud disk.
    DeviceName string
    Id string
    Size float64
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    Type string
    The type of the cloud data disk. Possible values are: cloud_normal for cloud disk, cloud_ssd for SSD cloud disk, cloud_rssd as RDMA-SSD cloud disk.
    DeviceName string
    Id string
    size Double
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type String
    The type of the cloud data disk. Possible values are: cloud_normal for cloud disk, cloud_ssd for SSD cloud disk, cloud_rssd as RDMA-SSD cloud disk.
    deviceName String
    id String
    size number
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type string
    The type of the cloud data disk. Possible values are: cloud_normal for cloud disk, cloud_ssd for SSD cloud disk, cloud_rssd as RDMA-SSD cloud disk.
    deviceName string
    id string
    size float
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type str
    The type of the cloud data disk. Possible values are: cloud_normal for cloud disk, cloud_ssd for SSD cloud disk, cloud_rssd as RDMA-SSD cloud disk.
    device_name str
    id str
    size Number
    The size of the cloud data disk, range 20-8000, measured in GB (GigaByte).
    type String
    The type of the cloud data disk. Possible values are: cloud_normal for cloud disk, cloud_ssd for SSD cloud disk, cloud_rssd as RDMA-SSD cloud disk.
    deviceName String
    id String

    BaremetalInstanceNetworkInterface, BaremetalInstanceNetworkInterfaceArgs

    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
    Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
    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
    Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
    EipInternetType 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
    Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
    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
    Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
    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
    Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
    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
    Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
    eipInternetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.

    Import

    Bare metal instance can be imported using the id, e.g.

    $ pulumi import ucloud:index/baremetalInstance:BaremetalInstance example upm-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 logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud