class ProjectsLocationsInstancesInventories extends Resource (View source)

The "inventories" collection of methods.

Typical usage is:

 $osconfigService = new Google\Service\OSConfig(...);
 $inventories = $osconfigService->projects_locations_instances_inventories;

Methods

get(string $name, array $optParams = [])

Get inventory data for the specified VM instance. If the VM has no associated inventory, the message NOT_FOUND is returned. (inventories.get)

listProjectsLocationsInstancesInventories(string $parent, array $optParams = [])

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

Details

Inventory get(string $name, array $optParams = [])

Get inventory data for the specified VM instance. If the VM has no associated inventory, the message NOT_FOUND is returned. (inventories.get)

Parameters

string $name

Required. API resource name for inventory resource. Format: projects/{project}/locations/{location}/instances/{instance}/inventory For {project}, either project-number or project-id can be provided. For {instance}, either Compute Engine instance-id or instance-name can be provided.

array $optParams

Optional parameters.

Return Value

Inventory

Exceptions

Exception

ListInventoriesResponse listProjectsLocationsInstancesInventories(string $parent, array $optParams = [])

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

(inventories.listProjectsLocationsInstancesInventories)

Parameters

string $parent

Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/- For {project}, either project-number or project-id can be provided.

array $optParams

Optional parameters.

Return Value

ListInventoriesResponse

Exceptions

Exception