os_images
Creates, updates, deletes, gets or lists an os_images
resource.
Overview
Name | os_images |
Type | Resource |
Id | google.baremetalsolution.os_images |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. OS Image's unique name. |
applicableInstanceTypes | array | Instance types this image is applicable to. Available types |
code | string | OS Image code. |
description | string | OS Image description. |
supportedNetworkTemplates | array | Network templates that can be used with this OS Image. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. OS Image's unique name. |
applicableInstanceTypes | array | Instance types this image is applicable to. Available types |
code | string | OS Image code. |
description | string | OS Image description. |
supportedNetworkTemplates | array | Network templates that can be used with this OS Image. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , osImagesId | Get details of a single OS image. | |
list | select | projectsId , locationsId | pageSize , pageToken | Retrieves 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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
osImagesId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
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;
Retrieves the list of OS images which are currently approved.
SELECT
name,
applicableInstanceTypes,
code,
description,
supportedNetworkTemplates
FROM google.baremetalsolution.os_images
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';