Skip to main content

os_images

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

Overview

Nameos_images
TypeResource
Idgoogle.baremetalsolution.os_images

Fields

The following fields are returned by SELECT queries:

Successful response

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, osImagesIdGet details of a single OS image.
listselectprojectsId, locationsIdpageSize, pageTokenRetrieves the list of OS images which are currently approved.

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
osImagesIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get details of a single OS image.

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