Skip to main content

luns

Creates, updates, deletes, gets or lists a luns resource.

Overview

Nameluns
TypeResource
Idgoogle.baremetalsolution.luns

Fields

NameDatatypeDescription
idstringAn identifier for the LUN, generated by the backend.
namestringOutput only. The name of the LUN.
bootLunbooleanDisplay if this LUN is a boot LUN.
expireTimestringOutput only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.
instancesarrayOutput only. Instances this Lun is attached to.
multiprotocolTypestringThe LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.
shareablebooleanDisplay if this LUN can be shared between multiple physical servers.
sizeGbstringThe size of this LUN, in GiB.
statestringThe state of this storage volume.
storageTypestringThe storage type for this LUN.
storageVolumestringDisplay the storage volume for this LUN.
wwidstringThe WWID for this LUN.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, lunsId, projectsId, volumesIdGet details of a single storage logical unit number(LUN).
listSELECTlocationsId, projectsId, volumesIdList storage volume luns for given storage volume.
evictEXEClocationsId, lunsId, projectsId, volumesIdSkips lun's cooloff and deletes it now. Lun must be in cooloff state.

SELECT examples

List storage volume luns for given storage volume.

SELECT
id,
name,
bootLun,
expireTime,
instances,
multiprotocolType,
shareable,
sizeGb,
state,
storageType,
storageVolume,
wwid
FROM google.baremetalsolution.luns
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND volumesId = '{{ volumesId }}';