ucloud.BaremetalInstance
Explore with Pulumi AI
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:
- Availability
Zone string - The availability zone where the instance is created.
- Image
Id string - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- Instance
Type string - The instance type of expected bare metal instance.
- 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.
- 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.
- Allow
Stopping boolFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- Allow
Stopping boolFor Update - Baremetal
Instance stringId - Boot
Disk doubleSize - 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 stringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- Charge
Type string - The charge type of instance, possible values are: year, month and day. (Default: month).
- Data
Disks BaremetalInstance Data Disks - 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 boolWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- Delete
Eips boolWith Instance - 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
- Network
Interface BaremetalInstance Network Interface - 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 string - The private IP address assigned to the instance.
- Raid
Type 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: "").
- Root
Password string - Security
Group 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 string - The availability zone where the instance is created.
- Image
Id string - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- Instance
Type string - The instance type of expected bare metal instance.
- 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.
- 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.
- Allow
Stopping boolFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- Allow
Stopping boolFor Update - Baremetal
Instance stringId - Boot
Disk float64Size - 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 stringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- Charge
Type string - The charge type of instance, possible values are: year, month and day. (Default: month).
- Data
Disks BaremetalInstance Data Disks Args - 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 boolWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- Delete
Eips boolWith Instance - 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
- Network
Interface BaremetalInstance Network Interface Args - 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 string - The private IP address assigned to the instance.
- Raid
Type 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: "").
- Root
Password string - Security
Group 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 String - The availability zone where the instance is created.
- image
Id String - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- instance
Type String - The instance type of expected bare metal instance.
- 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.
- 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.
- allow
Stopping BooleanFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow
Stopping BooleanFor Update - baremetal
Instance StringId - boot
Disk DoubleSize - 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 StringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- charge
Type String - The charge type of instance, possible values are: year, month and day. (Default: month).
- data
Disks BaremetalInstance Data Disks - 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 BooleanWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete
Eips BooleanWith Instance - 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
- network
Interface BaremetalInstance Network Interface - 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 String - The private IP address assigned to the instance.
- raid
Type 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: "").
- root
Password String - security
Group 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 string - The availability zone where the instance is created.
- image
Id string - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- instance
Type string - The instance type of expected bare metal instance.
- 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.
- 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.
- allow
Stopping booleanFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow
Stopping booleanFor Update - baremetal
Instance stringId - boot
Disk numberSize - 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 stringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- charge
Type string - The charge type of instance, possible values are: year, month and day. (Default: month).
- data
Disks BaremetalInstance Data Disks - 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 booleanWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete
Eips booleanWith Instance - 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
- network
Interface BaremetalInstance Network Interface - 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 string - The private IP address assigned to the instance.
- raid
Type 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: "").
- root
Password string - security
Group 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_ boolfor_ resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow_
stopping_ boolfor_ update - baremetal_
instance_ strid - boot_
disk_ floatsize - 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_ strtype - 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 BaremetalInstance Data Disks Args - 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_ boolwith_ instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete_
eips_ boolwith_ instance - 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 BaremetalInstance Network Interface Args - 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).
- availability
Zone String - The availability zone where the instance is created.
- image
Id String - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- instance
Type String - The instance type of expected bare metal instance.
- 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.
- 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.
- allow
Stopping BooleanFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow
Stopping BooleanFor Update - baremetal
Instance StringId - boot
Disk NumberSize - 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 StringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- charge
Type String - The charge type of instance, possible values are: year, month and day. (Default: month).
- data
Disks 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.
- delete
Disks BooleanWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete
Eips BooleanWith Instance - 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
- network
Interface 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.
- private
Ip String - The private IP address assigned to the instance.
- raid
Type 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: "").
- root
Password String - security
Group 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:
- Boot
Disk stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Rdma
Cluster stringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.Disk
resource and must be set to the same value as the bare metal instance to attach to.
- Boot
Disk stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Rdma
Cluster stringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.Disk
resource and must be set to the same value as the bare metal instance to attach to.
- boot
Disk StringId - id String
- The provider-assigned unique ID for this managed resource.
- rdma
Cluster StringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.Disk
resource and must be set to the same value as the bare metal instance to attach to.
- boot
Disk stringId - id string
- The provider-assigned unique ID for this managed resource.
- rdma
Cluster stringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.Disk
resource and must be set to the same value as the bare metal instance to attach to.
- boot_
disk_ strid - id str
- The provider-assigned unique ID for this managed resource.
- rdma_
cluster_ strid - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.Disk
resource and must be set to the same value as the bare metal instance to attach to.
- boot
Disk StringId - id String
- The provider-assigned unique ID for this managed resource.
- rdma
Cluster StringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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.
- Allow
Stopping boolFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- Allow
Stopping boolFor Update - Availability
Zone string - The availability zone where the instance is created.
- Baremetal
Instance stringId - Boot
Disk stringId - Boot
Disk doubleSize - 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 stringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- Charge
Type string - The charge type of instance, possible values are: year, month and day. (Default: month).
- Data
Disks BaremetalInstance Data Disks - 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 boolWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- Delete
Eips boolWith Instance - 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.
- Image
Id string - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- Instance
Type string - The instance type of expected bare metal instance.
- Name string
- Network
Interface BaremetalInstance Network Interface - 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 string - The private IP address assigned to the instance.
- Raid
Type string - Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
- Rdma
Cluster stringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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: "").
- Root
Password string - Security
Group string - The ID of the associated security group.
- 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).
- 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.
- Allow
Stopping boolFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- Allow
Stopping boolFor Update - Availability
Zone string - The availability zone where the instance is created.
- Baremetal
Instance stringId - Boot
Disk stringId - Boot
Disk float64Size - 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 stringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- Charge
Type string - The charge type of instance, possible values are: year, month and day. (Default: month).
- Data
Disks BaremetalInstance Data Disks Args - 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 boolWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- Delete
Eips boolWith Instance - 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.
- Image
Id string - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- Instance
Type string - The instance type of expected bare metal instance.
- Name string
- Network
Interface BaremetalInstance Network Interface Args - 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 string - The private IP address assigned to the instance.
- Raid
Type string - Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
- Rdma
Cluster stringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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: "").
- Root
Password string - Security
Group string - The ID of the associated security group.
- 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).
- 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.
- allow
Stopping BooleanFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow
Stopping BooleanFor Update - availability
Zone String - The availability zone where the instance is created.
- baremetal
Instance StringId - boot
Disk StringId - boot
Disk DoubleSize - 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 StringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- charge
Type String - The charge type of instance, possible values are: year, month and day. (Default: month).
- data
Disks BaremetalInstance Data Disks - 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 BooleanWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete
Eips BooleanWith Instance - 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.
- image
Id String - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- instance
Type String - The instance type of expected bare metal instance.
- name String
- network
Interface BaremetalInstance Network Interface - 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 String - The private IP address assigned to the instance.
- raid
Type String - Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
- rdma
Cluster StringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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: "").
- root
Password String - security
Group String - The ID of the associated security group.
- 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).
- 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.
- allow
Stopping booleanFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow
Stopping booleanFor Update - availability
Zone string - The availability zone where the instance is created.
- baremetal
Instance stringId - boot
Disk stringId - boot
Disk numberSize - 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 stringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- charge
Type string - The charge type of instance, possible values are: year, month and day. (Default: month).
- data
Disks BaremetalInstance Data Disks - 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 booleanWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete
Eips booleanWith Instance - 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.
- image
Id string - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- instance
Type string - The instance type of expected bare metal instance.
- name string
- network
Interface BaremetalInstance Network Interface - 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 string - The private IP address assigned to the instance.
- raid
Type string - Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
- rdma
Cluster stringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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: "").
- root
Password string - security
Group string - The ID of the associated security group.
- 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).
- 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.
- allow_
stopping_ boolfor_ resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow_
stopping_ boolfor_ update - availability_
zone str - The availability zone where the instance is created.
- baremetal_
instance_ strid - boot_
disk_ strid - boot_
disk_ floatsize - 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_ strtype - 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 BaremetalInstance Data Disks Args - 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_ boolwith_ instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete_
eips_ boolwith_ instance - 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 BaremetalInstance Network Interface Args - 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_ strid - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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.
- allow
Stopping BooleanFor Resizing - Allow stopping the instance when the boot disk size needs to be resized.
- allow
Stopping BooleanFor Update - availability
Zone String - The availability zone where the instance is created.
- baremetal
Instance StringId - boot
Disk StringId - boot
Disk NumberSize - 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 StringType - The type of boot disk. Now only cloud_rssd is supported. Only cloud disk type instance can have a custom boot disk.
- charge
Type String - The charge type of instance, possible values are: year, month and day. (Default: month).
- data
Disks 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.
- delete
Disks BooleanWith Instance - Whether the cloud data disks attached should be destroyed on instance termination.
- delete
Eips BooleanWith Instance - 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.
- image
Id String - The ID of the image used to launch the instance. It can be got from ucloud.getBaremetalImages datasource according to instance_type.
- instance
Type String - The instance type of expected bare metal instance.
- name String
- network
Interface 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.
- private
Ip String - The private IP address assigned to the instance.
- raid
Type String - Types of RAID for local disk type instance. Possible values are raid1, raid0, raid10, raid5, no_raid.
- rdma
Cluster StringId - The RDMA Cluster ID of disk. It is mandatory if your disk type is
rssd_data_disk
inucloud.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: "").
- root
Password String - security
Group String - The ID of the associated security group.
- 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).
- 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.
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.
- Device
Name 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.
- Device
Name 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.
- device
Name 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.
- device
Name 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.
- device
Name String - id String
BaremetalInstanceNetworkInterface, BaremetalInstanceNetworkInterfaceArgs
- Eip
Bandwidth 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.
- Eip
Charge stringMode - Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
- Eip
Internet stringType - Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
- Eip
Bandwidth 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.
- Eip
Charge stringMode - Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
- Eip
Internet stringType - Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.
- eip
Bandwidth 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.
- eip
Charge StringMode - Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
- eip
Internet StringType - 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 stringMode - Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
- eip
Internet stringType - 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_ strmode - Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
- eip_
internet_ strtype - 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 StringMode - Elastic IP charge mode. Possible values are raid1, raid0, raid10, raid5 and no_raid.
- eip
Internet StringType - 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.