Interface MetadataAccessor (7.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Package
gcp-metadata
Properties
headers?: Options['headers'];
Example
// equivalent to project('project-id')
; const metadataKey = 'project/project-id';
noResponseRetries?: number;
params?: Options['params'];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Interface MetadataAccessor (7.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.0.0 (latest)](/nodejs/docs/reference/gcp-metadata/latest/gcp-metadata/metadataaccessor)\n- [6.1.0](/nodejs/docs/reference/gcp-metadata/6.1.0/gcp-metadata/metadataaccessor)\n- [6.0.0](/nodejs/docs/reference/gcp-metadata/6.0.0/gcp-metadata/metadataaccessor)\n- [5.0.1](/nodejs/docs/reference/gcp-metadata/5.0.1/gcp-metadata/metadataaccessor)\n- [4.3.1](/nodejs/docs/reference/gcp-metadata/4.3.1/gcp-metadata/metadataaccessor) \n\nPackage\n-------\n\n[gcp-metadata](../overview.html)\n\nProperties\n----------\n\n### fastFail\n\n fastFail?: boolean;\n\n### headers\n\n headers?: Options['headers'];\n\n### metadataKey\n\n metadataKey: string;\n\n**Example**\n\n// equivalent to `project('project-id')`; const metadataKey = 'project/project-id';\n\n### noResponseRetries\n\n noResponseRetries?: number;\n\n### params\n\n params?: Options['params'];"]]