Skip to main content

luns

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

Overview

Nameluns
TypeResource
Idgoogle.baremetalsolution.luns

Fields

The following fields are returned by SELECT queries:

Successful response

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.
expireTimestring (google-datetime)Output 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.
sizeGbstring (int64)The 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, volumesId, lunsIdGet details of a single storage logical unit number(LUN).
listselectprojectsId, locationsId, volumesIdpageSize, pageTokenList storage volume luns for given storage volume.
evictexecprojectsId, locationsId, volumesId, lunsIdSkips lun's cooloff and deletes it now. Lun must be in cooloff state.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
lunsIdstring
projectsIdstring
volumesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get details of a single storage logical unit number(LUN).

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

Lifecycle Methods

Skips lun's cooloff and deletes it now. Lun must be in cooloff state.

EXEC google.baremetalsolution.luns.evict 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@volumesId='{{ volumesId }}' --required,
@lunsId='{{ lunsId }}' --required;