yc compute instance
Manage virtual machine instances
Command Usage
Syntax:
yc compute instance <command>
Aliases:
instances
Command 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 Flags
|
Flag |
Description |
|
|
Set the custom configuration file. |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
Set the ID of the cloud to use. |
|
|
Set the ID of the folder to use. |
|
|
Set the name of the folder to use (will be resolved to id). |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the OAuth token to use. |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Query to select values from the response using jq syntax |
|
|
Display help for the command. |