Skip to main content

os_images

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

Overview

Nameos_images
TypeResource
Idgoogle.baremetalsolution.os_images

Fields

NameDatatypeDescription
namestringOutput only. OS Image's unique name.
descriptionstringOS Image description.
applicableInstanceTypesarrayInstance types this image is applicable to. Available types
codestringOS Image code.
supportedNetworkTemplatesarrayNetwork templates that can be used with this OS Image.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, osImagesId, projectsIdGet details of a single OS image.
listSELECTlocationsId, projectsIdRetrieves the list of OS images which are currently approved.

SELECT examples

Retrieves the list of OS images which are currently approved.

SELECT
name,
description,
applicableInstanceTypes,
code,
supportedNetworkTemplates
FROM google.baremetalsolution.os_images
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';