Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
  • Yandex Container Solution
    • Resource relationships
      • Overview
      • Metadata folders
      • Keys processed in public images
      • Transferring data to a VM instance
      • Accessing metadata
      • Identity document
    • Graphics processing units (GPUs)
    • Images
    • Dedicated host
    • Reserved instance pools
    • Encryption
    • Backups
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • VM instance metadata service parameters
  • Use cases
  1. Concepts
  2. VM instance metadata
  3. Overview

VM metadata

Written by
Yandex Cloud
Improved by
Updated at April 18, 2025
  • VM instance metadata service parameters
  • Use cases

Note

You can get direct access (without authentication) to metadata through a special metadata service available inside the VM instance using the following URL: http://169.254.169.254. Compute Cloud within a VM instance is available to all VM instances, regardless of their network settings and internet access.

VM instance metadata is metadata (additional data) about your VM instance.

The VM instance metadata service stores metadata in folders as key-value pairs.

You can use metadata to do the following:

  • Enable the cloud-init process when creating a VM instance.
  • Provide the required information in the user-data key to services or applications you run on the VM instance after it is created.
  • Get data from inside the VM instance for authentication in Yandex Cloud.

Your VM instance ID, Cloud Marketplace image ID, and a number of other metadata values form a unique identity document for that VM instance.

VM instance metadata service parametersVM instance metadata service parameters

In Yandex Cloud, you can access VM instance metadata in Google Compute Engine format (not all fields are supported). This is the most secure and recommended format for working with metadata of a VM instance. You must use the Metadata-Flavor:Google HTTP header when accessing the metadata service.

Compute Cloud VMs support the following VM metadata service settings:

  • gce-http-endpoint: Provides access to metadata using the Google Compute Engine format. It can be either enabled or disabled. If set to disabled, the metadata request will fail with error 400 (BadRequest). The default value is enabled.
  • gce-http-token: Enables using Google Compute Engine metadata to get the IAM token for the service account connected to the VM. It can be either enabled or disabled. If set to disabled, the token request will fail with error 400 (BadRequest). The default value is enabled.

You can get the current VM instance metadata service parameters together with the VM information using the CLI and API.

You can configure the metadata service when creating or updating VMs. For more information on how to configure the metadata service, see this guide.

Use casesUse cases

  • Secure password transmission to an initialization script
  • Secure storage of GitLab CI passwords as Yandex Lockbox secrets

See alsoSee also

  • Metadata folders
  • Keys processed in public images Yandex Cloud
  • Transferring metadata to VM instances
  • Access to VM instance metadata
  • Identity document
  • Instance template

Was the article helpful?

Previous
Resetting Windows VM passwords
Next
Metadata folders
© 2025 Direct Cursus Technology L.L.C.