yc compute instance get
Written by
Updated at December 2, 2024
Show information about the specified virtual machine instance
Command Usage
Syntax:
yc compute instance get <INSTANCE-NAME>|<INSTANCE-ID> [<INSTANCE-NAME>|<INSTANCE-ID>...] [--full] [Global Flags...]
Aliases:
describeshow
Flags
| Flag | Description |
|---|---|
--id |
stringInstance id. |
--name |
stringInstance name. |
--full |
Whether description should include metadata of the instance |
Global Flags
| Flag | Description |
|---|---|
--profile |
stringSet 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 |
intEnable 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 |
stringSet the ID of the cloud to use. |
--folder-id |
stringSet the ID of the folder to use. |
--folder-name |
stringSet the name of the folder to use (will be resolved to id). |
--endpoint |
stringSet the Cloud API endpoint (host:port). |
--token |
stringSet the OAuth token to use. |
--impersonate-service-account-id |
stringSet the ID of the service account to impersonate. |
--no-browser |
Disable opening browser for authentication. |
--format |
stringSet the output format: text (default), yaml, json, json-rest. |
--jq |
stringQuery to select values from the response using jq syntax |
-h,--help |
Display help for the command. |
Examples
- 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