Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 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. Overview

yc compute instance

Written by
Yandex Cloud
Updated at December 2, 2024

Manage virtual machine instances

Command UsageCommand Usage

Syntax:

yc compute instance <command>

Aliases:

  • instances

Command TreeCommand Tree

  • yc compute instance add-access-binding — Add access binding for the specified instance
  • yc compute instance add-labels — Add labels to specified virtual machine instance
  • yc compute instance add-metadata — Add or update metadata for the specified virtual machine instance
  • yc compute instance add-one-to-one-nat — Add one-to-one NAT to the specified network interface of virtual machine instance
  • yc compute instance attach-disk — Attach existing disk to the specified virtual machine instance
  • yc compute instance attach-filesystem — Attach existing filesystem to the specified virtual machine instance
  • yc compute instance attach-network-interface — Attach the specified network interface to the virtual machine instance
  • yc compute instance create — Create a virtual machine instance
  • yc compute instance create-with-container — Create a virtual machine instance running Docker container
  • yc compute instance delete — Delete the specified virtual machine instance
  • yc compute instance detach-disk — Detach disk from the specified virtual machine instance
  • yc compute instance detach-filesystem — Detach filesystem from the specified virtual machine instance
  • yc compute instance detach-network-interface — Detach the specified network interface from the virtual machine instance
  • yc compute instance get — Show information about the specified virtual machine instance
  • yc compute instance get-serial-port-output — Return the serial port output of the specified virtual machine instance
  • yc compute instance list — List virtual machine instances
  • yc compute instance list-access-bindings — List access bindings for the specified instance
  • yc compute instance list-operations — List operations for the specified instance
  • yc compute instance move — Move the specified virtual machine instance into the folder
  • yc compute instance relocate — Relocate the specified virtual machine instance to the zone
  • yc compute instance remove-access-binding — Remove access binding for the specified instance
  • yc compute instance remove-labels — Remove labels from specified virtual machine instance
  • yc compute instance remove-metadata — Remove keys from metadata for the specified virtual machine instance
  • yc compute instance remove-one-to-one-nat — Remove one-to-one NAT to the specified network interface of virtual machine instance
  • yc compute instance restart — Restart the specified virtual machine instance
  • yc compute instance set-access-bindings — Set access bindings for the specified instance and delete all existing access bindings if there were any
  • yc compute instance simulate-maintenance-event — Simulate a maintenance event (maintenance policy must be set)
  • yc compute instance start — Start the specified virtual machine instance
  • yc compute instance stop — Stop the specified virtual machine instance
  • yc compute instance update — Update the specified virtual machine instance
  • yc compute instance update-container — Update the specified virtual machine instance running Docker container
  • yc compute instance update-network-interface — Update the specified network interface of virtual machine 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.

Was the article helpful?

Previous
update
Next
add-access-binding
© 2025 Direct Cursus Technology L.L.C.