Skip to main content

inventories

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

Overview

Nameinventories
TypeResource
Idgoogle.osconfig.inventories

Fields

NameDatatypeDescription
namestringOutput only. The Inventory API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/inventory
itemsobjectInventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
osInfoobjectOperating system information for the VM.
updateTimestringOutput only. Timestamp of the last reported inventory for the VM.

Methods

NameAccessible byRequired ParamsDescription
listSELECTinstancesId, locationsId, projectsIdList inventory data for all VM instances in the specified zone.

SELECT examples

List inventory data for all VM instances in the specified zone.

SELECT
name,
items,
osInfo,
updateTime
FROM google.osconfig.inventories
WHERE instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';