public sealed class GetInventoryRequest : IMessage<GetInventoryRequest>, IEquatable<GetInventoryRequest>, IDeepCloneable<GetInventoryRequest>, IBufferMessage, IMessage
A request message for getting inventory data for the specified VM.
For {project}, either project-number or project-id can be provided.
For {instance}, either Compute Engine instance-id or instance-name
can be provided.
Property Value
Type
Description
System.String
View
public InventoryView View { get; set; }
Inventory view indicating what information should be included in the
inventory resource. If unspecified, the default view is BASIC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eGetInventoryRequest\u003c/code\u003e class within the Google Cloud OS Config V1 API, specifically version 1.5.0, which is a request message designed to retrieve inventory data for a designated virtual machine.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is 2.4.0, and the webpage lists various versions from 1.3.0 to 2.4.0, providing links to each version's documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetInventoryRequest\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, with properties such as \u003ccode\u003eInventoryName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eView\u003c/code\u003e for specifying the inventory resource and view details.\u003c/p\u003e\n"],["\u003cp\u003eThe GetInventoryRequest class offers two constructors: a default parameterless one and another one that accepts an existing GetInventoryRequest object as an argument.\u003c/p\u003e\n"],["\u003cp\u003eThe required "Name" property should follow this format:\u003ccode\u003eprojects/{project}/locations/{location}/instances/{instance}/inventory\u003c/code\u003e, supporting either \u003ccode\u003eproject-number\u003c/code\u003e or \u003ccode\u003eproject-id\u003c/code\u003e for \u003ccode\u003e{project}\u003c/code\u003e, and either \u003ccode\u003einstance-id\u003c/code\u003e or \u003ccode\u003einstance-name\u003c/code\u003e for \u003ccode\u003e{instance}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]