part of this value.
If not, Location will throw InvalidOperationException.
If this value has been retrived from Google Compute Engine, the it's format will be the one
described above.
Properties
InstanceId
public string InstanceId { get; }
The Instance ID of the GCE instance on which this is running. This is never null.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides details for the \u003ccode\u003eGcePlatformDetails\u003c/code\u003e class, which represents Google Compute Engine information in the Google.Api.Gax namespace, specifically version 4.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcePlatformDetails\u003c/code\u003e class offers properties such as \u003ccode\u003eInstanceId\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eMetadataJson\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZoneName\u003c/code\u003e, providing specific details about the GCE environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcePlatformDetails\u003c/code\u003e constructor takes the full metadata JSON string, project ID, instance ID, and zone name as parameters to construct details for the Google Compute Engine.\u003c/p\u003e\n"],["\u003cp\u003eThe static method \u003ccode\u003eTryLoad\u003c/code\u003e can be used to build a \u003ccode\u003eGcePlatformDetails\u003c/code\u003e instance from metadata, which will be \u003ccode\u003enull\u003c/code\u003e if the metadata does not represent a GCE instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits several members from the base \u003ccode\u003eObject\u003c/code\u003e class, such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]