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
  • Access management
  • Pricing policy
    • Overview
    • connect-to-serial-port
      • Overview
      • add-access-binding
      • add-labels
      • add-metadata
      • add-one-to-one-nat
      • attach-disk
      • attach-filesystem
      • attach-network-interface
      • create
      • create-with-container
      • delete
      • detach-disk
      • detach-filesystem
      • detach-network-interface
      • get
      • get-serial-port-output
      • list
      • list-access-bindings
      • list-operations
      • move
      • relocate
      • remove-access-binding
      • remove-labels
      • remove-metadata
      • remove-one-to-one-nat
      • restart
      • set-access-bindings
      • simulate-maintenance-event
      • start
      • stop
      • update
      • update-container
      • update-network-interface
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. CLI reference
  2. instance
  3. get

yc compute instance get

Written by
Yandex Cloud
Updated at December 2, 2024

Show information about the specified virtual machine instance

Command UsageCommand Usage

Syntax:

yc compute instance get <INSTANCE-NAME>|<INSTANCE-ID> [<INSTANCE-NAME>|<INSTANCE-ID>...] [--full] [Global Flags...]

Aliases:

  • describe
  • show

FlagsFlags

Flag Description
--id string
Instance id.
--name string
Instance name.
--full Whether description should include metadata of the instance

Global FlagsGlobal Flags

Flag Description
--profile string
Set the custom configuration file.
--debug Debug logging.
--debug-grpc Debug gRPC logging. Very verbose, used for debugging connection problems.
--no-user-output Disable printing user intended output to stderr.
--retry int
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
Pass 0 to disable retries. Pass any negative value for infinite retries.
Even infinite retries are capped with 2 minutes timeout.
--cloud-id string
Set the ID of the cloud to use.
--folder-id string
Set the ID of the folder to use.
--folder-name string
Set the name of the folder to use (will be resolved to id).
--endpoint string
Set the Cloud API endpoint (host:port).
--token string
Set the OAuth token to use.
--impersonate-service-account-id string
Set the ID of the service account to impersonate.
--no-browser Disable opening browser for authentication.
--format string
Set the output format: text (default), yaml, json, json-rest.
--jq string
Query to select values from the response using jq syntax
-h,--help Display help for the command.

ExamplesExamples

  • Attaching a file storage to a VM
  • Detaching a file storage from a VM
  • Adding a VM to a GPU cluster
  • Creating a password for a Linux user
  • Adding SSH keys for other users
  • Adding a network interface to a stopped VM
  • Deleting a network interface from a VM
  • Updating the VM internal IP address
  • Attaching a disk
  • Assigning a public IP address to a VM
  • Updating a VM subnet
  • Moving a VM using a special command
  • Detaching a disk from a VM
  • Unassigning a public IP address from a VM
  • Assign the IP address to the new VM
  • Check maintenance event handling
  • Changing the vCPU and RAM configuration
  • Creating a VM with a GPU
  • Creating a VM with metadata from environment variables
  • Getting information from outside a VM
  • Accessing metadata from outside the VM instance
  • Configuring parameters of the VM metadata service

Was the article helpful?

Previous
detach-network-interface
Next
get-serial-port-output
© 2025 Direct Cursus Technology L.L.C.