yc compute instance
Written by
Updated at December 2, 2024
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 |
---|---|
--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. |