ionoscloud.compute.VCPUServer
Explore with Pulumi AI
Manages a VCPU Server on IonosCloud.
Example Usage
VCPU Server
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
import * as random from "@pulumi/random";
const example = ionoscloud.compute.getImage({
type: "HDD",
imageAlias: "ubuntu:latest",
location: "us/las",
});
const exampleDatacenter = new ionoscloud.compute.Datacenter("example", {
name: "Datacenter Example",
location: "de/txl",
description: "Datacenter Description",
secAuthProtection: false,
});
const exampleLan = new ionoscloud.compute.Lan("example", {
datacenterId: exampleDatacenter.id,
"public": true,
name: "Lan Example",
});
const exampleIPBlock = new ionoscloud.compute.IPBlock("example", {
location: exampleDatacenter.location,
size: 4,
name: "IP Block Example",
});
const serverImagePassword = new random.index.Password("server_image_password", {
length: 16,
special: false,
});
const exampleVCPUServer = new ionoscloud.compute.VCPUServer("example", {
name: "VCPU Server Example",
datacenterId: exampleDatacenter.id,
cores: 1,
ram: 1024,
availabilityZone: "ZONE_1",
imageName: example.then(example => example.id),
imagePassword: serverImagePassword.result,
volume: {
name: "system",
size: 5,
diskType: "SSD Standard",
userData: "foo",
bus: "VIRTIO",
availabilityZone: "ZONE_1",
},
nic: {
lan: exampleLan.id,
name: "system",
dhcp: true,
firewallActive: true,
firewallType: "BIDIRECTIONAL",
ips: [
exampleIPBlock.ips[0],
exampleIPBlock.ips[1],
],
firewalls: [{
protocol: "TCP",
name: "SSH",
portRangeStart: 22,
portRangeEnd: 22,
sourceMac: "00:0a:95:9d:68:17",
sourceIp: exampleIPBlock.ips[2],
targetIp: exampleIPBlock.ips[3],
type: "EGRESS",
}],
},
labels: [
{
key: "labelkey1",
value: "labelvalue1",
},
{
key: "labelkey2",
value: "labelvalue2",
},
],
});
import pulumi
import pulumi_ionoscloud as ionoscloud
import pulumi_random as random
example = ionoscloud.compute.get_image(type="HDD",
image_alias="ubuntu:latest",
location="us/las")
example_datacenter = ionoscloud.compute.Datacenter("example",
name="Datacenter Example",
location="de/txl",
description="Datacenter Description",
sec_auth_protection=False)
example_lan = ionoscloud.compute.Lan("example",
datacenter_id=example_datacenter.id,
public=True,
name="Lan Example")
example_ip_block = ionoscloud.compute.IPBlock("example",
location=example_datacenter.location,
size=4,
name="IP Block Example")
server_image_password = random.index.Password("server_image_password",
length=16,
special=False)
example_vcpu_server = ionoscloud.compute.VCPUServer("example",
name="VCPU Server Example",
datacenter_id=example_datacenter.id,
cores=1,
ram=1024,
availability_zone="ZONE_1",
image_name=example.id,
image_password=server_image_password["result"],
volume={
"name": "system",
"size": 5,
"disk_type": "SSD Standard",
"user_data": "foo",
"bus": "VIRTIO",
"availability_zone": "ZONE_1",
},
nic={
"lan": example_lan.id,
"name": "system",
"dhcp": True,
"firewall_active": True,
"firewall_type": "BIDIRECTIONAL",
"ips": [
example_ip_block.ips[0],
example_ip_block.ips[1],
],
"firewalls": [{
"protocol": "TCP",
"name": "SSH",
"port_range_start": 22,
"port_range_end": 22,
"source_mac": "00:0a:95:9d:68:17",
"source_ip": example_ip_block.ips[2],
"target_ip": example_ip_block.ips[3],
"type": "EGRESS",
}],
},
labels=[
{
"key": "labelkey1",
"value": "labelvalue1",
},
{
"key": "labelkey2",
"value": "labelvalue2",
},
])
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/pulumi/pulumi-random/sdk/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := compute.GetImage(ctx, &compute.GetImageArgs{
Type: pulumi.StringRef("HDD"),
ImageAlias: pulumi.StringRef("ubuntu:latest"),
Location: pulumi.StringRef("us/las"),
}, nil)
if err != nil {
return err
}
exampleDatacenter, err := compute.NewDatacenter(ctx, "example", &compute.DatacenterArgs{
Name: pulumi.String("Datacenter Example"),
Location: pulumi.String("de/txl"),
Description: pulumi.String("Datacenter Description"),
SecAuthProtection: pulumi.Bool(false),
})
if err != nil {
return err
}
exampleLan, err := compute.NewLan(ctx, "example", &compute.LanArgs{
DatacenterId: exampleDatacenter.ID(),
Public: pulumi.Bool(true),
Name: pulumi.String("Lan Example"),
})
if err != nil {
return err
}
exampleIPBlock, err := compute.NewIPBlock(ctx, "example", &compute.IPBlockArgs{
Location: exampleDatacenter.Location,
Size: pulumi.Int(4),
Name: pulumi.String("IP Block Example"),
})
if err != nil {
return err
}
serverImagePassword, err := random.NewPassword(ctx, "server_image_password", &random.PasswordArgs{
Length: 16,
Special: false,
})
if err != nil {
return err
}
_, err = compute.NewVCPUServer(ctx, "example", &compute.VCPUServerArgs{
Name: pulumi.String("VCPU Server Example"),
DatacenterId: exampleDatacenter.ID(),
Cores: pulumi.Int(1),
Ram: pulumi.Int(1024),
AvailabilityZone: pulumi.String("ZONE_1"),
ImageName: pulumi.String(example.Id),
ImagePassword: serverImagePassword.Result,
Volume: &compute.VCPUServerVolumeArgs{
Name: pulumi.String("system"),
Size: pulumi.Int(5),
DiskType: pulumi.String("SSD Standard"),
UserData: pulumi.String("foo"),
Bus: pulumi.String("VIRTIO"),
AvailabilityZone: pulumi.String("ZONE_1"),
},
Nic: &compute.VCPUServerNicArgs{
Lan: exampleLan.ID(),
Name: pulumi.String("system"),
Dhcp: pulumi.Bool(true),
FirewallActive: pulumi.Bool(true),
FirewallType: pulumi.String("BIDIRECTIONAL"),
Ips: pulumi.StringArray{
exampleIPBlock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[0], nil
}).(pulumi.StringOutput),
exampleIPBlock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[1], nil
}).(pulumi.StringOutput),
},
Firewalls: compute.VCPUServerNicFirewallArray{
&compute.VCPUServerNicFirewallArgs{
Protocol: pulumi.String("TCP"),
Name: pulumi.String("SSH"),
PortRangeStart: pulumi.Int(22),
PortRangeEnd: pulumi.Int(22),
SourceMac: pulumi.String("00:0a:95:9d:68:17"),
SourceIp: exampleIPBlock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[2], nil
}).(pulumi.StringOutput),
TargetIp: exampleIPBlock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[3], nil
}).(pulumi.StringOutput),
Type: pulumi.String("EGRESS"),
},
},
},
Labels: compute.VCPUServerLabelArray{
&compute.VCPUServerLabelArgs{
Key: pulumi.String("labelkey1"),
Value: pulumi.String("labelvalue1"),
},
&compute.VCPUServerLabelArgs{
Key: pulumi.String("labelkey2"),
Value: pulumi.String("labelvalue2"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
using Ionoscloud = Pulumi.Ionoscloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Compute.GetImage.Invoke(new()
{
Type = "HDD",
ImageAlias = "ubuntu:latest",
Location = "us/las",
});
var exampleDatacenter = new Ionoscloud.Compute.Datacenter("example", new()
{
Name = "Datacenter Example",
Location = "de/txl",
Description = "Datacenter Description",
SecAuthProtection = false,
});
var exampleLan = new Ionoscloud.Compute.Lan("example", new()
{
DatacenterId = exampleDatacenter.Id,
Public = true,
Name = "Lan Example",
});
var exampleIPBlock = new Ionoscloud.Compute.IPBlock("example", new()
{
Location = exampleDatacenter.Location,
Size = 4,
Name = "IP Block Example",
});
var serverImagePassword = new Random.Index.Password("server_image_password", new()
{
Length = 16,
Special = false,
});
var exampleVCPUServer = new Ionoscloud.Compute.VCPUServer("example", new()
{
Name = "VCPU Server Example",
DatacenterId = exampleDatacenter.Id,
Cores = 1,
Ram = 1024,
AvailabilityZone = "ZONE_1",
ImageName = example.Apply(getImageResult => getImageResult.Id),
ImagePassword = serverImagePassword.Result,
Volume = new Ionoscloud.Compute.Inputs.VCPUServerVolumeArgs
{
Name = "system",
Size = 5,
DiskType = "SSD Standard",
UserData = "foo",
Bus = "VIRTIO",
AvailabilityZone = "ZONE_1",
},
Nic = new Ionoscloud.Compute.Inputs.VCPUServerNicArgs
{
Lan = exampleLan.Id,
Name = "system",
Dhcp = true,
FirewallActive = true,
FirewallType = "BIDIRECTIONAL",
Ips = new[]
{
exampleIPBlock.Ips.Apply(ips => ips[0]),
exampleIPBlock.Ips.Apply(ips => ips[1]),
},
Firewalls = new[]
{
new Ionoscloud.Compute.Inputs.VCPUServerNicFirewallArgs
{
Protocol = "TCP",
Name = "SSH",
PortRangeStart = 22,
PortRangeEnd = 22,
SourceMac = "00:0a:95:9d:68:17",
SourceIp = exampleIPBlock.Ips.Apply(ips => ips[2]),
TargetIp = exampleIPBlock.Ips.Apply(ips => ips[3]),
Type = "EGRESS",
},
},
},
Labels = new[]
{
new Ionoscloud.Compute.Inputs.VCPUServerLabelArgs
{
Key = "labelkey1",
Value = "labelvalue1",
},
new Ionoscloud.Compute.Inputs.VCPUServerLabelArgs
{
Key = "labelkey2",
Value = "labelvalue2",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.compute.ComputeFunctions;
import com.pulumi.ionoscloud.compute.inputs.GetImageArgs;
import com.pulumi.ionoscloud.compute.Datacenter;
import com.pulumi.ionoscloud.compute.DatacenterArgs;
import com.pulumi.ionoscloud.compute.Lan;
import com.pulumi.ionoscloud.compute.LanArgs;
import com.pulumi.ionoscloud.compute.IPBlock;
import com.pulumi.ionoscloud.compute.IPBlockArgs;
import com.pulumi.random.password;
import com.pulumi.random.PasswordArgs;
import com.pulumi.ionoscloud.compute.VCPUServer;
import com.pulumi.ionoscloud.compute.VCPUServerArgs;
import com.pulumi.ionoscloud.compute.inputs.VCPUServerVolumeArgs;
import com.pulumi.ionoscloud.compute.inputs.VCPUServerNicArgs;
import com.pulumi.ionoscloud.compute.inputs.VCPUServerLabelArgs;
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) {
final var example = ComputeFunctions.getImage(GetImageArgs.builder()
.type("HDD")
.imageAlias("ubuntu:latest")
.location("us/las")
.build());
var exampleDatacenter = new Datacenter("exampleDatacenter", DatacenterArgs.builder()
.name("Datacenter Example")
.location("de/txl")
.description("Datacenter Description")
.secAuthProtection(false)
.build());
var exampleLan = new Lan("exampleLan", LanArgs.builder()
.datacenterId(exampleDatacenter.id())
.public_(true)
.name("Lan Example")
.build());
var exampleIPBlock = new IPBlock("exampleIPBlock", IPBlockArgs.builder()
.location(exampleDatacenter.location())
.size(4)
.name("IP Block Example")
.build());
var serverImagePassword = new Password("serverImagePassword", PasswordArgs.builder()
.length(16)
.special(false)
.build());
var exampleVCPUServer = new VCPUServer("exampleVCPUServer", VCPUServerArgs.builder()
.name("VCPU Server Example")
.datacenterId(exampleDatacenter.id())
.cores(1)
.ram(1024)
.availabilityZone("ZONE_1")
.imageName(example.applyValue(getImageResult -> getImageResult.id()))
.imagePassword(serverImagePassword.result())
.volume(VCPUServerVolumeArgs.builder()
.name("system")
.size(5)
.diskType("SSD Standard")
.userData("foo")
.bus("VIRTIO")
.availabilityZone("ZONE_1")
.build())
.nic(VCPUServerNicArgs.builder()
.lan(exampleLan.id())
.name("system")
.dhcp(true)
.firewallActive(true)
.firewallType("BIDIRECTIONAL")
.ips(
exampleIPBlock.ips().applyValue(ips -> ips[0]),
exampleIPBlock.ips().applyValue(ips -> ips[1]))
.firewalls(VCPUServerNicFirewallArgs.builder()
.protocol("TCP")
.name("SSH")
.portRangeStart(22)
.portRangeEnd(22)
.sourceMac("00:0a:95:9d:68:17")
.sourceIp(exampleIPBlock.ips().applyValue(ips -> ips[2]))
.targetIp(exampleIPBlock.ips().applyValue(ips -> ips[3]))
.type("EGRESS")
.build())
.build())
.labels(
VCPUServerLabelArgs.builder()
.key("labelkey1")
.value("labelvalue1")
.build(),
VCPUServerLabelArgs.builder()
.key("labelkey2")
.value("labelvalue2")
.build())
.build());
}
}
resources:
exampleDatacenter:
type: ionoscloud:compute:Datacenter
name: example
properties:
name: Datacenter Example
location: de/txl
description: Datacenter Description
secAuthProtection: false
exampleLan:
type: ionoscloud:compute:Lan
name: example
properties:
datacenterId: ${exampleDatacenter.id}
public: true
name: Lan Example
exampleIPBlock:
type: ionoscloud:compute:IPBlock
name: example
properties:
location: ${exampleDatacenter.location}
size: 4
name: IP Block Example
exampleVCPUServer:
type: ionoscloud:compute:VCPUServer
name: example
properties:
name: VCPU Server Example
datacenterId: ${exampleDatacenter.id}
cores: 1
ram: 1024
availabilityZone: ZONE_1
imageName: ${example.id}
imagePassword: ${serverImagePassword.result}
volume:
name: system
size: 5
diskType: SSD Standard
userData: foo
bus: VIRTIO
availabilityZone: ZONE_1
nic:
lan: ${exampleLan.id}
name: system
dhcp: true
firewallActive: true
firewallType: BIDIRECTIONAL
ips:
- ${exampleIPBlock.ips[0]}
- ${exampleIPBlock.ips[1]}
firewalls:
- protocol: TCP
name: SSH
portRangeStart: 22
portRangeEnd: 22
sourceMac: 00:0a:95:9d:68:17
sourceIp: ${exampleIPBlock.ips[2]}
targetIp: ${exampleIPBlock.ips[3]}
type: EGRESS
labels:
- key: labelkey1
value: labelvalue1
- key: labelkey2
value: labelvalue2
serverImagePassword:
type: random:password
name: server_image_password
properties:
length: 16
special: false
variables:
example:
fn::invoke:
function: ionoscloud:compute:getImage
arguments:
type: HDD
imageAlias: ubuntu:latest
location: us/las
Notes
Please note that for any secondary volume, you need to set the licence_type property to UNKNOWN
⚠️ Note: Important for deleting an firewall
rule from within a list of inline resources defined on the same nic. There is one limitation to removing one firewall rule
from the middle of the list of firewall
rules. The existing rules will be modified and the last one will be deleted.
Create VCPUServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VCPUServer(name: string, args: VCPUServerArgs, opts?: CustomResourceOptions);
@overload
def VCPUServer(resource_name: str,
args: VCPUServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VCPUServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
ram: Optional[int] = None,
datacenter_id: Optional[str] = None,
volume: Optional[VCPUServerVolumeArgs] = None,
cores: Optional[int] = None,
labels: Optional[Sequence[VCPUServerLabelArgs]] = None,
firewallrule_ids: Optional[Sequence[str]] = None,
hostname: Optional[str] = None,
image_name: Optional[str] = None,
boot_cdrom: Optional[str] = None,
name: Optional[str] = None,
image_password: Optional[str] = None,
nic: Optional[VCPUServerNicArgs] = None,
availability_zone: Optional[str] = None,
security_groups_ids: Optional[Sequence[str]] = None,
ssh_keys: Optional[Sequence[str]] = None,
vm_state: Optional[str] = None,
boot_image: Optional[str] = None)
func NewVCPUServer(ctx *Context, name string, args VCPUServerArgs, opts ...ResourceOption) (*VCPUServer, error)
public VCPUServer(string name, VCPUServerArgs args, CustomResourceOptions? opts = null)
public VCPUServer(String name, VCPUServerArgs args)
public VCPUServer(String name, VCPUServerArgs args, CustomResourceOptions options)
type: ionoscloud:compute:VCPUServer
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 VCPUServerArgs
- 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 VCPUServerArgs
- 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 VCPUServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VCPUServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VCPUServerArgs
- 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 vcpuserverResource = new Ionoscloud.Compute.VCPUServer("vcpuserverResource", new()
{
Ram = 0,
DatacenterId = "string",
Volume = new Ionoscloud.Compute.Inputs.VCPUServerVolumeArgs
{
DiskType = "string",
CpuHotPlug = false,
Name = "string",
Bus = "string",
AvailabilityZone = "string",
DeviceNumber = 0,
DiscVirtioHotPlug = false,
BootServer = "string",
DiscVirtioHotUnplug = false,
LicenceType = "string",
BackupUnitId = "string",
NicHotPlug = false,
NicHotUnplug = false,
PciSlot = 0,
RamHotPlug = false,
Size = 0,
UserData = "string",
},
Cores = 0,
Labels = new[]
{
new Ionoscloud.Compute.Inputs.VCPUServerLabelArgs
{
Key = "string",
Value = "string",
},
},
FirewallruleIds = new[]
{
"string",
},
Hostname = "string",
ImageName = "string",
Name = "string",
ImagePassword = "string",
Nic = new Ionoscloud.Compute.Inputs.VCPUServerNicArgs
{
Lan = 0,
Id = "string",
Ipv6CidrBlock = "string",
FirewallActive = false,
FirewallType = "string",
Firewalls = new[]
{
new Ionoscloud.Compute.Inputs.VCPUServerNicFirewallArgs
{
Protocol = "string",
IcmpCode = "string",
IcmpType = "string",
Id = "string",
Name = "string",
PortRangeEnd = 0,
PortRangeStart = 0,
SourceIp = "string",
SourceMac = "string",
TargetIp = "string",
Type = "string",
},
},
DeviceNumber = 0,
Ips = new[]
{
"string",
},
Dhcpv6 = false,
Ipv6Ips = new[]
{
"string",
},
Dhcp = false,
Mac = "string",
Name = "string",
PciSlot = 0,
SecurityGroupsIds = new[]
{
"string",
},
},
AvailabilityZone = "string",
SecurityGroupsIds = new[]
{
"string",
},
SshKeys = new[]
{
"string",
},
VmState = "string",
BootImage = "string",
});
example, err := compute.NewVCPUServer(ctx, "vcpuserverResource", &compute.VCPUServerArgs{
Ram: pulumi.Int(0),
DatacenterId: pulumi.String("string"),
Volume: &compute.VCPUServerVolumeArgs{
DiskType: pulumi.String("string"),
CpuHotPlug: pulumi.Bool(false),
Name: pulumi.String("string"),
Bus: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
DeviceNumber: pulumi.Int(0),
DiscVirtioHotPlug: pulumi.Bool(false),
BootServer: pulumi.String("string"),
DiscVirtioHotUnplug: pulumi.Bool(false),
LicenceType: pulumi.String("string"),
BackupUnitId: pulumi.String("string"),
NicHotPlug: pulumi.Bool(false),
NicHotUnplug: pulumi.Bool(false),
PciSlot: pulumi.Int(0),
RamHotPlug: pulumi.Bool(false),
Size: pulumi.Int(0),
UserData: pulumi.String("string"),
},
Cores: pulumi.Int(0),
Labels: compute.VCPUServerLabelArray{
&compute.VCPUServerLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
FirewallruleIds: pulumi.StringArray{
pulumi.String("string"),
},
Hostname: pulumi.String("string"),
ImageName: pulumi.String("string"),
Name: pulumi.String("string"),
ImagePassword: pulumi.String("string"),
Nic: &compute.VCPUServerNicArgs{
Lan: pulumi.Int(0),
Id: pulumi.String("string"),
Ipv6CidrBlock: pulumi.String("string"),
FirewallActive: pulumi.Bool(false),
FirewallType: pulumi.String("string"),
Firewalls: compute.VCPUServerNicFirewallArray{
&compute.VCPUServerNicFirewallArgs{
Protocol: pulumi.String("string"),
IcmpCode: pulumi.String("string"),
IcmpType: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
PortRangeEnd: pulumi.Int(0),
PortRangeStart: pulumi.Int(0),
SourceIp: pulumi.String("string"),
SourceMac: pulumi.String("string"),
TargetIp: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
DeviceNumber: pulumi.Int(0),
Ips: pulumi.StringArray{
pulumi.String("string"),
},
Dhcpv6: pulumi.Bool(false),
Ipv6Ips: pulumi.StringArray{
pulumi.String("string"),
},
Dhcp: pulumi.Bool(false),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
PciSlot: pulumi.Int(0),
SecurityGroupsIds: pulumi.StringArray{
pulumi.String("string"),
},
},
AvailabilityZone: pulumi.String("string"),
SecurityGroupsIds: pulumi.StringArray{
pulumi.String("string"),
},
SshKeys: pulumi.StringArray{
pulumi.String("string"),
},
VmState: pulumi.String("string"),
BootImage: pulumi.String("string"),
})
var vcpuserverResource = new VCPUServer("vcpuserverResource", VCPUServerArgs.builder()
.ram(0)
.datacenterId("string")
.volume(VCPUServerVolumeArgs.builder()
.diskType("string")
.cpuHotPlug(false)
.name("string")
.bus("string")
.availabilityZone("string")
.deviceNumber(0)
.discVirtioHotPlug(false)
.bootServer("string")
.discVirtioHotUnplug(false)
.licenceType("string")
.backupUnitId("string")
.nicHotPlug(false)
.nicHotUnplug(false)
.pciSlot(0)
.ramHotPlug(false)
.size(0)
.userData("string")
.build())
.cores(0)
.labels(VCPUServerLabelArgs.builder()
.key("string")
.value("string")
.build())
.firewallruleIds("string")
.hostname("string")
.imageName("string")
.name("string")
.imagePassword("string")
.nic(VCPUServerNicArgs.builder()
.lan(0)
.id("string")
.ipv6CidrBlock("string")
.firewallActive(false)
.firewallType("string")
.firewalls(VCPUServerNicFirewallArgs.builder()
.protocol("string")
.icmpCode("string")
.icmpType("string")
.id("string")
.name("string")
.portRangeEnd(0)
.portRangeStart(0)
.sourceIp("string")
.sourceMac("string")
.targetIp("string")
.type("string")
.build())
.deviceNumber(0)
.ips("string")
.dhcpv6(false)
.ipv6Ips("string")
.dhcp(false)
.mac("string")
.name("string")
.pciSlot(0)
.securityGroupsIds("string")
.build())
.availabilityZone("string")
.securityGroupsIds("string")
.sshKeys("string")
.vmState("string")
.bootImage("string")
.build());
vcpuserver_resource = ionoscloud.compute.VCPUServer("vcpuserverResource",
ram=0,
datacenter_id="string",
volume={
"disk_type": "string",
"cpu_hot_plug": False,
"name": "string",
"bus": "string",
"availability_zone": "string",
"device_number": 0,
"disc_virtio_hot_plug": False,
"boot_server": "string",
"disc_virtio_hot_unplug": False,
"licence_type": "string",
"backup_unit_id": "string",
"nic_hot_plug": False,
"nic_hot_unplug": False,
"pci_slot": 0,
"ram_hot_plug": False,
"size": 0,
"user_data": "string",
},
cores=0,
labels=[{
"key": "string",
"value": "string",
}],
firewallrule_ids=["string"],
hostname="string",
image_name="string",
name="string",
image_password="string",
nic={
"lan": 0,
"id": "string",
"ipv6_cidr_block": "string",
"firewall_active": False,
"firewall_type": "string",
"firewalls": [{
"protocol": "string",
"icmp_code": "string",
"icmp_type": "string",
"id": "string",
"name": "string",
"port_range_end": 0,
"port_range_start": 0,
"source_ip": "string",
"source_mac": "string",
"target_ip": "string",
"type": "string",
}],
"device_number": 0,
"ips": ["string"],
"dhcpv6": False,
"ipv6_ips": ["string"],
"dhcp": False,
"mac": "string",
"name": "string",
"pci_slot": 0,
"security_groups_ids": ["string"],
},
availability_zone="string",
security_groups_ids=["string"],
ssh_keys=["string"],
vm_state="string",
boot_image="string")
const vcpuserverResource = new ionoscloud.compute.VCPUServer("vcpuserverResource", {
ram: 0,
datacenterId: "string",
volume: {
diskType: "string",
cpuHotPlug: false,
name: "string",
bus: "string",
availabilityZone: "string",
deviceNumber: 0,
discVirtioHotPlug: false,
bootServer: "string",
discVirtioHotUnplug: false,
licenceType: "string",
backupUnitId: "string",
nicHotPlug: false,
nicHotUnplug: false,
pciSlot: 0,
ramHotPlug: false,
size: 0,
userData: "string",
},
cores: 0,
labels: [{
key: "string",
value: "string",
}],
firewallruleIds: ["string"],
hostname: "string",
imageName: "string",
name: "string",
imagePassword: "string",
nic: {
lan: 0,
id: "string",
ipv6CidrBlock: "string",
firewallActive: false,
firewallType: "string",
firewalls: [{
protocol: "string",
icmpCode: "string",
icmpType: "string",
id: "string",
name: "string",
portRangeEnd: 0,
portRangeStart: 0,
sourceIp: "string",
sourceMac: "string",
targetIp: "string",
type: "string",
}],
deviceNumber: 0,
ips: ["string"],
dhcpv6: false,
ipv6Ips: ["string"],
dhcp: false,
mac: "string",
name: "string",
pciSlot: 0,
securityGroupsIds: ["string"],
},
availabilityZone: "string",
securityGroupsIds: ["string"],
sshKeys: ["string"],
vmState: "string",
bootImage: "string",
});
type: ionoscloud:compute:VCPUServer
properties:
availabilityZone: string
bootImage: string
cores: 0
datacenterId: string
firewallruleIds:
- string
hostname: string
imageName: string
imagePassword: string
labels:
- key: string
value: string
name: string
nic:
deviceNumber: 0
dhcp: false
dhcpv6: false
firewallActive: false
firewallType: string
firewalls:
- icmpCode: string
icmpType: string
id: string
name: string
portRangeEnd: 0
portRangeStart: 0
protocol: string
sourceIp: string
sourceMac: string
targetIp: string
type: string
id: string
ips:
- string
ipv6CidrBlock: string
ipv6Ips:
- string
lan: 0
mac: string
name: string
pciSlot: 0
securityGroupsIds:
- string
ram: 0
securityGroupsIds:
- string
sshKeys:
- string
vmState: string
volume:
availabilityZone: string
backupUnitId: string
bootServer: string
bus: string
cpuHotPlug: false
deviceNumber: 0
discVirtioHotPlug: false
discVirtioHotUnplug: false
diskType: string
licenceType: string
name: string
nicHotPlug: false
nicHotUnplug: false
pciSlot: 0
ramHotPlug: false
size: 0
userData: string
VCPUServer 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 VCPUServer resource accepts the following input properties:
- Cores int
- [integer] Number of server CPU cores.
- Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Ram int
- [integer] The amount of memory for the server in MB.
- Volume
Ionoscloud.
VCPUServer Volume - See the Volume section.
- Availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - Boot
Cdrom string - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- Boot
Image string - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - Firewallrule
Ids List<string> - The associated firewall rules.
- Hostname string
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- Image
Name string - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - Image
Password string - [string] The password for the image.
- Labels
List<Ionoscloud.
VCPUServer Label> - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - Name string
- [string] The name of the server.
- Nic
Ionoscloud.
VCPUServer Nic - See the Nic section.
- Security
Groups List<string>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- Ssh
Keys List<string> - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - Vm
State string - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
.
- Cores int
- [integer] Number of server CPU cores.
- Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Ram int
- [integer] The amount of memory for the server in MB.
- Volume
VCPUServer
Volume Args - See the Volume section.
- Availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - Boot
Cdrom string - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- Boot
Image string - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - Firewallrule
Ids []string - The associated firewall rules.
- Hostname string
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- Image
Name string - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - Image
Password string - [string] The password for the image.
- Labels
[]VCPUServer
Label Args - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - Name string
- [string] The name of the server.
- Nic
VCPUServer
Nic Args - See the Nic section.
- Security
Groups []stringIds The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- Ssh
Keys []string - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - Vm
State string - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
.
- cores Integer
- [integer] Number of server CPU cores.
- datacenter
Id String - [string] The ID of a Virtual Data Center.
- ram Integer
- [integer] The amount of memory for the server in MB.
- volume
VCPUServer
Volume - See the Volume section.
- availability
Zone String - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot
Cdrom String - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot
Image String - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - firewallrule
Ids List<String> - The associated firewall rules.
- hostname String
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image
Name String - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image
Password String - [string] The password for the image.
- labels
List<VCPUServer
Label> - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name String
- [string] The name of the server.
- nic
VCPUServer
Nic - See the Nic section.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh
Keys List<String> - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - vm
State String - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
.
- cores number
- [integer] Number of server CPU cores.
- datacenter
Id string - [string] The ID of a Virtual Data Center.
- ram number
- [integer] The amount of memory for the server in MB.
- volume
VCPUServer
Volume - See the Volume section.
- availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot
Cdrom string - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot
Image string - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - firewallrule
Ids string[] - The associated firewall rules.
- hostname string
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image
Name string - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image
Password string - [string] The password for the image.
- labels
VCPUServer
Label[] - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name string
- [string] The name of the server.
- nic
VCPUServer
Nic - See the Nic section.
- security
Groups string[]Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh
Keys string[] - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - vm
State string - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
.
- cores int
- [integer] Number of server CPU cores.
- datacenter_
id str - [string] The ID of a Virtual Data Center.
- ram int
- [integer] The amount of memory for the server in MB.
- volume
VCPUServer
Volume Args - See the Volume section.
- availability_
zone str - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot_
cdrom str - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot_
image str - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - firewallrule_
ids Sequence[str] - The associated firewall rules.
- hostname str
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image_
name str - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image_
password str - [string] The password for the image.
- labels
Sequence[VCPUServer
Label Args] - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name str
- [string] The name of the server.
- nic
VCPUServer
Nic Args - See the Nic section.
- security_
groups_ Sequence[str]ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh_
keys Sequence[str] - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - vm_
state str - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
.
- cores Number
- [integer] Number of server CPU cores.
- datacenter
Id String - [string] The ID of a Virtual Data Center.
- ram Number
- [integer] The amount of memory for the server in MB.
- volume Property Map
- See the Volume section.
- availability
Zone String - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot
Cdrom String - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot
Image String - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - firewallrule
Ids List<String> - The associated firewall rules.
- hostname String
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image
Name String - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image
Password String - [string] The password for the image.
- labels List<Property Map>
- A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name String
- [string] The name of the server.
- nic Property Map
- See the Nic section.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh
Keys List<String> - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - vm
State String - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
.
Outputs
All input properties are implicitly available as output properties. Additionally, the VCPUServer resource produces the following output properties:
- Boot
Volume string - The associated boot volume.
- Cpu
Family string - Firewallrule
Id string - The associated firewall rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inline
Volume List<string>Ids - A list with the IDs for the volumes that are defined inside the server resource.
- Primary
Ip string - The associated IP address.
- Primary
Nic string - The associated NIC.
- Type string
- Boot
Volume string - The associated boot volume.
- Cpu
Family string - Firewallrule
Id string - The associated firewall rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inline
Volume []stringIds - A list with the IDs for the volumes that are defined inside the server resource.
- Primary
Ip string - The associated IP address.
- Primary
Nic string - The associated NIC.
- Type string
- boot
Volume String - The associated boot volume.
- cpu
Family String - firewallrule
Id String - The associated firewall rule.
- id String
- The provider-assigned unique ID for this managed resource.
- inline
Volume List<String>Ids - A list with the IDs for the volumes that are defined inside the server resource.
- primary
Ip String - The associated IP address.
- primary
Nic String - The associated NIC.
- type String
- boot
Volume string - The associated boot volume.
- cpu
Family string - firewallrule
Id string - The associated firewall rule.
- id string
- The provider-assigned unique ID for this managed resource.
- inline
Volume string[]Ids - A list with the IDs for the volumes that are defined inside the server resource.
- primary
Ip string - The associated IP address.
- primary
Nic string - The associated NIC.
- type string
- boot_
volume str - The associated boot volume.
- cpu_
family str - firewallrule_
id str - The associated firewall rule.
- id str
- The provider-assigned unique ID for this managed resource.
- inline_
volume_ Sequence[str]ids - A list with the IDs for the volumes that are defined inside the server resource.
- primary_
ip str - The associated IP address.
- primary_
nic str - The associated NIC.
- type str
- boot
Volume String - The associated boot volume.
- cpu
Family String - firewallrule
Id String - The associated firewall rule.
- id String
- The provider-assigned unique ID for this managed resource.
- inline
Volume List<String>Ids - A list with the IDs for the volumes that are defined inside the server resource.
- primary
Ip String - The associated IP address.
- primary
Nic String - The associated NIC.
- type String
Look up Existing VCPUServer Resource
Get an existing VCPUServer 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?: VCPUServerState, opts?: CustomResourceOptions): VCPUServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
boot_cdrom: Optional[str] = None,
boot_image: Optional[str] = None,
boot_volume: Optional[str] = None,
cores: Optional[int] = None,
cpu_family: Optional[str] = None,
datacenter_id: Optional[str] = None,
firewallrule_id: Optional[str] = None,
firewallrule_ids: Optional[Sequence[str]] = None,
hostname: Optional[str] = None,
image_name: Optional[str] = None,
image_password: Optional[str] = None,
inline_volume_ids: Optional[Sequence[str]] = None,
labels: Optional[Sequence[VCPUServerLabelArgs]] = None,
name: Optional[str] = None,
nic: Optional[VCPUServerNicArgs] = None,
primary_ip: Optional[str] = None,
primary_nic: Optional[str] = None,
ram: Optional[int] = None,
security_groups_ids: Optional[Sequence[str]] = None,
ssh_keys: Optional[Sequence[str]] = None,
type: Optional[str] = None,
vm_state: Optional[str] = None,
volume: Optional[VCPUServerVolumeArgs] = None) -> VCPUServer
func GetVCPUServer(ctx *Context, name string, id IDInput, state *VCPUServerState, opts ...ResourceOption) (*VCPUServer, error)
public static VCPUServer Get(string name, Input<string> id, VCPUServerState? state, CustomResourceOptions? opts = null)
public static VCPUServer get(String name, Output<String> id, VCPUServerState state, CustomResourceOptions options)
resources: _: type: ionoscloud:compute:VCPUServer 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.
- Availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - Boot
Cdrom string - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- Boot
Image string - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - Boot
Volume string - The associated boot volume.
- Cores int
- [integer] Number of server CPU cores.
- Cpu
Family string - Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Firewallrule
Id string - The associated firewall rule.
- Firewallrule
Ids List<string> - The associated firewall rules.
- Hostname string
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- Image
Name string - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - Image
Password string - [string] The password for the image.
- Inline
Volume List<string>Ids - A list with the IDs for the volumes that are defined inside the server resource.
- Labels
List<Ionoscloud.
VCPUServer Label> - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - Name string
- [string] The name of the server.
- Nic
Ionoscloud.
VCPUServer Nic - See the Nic section.
- Primary
Ip string - The associated IP address.
- Primary
Nic string - The associated NIC.
- Ram int
- [integer] The amount of memory for the server in MB.
- Security
Groups List<string>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- Ssh
Keys List<string> - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - Type string
- Vm
State string - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
. - Volume
Ionoscloud.
VCPUServer Volume - See the Volume section.
- Availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - Boot
Cdrom string - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- Boot
Image string - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - Boot
Volume string - The associated boot volume.
- Cores int
- [integer] Number of server CPU cores.
- Cpu
Family string - Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Firewallrule
Id string - The associated firewall rule.
- Firewallrule
Ids []string - The associated firewall rules.
- Hostname string
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- Image
Name string - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - Image
Password string - [string] The password for the image.
- Inline
Volume []stringIds - A list with the IDs for the volumes that are defined inside the server resource.
- Labels
[]VCPUServer
Label Args - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - Name string
- [string] The name of the server.
- Nic
VCPUServer
Nic Args - See the Nic section.
- Primary
Ip string - The associated IP address.
- Primary
Nic string - The associated NIC.
- Ram int
- [integer] The amount of memory for the server in MB.
- Security
Groups []stringIds The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- Ssh
Keys []string - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - Type string
- Vm
State string - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
. - Volume
VCPUServer
Volume Args - See the Volume section.
- availability
Zone String - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot
Cdrom String - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot
Image String - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - boot
Volume String - The associated boot volume.
- cores Integer
- [integer] Number of server CPU cores.
- cpu
Family String - datacenter
Id String - [string] The ID of a Virtual Data Center.
- firewallrule
Id String - The associated firewall rule.
- firewallrule
Ids List<String> - The associated firewall rules.
- hostname String
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image
Name String - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image
Password String - [string] The password for the image.
- inline
Volume List<String>Ids - A list with the IDs for the volumes that are defined inside the server resource.
- labels
List<VCPUServer
Label> - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name String
- [string] The name of the server.
- nic
VCPUServer
Nic - See the Nic section.
- primary
Ip String - The associated IP address.
- primary
Nic String - The associated NIC.
- ram Integer
- [integer] The amount of memory for the server in MB.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh
Keys List<String> - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - type String
- vm
State String - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
. - volume
VCPUServer
Volume - See the Volume section.
- availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot
Cdrom string - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot
Image string - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - boot
Volume string - The associated boot volume.
- cores number
- [integer] Number of server CPU cores.
- cpu
Family string - datacenter
Id string - [string] The ID of a Virtual Data Center.
- firewallrule
Id string - The associated firewall rule.
- firewallrule
Ids string[] - The associated firewall rules.
- hostname string
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image
Name string - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image
Password string - [string] The password for the image.
- inline
Volume string[]Ids - A list with the IDs for the volumes that are defined inside the server resource.
- labels
VCPUServer
Label[] - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name string
- [string] The name of the server.
- nic
VCPUServer
Nic - See the Nic section.
- primary
Ip string - The associated IP address.
- primary
Nic string - The associated NIC.
- ram number
- [integer] The amount of memory for the server in MB.
- security
Groups string[]Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh
Keys string[] - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - type string
- vm
State string - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
. - volume
VCPUServer
Volume - See the Volume section.
- availability_
zone str - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot_
cdrom str - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot_
image str - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - boot_
volume str - The associated boot volume.
- cores int
- [integer] Number of server CPU cores.
- cpu_
family str - datacenter_
id str - [string] The ID of a Virtual Data Center.
- firewallrule_
id str - The associated firewall rule.
- firewallrule_
ids Sequence[str] - The associated firewall rules.
- hostname str
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image_
name str - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image_
password str - [string] The password for the image.
- inline_
volume_ Sequence[str]ids - A list with the IDs for the volumes that are defined inside the server resource.
- labels
Sequence[VCPUServer
Label Args] - A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name str
- [string] The name of the server.
- nic
VCPUServer
Nic Args - See the Nic section.
- primary_
ip str - The associated IP address.
- primary_
nic str - The associated NIC.
- ram int
- [integer] The amount of memory for the server in MB.
- security_
groups_ Sequence[str]ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh_
keys Sequence[str] - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - type str
- vm_
state str - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
. - volume
VCPUServer
Volume Args - See the Volume section.
- availability
Zone String - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - boot
Cdrom String - DEPRECATED Please refer to ionoscloud.compute.BootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.compute.getImage data source.
- boot
Image String - [string] The image or snapshot UUID / name. May also be an image alias. It is required if
licence_type
is not provided. - boot
Volume String - The associated boot volume.
- cores Number
- [integer] Number of server CPU cores.
- cpu
Family String - datacenter
Id String - [string] The ID of a Virtual Data Center.
- firewallrule
Id String - The associated firewall rule.
- firewallrule
Ids List<String> - The associated firewall rules.
- hostname String
- (Computed)[string] The hostname of the resource. Allowed characters are a-z, 0-9 and - (minus). Hostname should not start with minus and should not be longer than 63 characters. If no value provided explicitly, it will be populated with the name of the server
- image
Name String - [string] The name, ID or alias of the image. May also be a snapshot ID. It is required if
licence_type
is not provided. Attribute is immutable. - image
Password String - [string] The password for the image.
- inline
Volume List<String>Ids - A list with the IDs for the volumes that are defined inside the server resource.
- labels List<Property Map>
- A label can be seen as an object with only two required fields:
key
andvalue
, both of thestring
type. Please check the example presented above to see how alabel
can be used in the plan. A server can have multiple labels. - name String
- [string] The name of the server.
- nic Property Map
- See the Nic section.
- primary
Ip String - The associated IP address.
- primary
Nic String - The associated NIC.
- ram Number
- [integer] The amount of memory for the server in MB.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- ssh
Keys List<String> - [list] Immutable List of absolute or relative paths to files containing public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. Does not support
~
expansion to homedir in the given path. - type String
- vm
State String - Sets the power state of the vcpu server. Possible values:
RUNNING
orSHUTOFF
. - volume Property Map
- See the Volume section.
Supporting Types
VCPUServerLabel, VCPUServerLabelArgs
VCPUServerNic, VCPUServerNicArgs
- Lan int
- Device
Number int - Dhcp bool
- Dhcpv6 bool
- Firewall
Active bool - Firewall
Type string - Firewalls
List<Ionoscloud.
VCPUServer Nic Firewall> - Allows to define firewall rules inline in the server. See the Firewall section.
- Id string
- Ips List<string>
- Collection of IP addresses assigned to a nic. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
- Ipv6Cidr
Block string - Ipv6Ips List<string>
- Mac string
- Name string
- [string] The name of the server.
- Pci
Slot int - Security
Groups List<string>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- Lan int
- Device
Number int - Dhcp bool
- Dhcpv6 bool
- Firewall
Active bool - Firewall
Type string - Firewalls
[]VCPUServer
Nic Firewall - Allows to define firewall rules inline in the server. See the Firewall section.
- Id string
- Ips []string
- Collection of IP addresses assigned to a nic. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
- Ipv6Cidr
Block string - Ipv6Ips []string
- Mac string
- Name string
- [string] The name of the server.
- Pci
Slot int - Security
Groups []stringIds The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- lan Integer
- device
Number Integer - dhcp Boolean
- dhcpv6 Boolean
- firewall
Active Boolean - firewall
Type String - firewalls
List<VCPUServer
Nic Firewall> - Allows to define firewall rules inline in the server. See the Firewall section.
- id String
- ips List<String>
- Collection of IP addresses assigned to a nic. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
- ipv6Cidr
Block String - ipv6Ips List<String>
- mac String
- name String
- [string] The name of the server.
- pci
Slot Integer - security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- lan number
- device
Number number - dhcp boolean
- dhcpv6 boolean
- firewall
Active boolean - firewall
Type string - firewalls
VCPUServer
Nic Firewall[] - Allows to define firewall rules inline in the server. See the Firewall section.
- id string
- ips string[]
- Collection of IP addresses assigned to a nic. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
- ipv6Cidr
Block string - ipv6Ips string[]
- mac string
- name string
- [string] The name of the server.
- pci
Slot number - security
Groups string[]Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- lan int
- device_
number int - dhcp bool
- dhcpv6 bool
- firewall_
active bool - firewall_
type str - firewalls
Sequence[VCPUServer
Nic Firewall] - Allows to define firewall rules inline in the server. See the Firewall section.
- id str
- ips Sequence[str]
- Collection of IP addresses assigned to a nic. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
- ipv6_
cidr_ strblock - ipv6_
ips Sequence[str] - mac str
- name str
- [string] The name of the server.
- pci_
slot int - security_
groups_ Sequence[str]ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
- lan Number
- device
Number Number - dhcp Boolean
- dhcpv6 Boolean
- firewall
Active Boolean - firewall
Type String - firewalls List<Property Map>
- Allows to define firewall rules inline in the server. See the Firewall section.
- id String
- ips List<String>
- Collection of IP addresses assigned to a nic. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
- ipv6Cidr
Block String - ipv6Ips List<String>
- mac String
- name String
- [string] The name of the server.
- pci
Slot Number - security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠ WARNING
ssh_keys field is immutable.
VCPUServerNicFirewall, VCPUServerNicFirewallArgs
- protocol str
- icmp_
code str - icmp_
type str - id str
- name str
- [string] The name of the server.
- port_
range_ intend - port_
range_ intstart - source_
ip str - source_
mac str - target_
ip str - type str
VCPUServerVolume, VCPUServerVolumeArgs
- Disk
Type string - Availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - Backup
Unit stringId - The uuid of the Backup Unit that user has access to. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property.
- Boot
Server string - The UUID of the attached server.
- Bus string
- Cpu
Hot boolPlug - Device
Number int - Disc
Virtio boolHot Plug - Disc
Virtio boolHot Unplug - Licence
Type string - [string] Sets the OS type of the server.
- Name string
- [string] The name of the server.
- Nic
Hot boolPlug - Nic
Hot boolUnplug - Pci
Slot int - Ram
Hot boolPlug - Size int
- The size of the volume in GB.
- User
Data string - The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
- Disk
Type string - Availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - Backup
Unit stringId - The uuid of the Backup Unit that user has access to. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property.
- Boot
Server string - The UUID of the attached server.
- Bus string
- Cpu
Hot boolPlug - Device
Number int - Disc
Virtio boolHot Plug - Disc
Virtio boolHot Unplug - Licence
Type string - [string] Sets the OS type of the server.
- Name string
- [string] The name of the server.
- Nic
Hot boolPlug - Nic
Hot boolUnplug - Pci
Slot int - Ram
Hot boolPlug - Size int
- The size of the volume in GB.
- User
Data string - The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
- disk
Type String - availability
Zone String - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - backup
Unit StringId - The uuid of the Backup Unit that user has access to. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property.
- boot
Server String - The UUID of the attached server.
- bus String
- cpu
Hot BooleanPlug - device
Number Integer - disc
Virtio BooleanHot Plug - disc
Virtio BooleanHot Unplug - licence
Type String - [string] Sets the OS type of the server.
- name String
- [string] The name of the server.
- nic
Hot BooleanPlug - nic
Hot BooleanUnplug - pci
Slot Integer - ram
Hot BooleanPlug - size Integer
- The size of the volume in GB.
- user
Data String - The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
- disk
Type string - availability
Zone string - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - backup
Unit stringId - The uuid of the Backup Unit that user has access to. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property.
- boot
Server string - The UUID of the attached server.
- bus string
- cpu
Hot booleanPlug - device
Number number - disc
Virtio booleanHot Plug - disc
Virtio booleanHot Unplug - licence
Type string - [string] Sets the OS type of the server.
- name string
- [string] The name of the server.
- nic
Hot booleanPlug - nic
Hot booleanUnplug - pci
Slot number - ram
Hot booleanPlug - size number
- The size of the volume in GB.
- user
Data string - The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
- disk_
type str - availability_
zone str - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - backup_
unit_ strid - The uuid of the Backup Unit that user has access to. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property.
- boot_
server str - The UUID of the attached server.
- bus str
- cpu_
hot_ boolplug - device_
number int - disc_
virtio_ boolhot_ plug - disc_
virtio_ boolhot_ unplug - licence_
type str - [string] Sets the OS type of the server.
- name str
- [string] The name of the server.
- nic_
hot_ boolplug - nic_
hot_ boolunplug - pci_
slot int - ram_
hot_ boolplug - size int
- The size of the volume in GB.
- user_
data str - The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
- disk
Type String - availability
Zone String - [string] The availability zone in which the server should exist. E.g:
AUTO
,ZONE_1
,ZONE_2
. This property is immutable. - backup
Unit StringId - The uuid of the Backup Unit that user has access to. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property.
- boot
Server String - The UUID of the attached server.
- bus String
- cpu
Hot BooleanPlug - device
Number Number - disc
Virtio BooleanHot Plug - disc
Virtio BooleanHot Unplug - licence
Type String - [string] Sets the OS type of the server.
- name String
- [string] The name of the server.
- nic
Hot BooleanPlug - nic
Hot BooleanUnplug - pci
Slot Number - ram
Hot BooleanPlug - size Number
- The size of the volume in GB.
- user
Data String - The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property.
Import
Resource VCPU Server can be imported using the resource id
and the datacenter id
, for example, passing only resource id and datacenter id means that the first nic found linked to the server will be attached to it.
$ pulumi import ionoscloud:compute/vCPUServer:VCPUServer myserver datacenter uuid/server uuid
Optionally, you can pass primary_nic
and firewallrule_id
so pulumi will know to import also the first nic and firewall rule (if it exists on the server):
$ pulumi import ionoscloud:compute/vCPUServer:VCPUServer myserver datacenter uuid/server uuid/primary nic id/firewall rule id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.