luns
Creates, updates, deletes, gets or lists a luns
resource.
Overview
Name | luns |
Type | Resource |
Id | google.baremetalsolution.luns |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
id | string | An identifier for the LUN, generated by the backend. |
name | string | Output only. The name of the LUN. |
bootLun | boolean | Display if this LUN is a boot LUN. |
expireTime | string (google-datetime) | Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state. |
instances | array | Output only. Instances this Lun is attached to. |
multiprotocolType | string | The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system. |
shareable | boolean | Display if this LUN can be shared between multiple physical servers. |
sizeGb | string (int64) | The size of this LUN, in GiB. |
state | string | The state of this storage volume. |
storageType | string | The storage type for this LUN. |
storageVolume | string | Display the storage volume for this LUN. |
wwid | string | The WWID for this LUN. |
Successful response
Name | Datatype | Description |
---|---|---|
id | string | An identifier for the LUN, generated by the backend. |
name | string | Output only. The name of the LUN. |
bootLun | boolean | Display if this LUN is a boot LUN. |
expireTime | string (google-datetime) | Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state. |
instances | array | Output only. Instances this Lun is attached to. |
multiprotocolType | string | The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system. |
shareable | boolean | Display if this LUN can be shared between multiple physical servers. |
sizeGb | string (int64) | The size of this LUN, in GiB. |
state | string | The state of this storage volume. |
storageType | string | The storage type for this LUN. |
storageVolume | string | Display the storage volume for this LUN. |
wwid | string | The WWID for this LUN. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , volumesId , lunsId | Get details of a single storage logical unit number(LUN). | |
list | select | projectsId , locationsId , volumesId | pageSize , pageToken | List storage volume luns for given storage volume. |
evict | exec | projectsId , locationsId , volumesId , lunsId | Skips 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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
lunsId | string | |
projectsId | string | |
volumesId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
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;
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 projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND volumesId = '{{ volumesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lifecycle Methods
- evict
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;