Cube Server
Get information on a Ionos Cloud Cube Servers
The Cube Server data source can be used to search for and return existing servers. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.
Example Usage
By ID
By Name
Argument Reference
datacenter_id
- (Required) Datacenter's UUID.name
- (Optional) Name of an existing server that you want to search for.id
- (Optional) ID of the server you want to search for.
datacenter_id
and either name
or id
must be provided. If none, or both of name
and id
are provided, the datasource will return an error.
Attributes Reference
The following attributes are returned by the datasource:
template_uuid
- The UUID of the template for creating a CUBE server; the available templates for CUBE servers can be found on the templates resourceid
- The id of that resourcename
- The name of that resourcehostname
- The hostname of the servertype
- Server usages: CUBEvm_state
- Status of the virtual Machinedatacenter_id
- The id of the datacenteravailability_zone
- The availability zone in which the server should existvm_state
- Status of the virtual Machineboot_cdrom
ram
cores
boot_volume
boot_image
token
cdroms
- list ofid
- Id of the attached cdromname
- The name of the attached cdromdescription
- Description of cdromlocation
- Location of that image/snapshotsize
- The size of the image in GBcpu_hot_plug
- Is capable of CPU hot plug (no reboot required)cpu_hot_unplug
- Is capable of CPU hot unplug (no reboot required)ram_hot_plug
- Is capable of memory hot plug (no reboot required)ram_hot_unplug
- Is capable of memory hot unplug (no reboot required)nic_hot_plug
- Is capable of nic hot plug (no reboot required)nic_hot_unplug
- Is capable of nic hot unplug (no reboot required)disc_virtio_hot_plug
- Is capable of Virt-IO drive hot plug (no reboot required)disc_virtio_hot_unplug
- Is capable of Virt-IO drive hot unplug (no reboot required)disc_scsi_hot_plug
- Is capable of SCSI drive hot plug (no reboot required)disc_scsi_hot_unplug
- Is capable of SCSI drive hot unplug (no reboot required)licence_type
- OS type of this Imageimage_type
- Type of imageimage_aliases
- List of image aliases mapped for this Imagepublic
- Indicates if the image is part of the public repository or notimage_aliases
- List of image aliases mapped for this Imagecloud_init
- Cloud init compatibility
volumes
- list ofid
- Id of the attached volumename
- Name of the attached volumetype
- Hardware type of the volume.availability_zone
- The availability zone in which the volume should existimage
- Image or snapshot ID to be used as template for this volumeimage_password
- Initial password to be set for installed OSssh_keys
- Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private keybus
- The bus type of the volumelicence_type
- OS type of this volumecpu_hot_plug
- Is capable of CPU hot plug (no reboot required)ram_hot_plug
- Is capable of memory hot plug (no reboot required)nic_hot_plug
- Is capable of nic hot plug (no reboot required)nic_hot_unplug
- Is capable of nic hot unplug (no reboot required)disc_virtio_hot_plug
- Is capable of Virt-IO drive hot plug (no reboot required)disc_virtio_hot_unplug
- Is capable of Virt-IO drive hot unplug (no reboot required)device_number
- The Logical Unit Number of the storage volumepci_slot
- The PCI slot number of the storage volumebackup_unit_id
- The uuid of the Backup Unit that user has access touser_data
- The cloud-init configuration for the volume as base64 encoded string
nics
- list ofid
- Id of the attached nicname
- Name of the attached nidmac
- The MAC address of the NICips
- Collection of IP addresses assigned to a nicdhcp
- Indicates if the nic will reserve an IP using DHCPlan
- The LAN ID the NIC will sit onfirewall_active
- Activate or deactivate the firewallfirewall_type
- The type of firewall rules that will be allowed on the NICdevice_number
- The Logical Unit Number (LUN) of the storage volumepci_slot
- The PCI slot number of the Nicfirewall_rules
- list ofid
- Id of the firewall rulename
- Name of the firewall ruleprotocol
- he protocol for the rulesource_mac
- Only traffic originating from the respective MAC address is allowedsource_ip
- Only traffic originating from the respective IPv4 address is allowed. Value null allows all source IPstarget_ip
- In case the target NIC has multiple IP addresses, only traffic directed to the respective IP address of the NIC is allowedicmp_code
- Defines the allowed code (from 0 to 254) if protocol ICMP is chosenicmp_type
- Defines the allowed type (from 0 to 254) if the protocol ICMP is chosenport_range_start
- Defines the start range of the allowed port (from 1 to 65534) if protocol TCP or UDP is chosenport_range_end
- Defines the end range of the allowed port (from 1 to 65534) if the protocol TCP or UDP is chosentype
- The type of firewall rule
security_groups_ids
- The list of Security Group IDs for the resource.
Last updated