Volume
Creates and manages IonosCloud Volume objects.
Manages a Volume on IonosCloud.
Example Usage
A primary volume will be created with the server. If there is a need for additional volumes, this resource handles it.
Argument reference
datacenter_id
- (Required)[string] The ID of a Virtual Data Center.server_id
- (Required)[string] The ID of a server.disk_type
- (Required)[string] The volume type: HDD or SSD. This property is immutable.bus
- (Optional)[Boolean] The bus type of the volume: VIRTIO or IDE.size
- (Required)[integer] The size of the volume in GB.ssh_key_path
- (Optional)[list] List of absolute paths to files containing a public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Required for IonosCloud Linux images. Required ifimage_password
is not provided. This property is immutable.ssh_keys
- (Optional)[list] List of absolute paths to files containing a public SSH key that will be injected into IonosCloud provided Linux images. Also accepts ssh keys directly. Required for IonosCloud Linux images. Required ifimage_password
is not provided. This property is immutable.sshkey
- (Computed) The associated public SSH key.image_password
- (Optional)[string] Required ifsshkey_path
is not provided.image_name
- (Optional)[string] The name, ID or alias of the image. May also be a snapshot ID. It is required iflicence_type
is not provided. Attribute is immutable.image
- (Computed) The image or snapshot UUID.licence_type
- (Optional)[string] Required ifimage_name
is not provided.name
- (Optional)[string] The name of the volume.availability_zone
- (Optional)[string] The storage availability zone assigned to the volume: AUTO, ZONE_1, ZONE_2, or ZONE_3. This property is immutableuser_data
- (Optional)[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. This option will work only with cloud-init compatible images.backup_unit_id
- (Optional)[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.device_number
- (Computed) The Logical Unit Number of the storage volume. Null for volumes not mounted to any VM.pci_slot
- (Computed) The PCI slot number of the storage volume. Null for volumes not mounted to any VM.cpu_hot_plug
- (Computed)[string] Is capable of CPU hot plug (no reboot required)ram_hot_plug
- (Computed)[string] Is capable of memory hot plug (no reboot required)nic_hot_plug
- (Computed)[string] Is capable of nic hot plug (no reboot required)nic_hot_unplug
- (Computed)[string] Is capable of nic hot unplug (no reboot required)disc_virtio_hot_plug
- (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required)disc_virtio_hot_unplug
- (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.boot_server
- (Computed)[string] The UUID of the attached server.
⚠ WARNING
ssh_key_path and ssh_keys fields are immutable. If you want to create a CUBE server, the type of the inline volume must be set to DAS. In this case, you can not set the
size
argument since it is taken from thetemplate_uuid
you set in the server.
Import
Resource Volume can be imported using the resource id
, e.g.
Last updated