public sealed class GetInventoryRequest : IMessage<GetInventoryRequest>, IEquatable<GetInventoryRequest>, IDeepCloneable<GetInventoryRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class GetInventoryRequest.
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.
[[["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\u003eThe latest version of the \u003ccode\u003eGetInventoryRequest\u003c/code\u003e class in the Google Cloud OS Config v1 API is version 2.4.0, with older versions ranging from 2.3.0 down to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetInventoryRequest\u003c/code\u003e is a request message used to retrieve inventory data for a specified virtual machine, and it 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetInventoryRequest\u003c/code\u003e class has properties such as \u003ccode\u003eInventoryName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eView\u003c/code\u003e, used for retrieving the inventory data, and it also provides constructors for creating instances of this class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property within the \u003ccode\u003eGetInventoryRequest\u003c/code\u003e class is required and corresponds to the API resource name of the inventory resource, following a specific format that includes project, location, and instance identifiers.\u003c/p\u003e\n"],["\u003cp\u003eThe class also includes a \u003ccode\u003eView\u003c/code\u003e property, which determines the level of detail to be included in the inventory resource, with the default being set to \u003ccode\u003eBASIC\u003c/code\u003e if not specified.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class GetInventoryRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.GetInventoryRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.GetInventoryRequest) \n\n public sealed class GetInventoryRequest : IMessage\u003cGetInventoryRequest\u003e, IEquatable\u003cGetInventoryRequest\u003e, IDeepCloneable\u003cGetInventoryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class GetInventoryRequest.\n\nA request message for getting inventory data for the specified VM. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetInventoryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetInventoryRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetInventoryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetInventoryRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetInventoryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetInventoryRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetInventoryRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### GetInventoryRequest()\n\n public GetInventoryRequest()\n\n### GetInventoryRequest(GetInventoryRequest)\n\n public GetInventoryRequest(GetInventoryRequest other)\n\nProperties\n----------\n\n### InventoryName\n\n public InventoryName InventoryName { get; set; }\n\n[InventoryName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.InventoryName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.GetInventoryRequest#Google_Cloud_OsConfig_V1_GetInventoryRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. API resource name for inventory resource.\n\nFormat:\n`projects/{project}/locations/{location}/instances/{instance}/inventory`\n\nFor `{project}`, either `project-number` or `project-id` can be provided.\nFor `{instance}`, either Compute Engine `instance-id` or `instance-name`\ncan be provided.\n\n### View\n\n public InventoryView View { get; set; }\n\nInventory view indicating what information should be included in the\ninventory resource. If unspecified, the default view is BASIC."]]