1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. VcpuServer
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.VcpuServer

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    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:index/vcpuServer:VcpuServer myserver datacenter uuid/server uuid
    

    Optionally, you can pass primary_nic and firewallrule_id so terraform will know to import also the first nic and firewall rule (if it exists on the server):

    $ pulumi import ionoscloud:index/vcpuServer:VcpuServer myserver datacenter uuid/server uuid/primary nic id/firewall rule id
    

    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[float] = None,
                   datacenter_id: Optional[str] = None,
                   volume: Optional[VcpuServerVolumeArgs] = None,
                   cores: Optional[float] = None,
                   name: Optional[str] = None,
                   nic: Optional[VcpuServerNicArgs] = None,
                   hostname: Optional[str] = None,
                   image_name: Optional[str] = None,
                   boot_cdrom: Optional[str] = None,
                   image_password: Optional[str] = None,
                   labels: Optional[Sequence[VcpuServerLabelArgs]] = None,
                   firewallrule_ids: Optional[Sequence[str]] = None,
                   availability_zone: Optional[str] = None,
                   security_groups_ids: Optional[Sequence[str]] = None,
                   ssh_keys: Optional[Sequence[str]] = None,
                   timeouts: Optional[VcpuServerTimeoutsArgs] = None,
                   vcpu_server_id: Optional[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: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.VcpuServer("vcpuServerResource", new()
    {
        Ram = 0,
        DatacenterId = "string",
        Volume = new Ionoscloud.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,
        Name = "string",
        Nic = new Ionoscloud.Inputs.VcpuServerNicArgs
        {
            Lan = 0,
            Id = "string",
            Ipv6CidrBlock = "string",
            FirewallActive = false,
            FirewallType = "string",
            Firewalls = new[]
            {
                new Ionoscloud.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",
            },
        },
        Hostname = "string",
        ImageName = "string",
        ImagePassword = "string",
        Labels = new[]
        {
            new Ionoscloud.Inputs.VcpuServerLabelArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        FirewallruleIds = new[]
        {
            "string",
        },
        AvailabilityZone = "string",
        SecurityGroupsIds = new[]
        {
            "string",
        },
        SshKeys = new[]
        {
            "string",
        },
        Timeouts = new Ionoscloud.Inputs.VcpuServerTimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
            Update = "string",
        },
        VcpuServerId = "string",
        VmState = "string",
        BootImage = "string",
    });
    
    example, err := ionoscloud.NewVcpuServer(ctx, "vcpuServerResource", &ionoscloud.VcpuServerArgs{
    	Ram:          pulumi.Float64(0),
    	DatacenterId: pulumi.String("string"),
    	Volume: &ionoscloud.VcpuServerVolumeArgs{
    		DiskType:            pulumi.String("string"),
    		CpuHotPlug:          pulumi.Bool(false),
    		Name:                pulumi.String("string"),
    		Bus:                 pulumi.String("string"),
    		AvailabilityZone:    pulumi.String("string"),
    		DeviceNumber:        pulumi.Float64(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.Float64(0),
    		RamHotPlug:          pulumi.Bool(false),
    		Size:                pulumi.Float64(0),
    		UserData:            pulumi.String("string"),
    	},
    	Cores: pulumi.Float64(0),
    	Name:  pulumi.String("string"),
    	Nic: &ionoscloud.VcpuServerNicArgs{
    		Lan:            pulumi.Float64(0),
    		Id:             pulumi.String("string"),
    		Ipv6CidrBlock:  pulumi.String("string"),
    		FirewallActive: pulumi.Bool(false),
    		FirewallType:   pulumi.String("string"),
    		Firewalls: ionoscloud.VcpuServerNicFirewallArray{
    			&ionoscloud.VcpuServerNicFirewallArgs{
    				Protocol:       pulumi.String("string"),
    				IcmpCode:       pulumi.String("string"),
    				IcmpType:       pulumi.String("string"),
    				Id:             pulumi.String("string"),
    				Name:           pulumi.String("string"),
    				PortRangeEnd:   pulumi.Float64(0),
    				PortRangeStart: pulumi.Float64(0),
    				SourceIp:       pulumi.String("string"),
    				SourceMac:      pulumi.String("string"),
    				TargetIp:       pulumi.String("string"),
    				Type:           pulumi.String("string"),
    			},
    		},
    		DeviceNumber: pulumi.Float64(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.Float64(0),
    		SecurityGroupsIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Hostname:      pulumi.String("string"),
    	ImageName:     pulumi.String("string"),
    	ImagePassword: pulumi.String("string"),
    	Labels: ionoscloud.VcpuServerLabelArray{
    		&ionoscloud.VcpuServerLabelArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	FirewallruleIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AvailabilityZone: pulumi.String("string"),
    	SecurityGroupsIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SshKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &ionoscloud.VcpuServerTimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    	VcpuServerId: 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)
        .name("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())
        .hostname("string")
        .imageName("string")
        .imagePassword("string")
        .labels(VcpuServerLabelArgs.builder()
            .key("string")
            .value("string")
            .build())
        .firewallruleIds("string")
        .availabilityZone("string")
        .securityGroupsIds("string")
        .sshKeys("string")
        .timeouts(VcpuServerTimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .update("string")
            .build())
        .vcpuServerId("string")
        .vmState("string")
        .bootImage("string")
        .build());
    
    vcpu_server_resource = ionoscloud.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,
        name="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"],
        },
        hostname="string",
        image_name="string",
        image_password="string",
        labels=[{
            "key": "string",
            "value": "string",
        }],
        firewallrule_ids=["string"],
        availability_zone="string",
        security_groups_ids=["string"],
        ssh_keys=["string"],
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
            "update": "string",
        },
        vcpu_server_id="string",
        vm_state="string",
        boot_image="string")
    
    const vcpuServerResource = new ionoscloud.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,
        name: "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"],
        },
        hostname: "string",
        imageName: "string",
        imagePassword: "string",
        labels: [{
            key: "string",
            value: "string",
        }],
        firewallruleIds: ["string"],
        availabilityZone: "string",
        securityGroupsIds: ["string"],
        sshKeys: ["string"],
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
            update: "string",
        },
        vcpuServerId: "string",
        vmState: "string",
        bootImage: "string",
    });
    
    type: ionoscloud: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
        timeouts:
            create: string
            default: string
            delete: string
            update: string
        vcpuServerId: 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 double
    [integer] Number of server CPU cores.
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    Ram double
    [integer] The amount of memory for the server in MB.
    Volume VcpuServerVolume
    See the Volume section.
    AvailabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    BootCdrom string
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    BootImage string
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    FirewallruleIds 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
    ImageName 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.
    ImagePassword string
    [string] The password for the image.
    Labels List<VcpuServerLabel>
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    Name string
    [string] The name of the server.
    Nic VcpuServerNic
    See the Nic section.
    SecurityGroupsIds List<string>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    SshKeys 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.
    Timeouts VcpuServerTimeouts
    VcpuServerId string
    VmState string
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    Cores float64
    [integer] Number of server CPU cores.
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    Ram float64
    [integer] The amount of memory for the server in MB.
    Volume VcpuServerVolumeArgs
    See the Volume section.
    AvailabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    BootCdrom string
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    BootImage string
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    FirewallruleIds []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
    ImageName 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.
    ImagePassword string
    [string] The password for the image.
    Labels []VcpuServerLabelArgs
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    Name string
    [string] The name of the server.
    Nic VcpuServerNicArgs
    See the Nic section.
    SecurityGroupsIds []string

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    SshKeys []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.
    Timeouts VcpuServerTimeoutsArgs
    VcpuServerId string
    VmState string
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    cores Double
    [integer] Number of server CPU cores.
    datacenterId String
    [string] The ID of a Virtual Data Center.
    ram Double
    [integer] The amount of memory for the server in MB.
    volume VcpuServerVolume
    See the Volume section.
    availabilityZone String
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    bootCdrom String
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    bootImage String
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    firewallruleIds 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
    imageName 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.
    imagePassword String
    [string] The password for the image.
    labels List<VcpuServerLabel>
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    name String
    [string] The name of the server.
    nic VcpuServerNic
    See the Nic section.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    sshKeys 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.
    timeouts VcpuServerTimeouts
    vcpuServerId String
    vmState String
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    cores number
    [integer] Number of server CPU cores.
    datacenterId string
    [string] The ID of a Virtual Data Center.
    ram number
    [integer] The amount of memory for the server in MB.
    volume VcpuServerVolume
    See the Volume section.
    availabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    bootCdrom string
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    bootImage string
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    firewallruleIds 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
    imageName 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.
    imagePassword string
    [string] The password for the image.
    labels VcpuServerLabel[]
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    name string
    [string] The name of the server.
    nic VcpuServerNic
    See the Nic section.
    securityGroupsIds string[]

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    sshKeys 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.
    timeouts VcpuServerTimeouts
    vcpuServerId string
    vmState string
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    cores float
    [integer] Number of server CPU cores.
    datacenter_id str
    [string] The ID of a Virtual Data Center.
    ram float
    [integer] The amount of memory for the server in MB.
    volume VcpuServerVolumeArgs
    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.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    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[VcpuServerLabelArgs]
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    name str
    [string] The name of the server.
    nic VcpuServerNicArgs
    See the Nic section.
    security_groups_ids Sequence[str]

    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.
    timeouts VcpuServerTimeoutsArgs
    vcpu_server_id str
    vm_state str
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    cores Number
    [integer] Number of server CPU cores.
    datacenterId 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.
    availabilityZone String
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    bootCdrom String
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    bootImage String
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    firewallruleIds 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
    imageName 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.
    imagePassword 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 and value, both of the string type. Please check the example presented above to see how a label 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.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    sshKeys 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.
    timeouts Property Map
    vcpuServerId String
    vmState String
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.

    Outputs

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

    BootVolume string
    The associated boot volume.
    CpuFamily string
    FirewallruleId string
    The associated firewall rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    InlineVolumeIds List<string>
    A list with the IDs for the volumes that are defined inside the server resource.
    PrimaryIp string
    The associated IP address.
    PrimaryNic string
    The associated NIC.
    Type string
    BootVolume string
    The associated boot volume.
    CpuFamily string
    FirewallruleId string
    The associated firewall rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    InlineVolumeIds []string
    A list with the IDs for the volumes that are defined inside the server resource.
    PrimaryIp string
    The associated IP address.
    PrimaryNic string
    The associated NIC.
    Type string
    bootVolume String
    The associated boot volume.
    cpuFamily String
    firewallruleId String
    The associated firewall rule.
    id String
    The provider-assigned unique ID for this managed resource.
    inlineVolumeIds List<String>
    A list with the IDs for the volumes that are defined inside the server resource.
    primaryIp String
    The associated IP address.
    primaryNic String
    The associated NIC.
    type String
    bootVolume string
    The associated boot volume.
    cpuFamily string
    firewallruleId string
    The associated firewall rule.
    id string
    The provider-assigned unique ID for this managed resource.
    inlineVolumeIds string[]
    A list with the IDs for the volumes that are defined inside the server resource.
    primaryIp string
    The associated IP address.
    primaryNic 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_ids Sequence[str]
    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
    bootVolume String
    The associated boot volume.
    cpuFamily String
    firewallruleId String
    The associated firewall rule.
    id String
    The provider-assigned unique ID for this managed resource.
    inlineVolumeIds List<String>
    A list with the IDs for the volumes that are defined inside the server resource.
    primaryIp String
    The associated IP address.
    primaryNic 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[float] = 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[float] = None,
            security_groups_ids: Optional[Sequence[str]] = None,
            ssh_keys: Optional[Sequence[str]] = None,
            timeouts: Optional[VcpuServerTimeoutsArgs] = None,
            type: Optional[str] = None,
            vcpu_server_id: 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: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.
    The following state arguments are supported:
    AvailabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    BootCdrom string
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    BootImage string
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    BootVolume string
    The associated boot volume.
    Cores double
    [integer] Number of server CPU cores.
    CpuFamily string
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    FirewallruleId string
    The associated firewall rule.
    FirewallruleIds 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
    ImageName 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.
    ImagePassword string
    [string] The password for the image.
    InlineVolumeIds List<string>
    A list with the IDs for the volumes that are defined inside the server resource.
    Labels List<VcpuServerLabel>
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    Name string
    [string] The name of the server.
    Nic VcpuServerNic
    See the Nic section.
    PrimaryIp string
    The associated IP address.
    PrimaryNic string
    The associated NIC.
    Ram double
    [integer] The amount of memory for the server in MB.
    SecurityGroupsIds List<string>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    SshKeys 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.
    Timeouts VcpuServerTimeouts
    Type string
    VcpuServerId string
    VmState string
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    Volume VcpuServerVolume
    See the Volume section.
    AvailabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    BootCdrom string
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    BootImage string
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    BootVolume string
    The associated boot volume.
    Cores float64
    [integer] Number of server CPU cores.
    CpuFamily string
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    FirewallruleId string
    The associated firewall rule.
    FirewallruleIds []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
    ImageName 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.
    ImagePassword string
    [string] The password for the image.
    InlineVolumeIds []string
    A list with the IDs for the volumes that are defined inside the server resource.
    Labels []VcpuServerLabelArgs
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    Name string
    [string] The name of the server.
    Nic VcpuServerNicArgs
    See the Nic section.
    PrimaryIp string
    The associated IP address.
    PrimaryNic string
    The associated NIC.
    Ram float64
    [integer] The amount of memory for the server in MB.
    SecurityGroupsIds []string

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    SshKeys []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.
    Timeouts VcpuServerTimeoutsArgs
    Type string
    VcpuServerId string
    VmState string
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    Volume VcpuServerVolumeArgs
    See the Volume section.
    availabilityZone String
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    bootCdrom String
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    bootImage String
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    bootVolume String
    The associated boot volume.
    cores Double
    [integer] Number of server CPU cores.
    cpuFamily String
    datacenterId String
    [string] The ID of a Virtual Data Center.
    firewallruleId String
    The associated firewall rule.
    firewallruleIds 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
    imageName 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.
    imagePassword String
    [string] The password for the image.
    inlineVolumeIds List<String>
    A list with the IDs for the volumes that are defined inside the server resource.
    labels List<VcpuServerLabel>
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    name String
    [string] The name of the server.
    nic VcpuServerNic
    See the Nic section.
    primaryIp String
    The associated IP address.
    primaryNic String
    The associated NIC.
    ram Double
    [integer] The amount of memory for the server in MB.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    sshKeys 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.
    timeouts VcpuServerTimeouts
    type String
    vcpuServerId String
    vmState String
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    volume VcpuServerVolume
    See the Volume section.
    availabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    bootCdrom string
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    bootImage string
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    bootVolume string
    The associated boot volume.
    cores number
    [integer] Number of server CPU cores.
    cpuFamily string
    datacenterId string
    [string] The ID of a Virtual Data Center.
    firewallruleId string
    The associated firewall rule.
    firewallruleIds 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
    imageName 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.
    imagePassword string
    [string] The password for the image.
    inlineVolumeIds string[]
    A list with the IDs for the volumes that are defined inside the server resource.
    labels VcpuServerLabel[]
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    name string
    [string] The name of the server.
    nic VcpuServerNic
    See the Nic section.
    primaryIp string
    The associated IP address.
    primaryNic string
    The associated NIC.
    ram number
    [integer] The amount of memory for the server in MB.
    securityGroupsIds string[]

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    sshKeys 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.
    timeouts VcpuServerTimeouts
    type string
    vcpuServerId string
    vmState string
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    volume VcpuServerVolume
    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.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    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 float
    [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_ids Sequence[str]
    A list with the IDs for the volumes that are defined inside the server resource.
    labels Sequence[VcpuServerLabelArgs]
    A label can be seen as an object with only two required fields: key and value, both of the string type. Please check the example presented above to see how a label can be used in the plan. A server can have multiple labels.
    name str
    [string] The name of the server.
    nic VcpuServerNicArgs
    See the Nic section.
    primary_ip str
    The associated IP address.
    primary_nic str
    The associated NIC.
    ram float
    [integer] The amount of memory for the server in MB.
    security_groups_ids Sequence[str]

    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.
    timeouts VcpuServerTimeoutsArgs
    type str
    vcpu_server_id str
    vm_state str
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    volume VcpuServerVolumeArgs
    See the Volume section.
    availabilityZone String
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    bootCdrom String
    DEPRECATED Please refer to ionoscloud.ServerBootDeviceSelection (Optional)[string] The associated boot drive, if any. Must be the UUID of a bootable CDROM image that can be retrieved using the ionoscloud.getImage data source.

    Deprecated: Deprecated

    bootImage String
    [string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type is not provided.
    bootVolume String
    The associated boot volume.
    cores Number
    [integer] Number of server CPU cores.
    cpuFamily String
    datacenterId String
    [string] The ID of a Virtual Data Center.
    firewallruleId String
    The associated firewall rule.
    firewallruleIds 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
    imageName 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.
    imagePassword String
    [string] The password for the image.
    inlineVolumeIds List<String>
    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 and value, both of the string type. Please check the example presented above to see how a label 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.
    primaryIp String
    The associated IP address.
    primaryNic String
    The associated NIC.
    ram Number
    [integer] The amount of memory for the server in MB.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    sshKeys 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.
    timeouts Property Map
    type String
    vcpuServerId String
    vmState String
    Sets the power state of the vcpu server. Possible values: RUNNING or SHUTOFF.
    volume Property Map
    See the Volume section.

    Supporting Types

    VcpuServerLabel, VcpuServerLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    VcpuServerNic, VcpuServerNicArgs

    Lan double
    DeviceNumber double
    Dhcp bool
    Dhcpv6 bool
    FirewallActive bool
    FirewallType string
    Firewalls List<VcpuServerNicFirewall>
    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.
    Ipv6CidrBlock string
    Ipv6Ips List<string>
    Mac string
    Name string
    [string] The name of the server.
    PciSlot double
    SecurityGroupsIds List<string>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    Lan float64
    DeviceNumber float64
    Dhcp bool
    Dhcpv6 bool
    FirewallActive bool
    FirewallType string
    Firewalls []VcpuServerNicFirewall
    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.
    Ipv6CidrBlock string
    Ipv6Ips []string
    Mac string
    Name string
    [string] The name of the server.
    PciSlot float64
    SecurityGroupsIds []string

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    lan Double
    deviceNumber Double
    dhcp Boolean
    dhcpv6 Boolean
    firewallActive Boolean
    firewallType String
    firewalls List<VcpuServerNicFirewall>
    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.
    ipv6CidrBlock String
    ipv6Ips List<String>
    mac String
    name String
    [string] The name of the server.
    pciSlot Double
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    lan number
    deviceNumber number
    dhcp boolean
    dhcpv6 boolean
    firewallActive boolean
    firewallType string
    firewalls VcpuServerNicFirewall[]
    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.
    ipv6CidrBlock string
    ipv6Ips string[]
    mac string
    name string
    [string] The name of the server.
    pciSlot number
    securityGroupsIds string[]

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    lan float
    device_number float
    dhcp bool
    dhcpv6 bool
    firewall_active bool
    firewall_type str
    firewalls Sequence[VcpuServerNicFirewall]
    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_block str
    ipv6_ips Sequence[str]
    mac str
    name str
    [string] The name of the server.
    pci_slot float
    security_groups_ids Sequence[str]

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    lan Number
    deviceNumber Number
    dhcp Boolean
    dhcpv6 Boolean
    firewallActive Boolean
    firewallType 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.
    ipv6CidrBlock String
    ipv6Ips List<String>
    mac String
    name String
    [string] The name of the server.
    pciSlot Number
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠ WARNING

    ssh_keys field is immutable.

    VcpuServerNicFirewall, VcpuServerNicFirewallArgs

    Protocol string
    IcmpCode string
    IcmpType string
    Id string
    Name string
    [string] The name of the server.
    PortRangeEnd double
    PortRangeStart double
    SourceIp string
    SourceMac string
    TargetIp string
    Type string
    Protocol string
    IcmpCode string
    IcmpType string
    Id string
    Name string
    [string] The name of the server.
    PortRangeEnd float64
    PortRangeStart float64
    SourceIp string
    SourceMac string
    TargetIp string
    Type string
    protocol String
    icmpCode String
    icmpType String
    id String
    name String
    [string] The name of the server.
    portRangeEnd Double
    portRangeStart Double
    sourceIp String
    sourceMac String
    targetIp String
    type String
    protocol string
    icmpCode string
    icmpType string
    id string
    name string
    [string] The name of the server.
    portRangeEnd number
    portRangeStart number
    sourceIp string
    sourceMac string
    targetIp string
    type string
    protocol str
    icmp_code str
    icmp_type str
    id str
    name str
    [string] The name of the server.
    port_range_end float
    port_range_start float
    source_ip str
    source_mac str
    target_ip str
    type str
    protocol String
    icmpCode String
    icmpType String
    id String
    name String
    [string] The name of the server.
    portRangeEnd Number
    portRangeStart Number
    sourceIp String
    sourceMac String
    targetIp String
    type String

    VcpuServerTimeouts, VcpuServerTimeoutsArgs

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    VcpuServerVolume, VcpuServerVolumeArgs

    DiskType string
    AvailabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    BackupUnitId string
    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.
    BootServer string
    The UUID of the attached server.
    Bus string
    CpuHotPlug bool
    DeviceNumber double
    DiscVirtioHotPlug bool
    DiscVirtioHotUnplug bool
    LicenceType string
    [string] Sets the OS type of the server.
    Name string
    [string] The name of the server.
    NicHotPlug bool
    NicHotUnplug bool
    PciSlot double
    RamHotPlug bool
    Size double
    The size of the volume in GB.
    UserData 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.
    DiskType string
    AvailabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    BackupUnitId string
    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.
    BootServer string
    The UUID of the attached server.
    Bus string
    CpuHotPlug bool
    DeviceNumber float64
    DiscVirtioHotPlug bool
    DiscVirtioHotUnplug bool
    LicenceType string
    [string] Sets the OS type of the server.
    Name string
    [string] The name of the server.
    NicHotPlug bool
    NicHotUnplug bool
    PciSlot float64
    RamHotPlug bool
    Size float64
    The size of the volume in GB.
    UserData 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.
    diskType String
    availabilityZone String
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    backupUnitId String
    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.
    bootServer String
    The UUID of the attached server.
    bus String
    cpuHotPlug Boolean
    deviceNumber Double
    discVirtioHotPlug Boolean
    discVirtioHotUnplug Boolean
    licenceType String
    [string] Sets the OS type of the server.
    name String
    [string] The name of the server.
    nicHotPlug Boolean
    nicHotUnplug Boolean
    pciSlot Double
    ramHotPlug Boolean
    size Double
    The size of the volume in GB.
    userData 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.
    diskType string
    availabilityZone string
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    backupUnitId string
    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.
    bootServer string
    The UUID of the attached server.
    bus string
    cpuHotPlug boolean
    deviceNumber number
    discVirtioHotPlug boolean
    discVirtioHotUnplug boolean
    licenceType string
    [string] Sets the OS type of the server.
    name string
    [string] The name of the server.
    nicHotPlug boolean
    nicHotUnplug boolean
    pciSlot number
    ramHotPlug boolean
    size number
    The size of the volume in GB.
    userData 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_id str
    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_plug bool
    device_number float
    disc_virtio_hot_plug bool
    disc_virtio_hot_unplug bool
    licence_type str
    [string] Sets the OS type of the server.
    name str
    [string] The name of the server.
    nic_hot_plug bool
    nic_hot_unplug bool
    pci_slot float
    ram_hot_plug bool
    size float
    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.
    diskType String
    availabilityZone String
    [string] The availability zone in which the server should exist. E.g: AUTO, ZONE_1, ZONE_2. This property is immutable.
    backupUnitId String
    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.
    bootServer String
    The UUID of the attached server.
    bus String
    cpuHotPlug Boolean
    deviceNumber Number
    discVirtioHotPlug Boolean
    discVirtioHotUnplug Boolean
    licenceType String
    [string] Sets the OS type of the server.
    name String
    [string] The name of the server.
    nicHotPlug Boolean
    nicHotUnplug Boolean
    pciSlot Number
    ramHotPlug Boolean
    size Number
    The size of the volume in GB.
    userData 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.

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud