yc compute instance update
Update the specified virtual machine instance
Command Usage
Syntax:
yc compute instance update <INSTANCE-NAME>|<INSTANCE-ID> [Flags...] [Global Flags...]
Flags
|
Flag |
Description |
|
|
Instance id. |
|
|
Instance name. |
|
|
Display information about the operation in progress, without waiting for the operation to complete. |
|
|
A new name of the instance. |
|
|
Specifies a textual description of the instance. |
|
|
A list of label KEY=VALUE pairs to add. For example, to add two labels named 'foo' and 'bar', both with the value 'baz', use '--labels foo=baz,bar=baz'. |
|
|
Metadata to be made available to the guest operating system running on the instance. |
|
|
Options set the access mode to instance's metadata. Possible property names:
|
|
|
Same as --metadata except that the value for the entry will be read from a local file. |
|
|
Specifies how much memory instance should have in GB. You can also use M and T suffixes to specify smaller or greater size respectively. |
|
|
Specifies how many CPU cores instance should have. |
|
|
If provided, specifies baseline performance for a core in percent. |
|
|
Specifies how many GPUs instance should have. |
|
|
Specifies platform for the instance. |
|
|
Network settings for the instance. Possible property names:
|
|
|
Serial port settings for the instance. Possible property names:
|
|
|
Specifies whether instance preemptible or not |
|
|
Behaviour on maintenance events. Values: 'restart', 'migrate' |
|
|
Time between notification via metadata service and maintenance. |
|
|
Placement group to add the instance to (use an empty string to remove the instance from placement group). |
|
|
Placement group to add the instance to (use an empty string to remove the instance from placement group). |
|
|
Specifies placement group partition for the instance. |
|
|
Host group to place the instance to (to clear affinity rules use --no-host-affinity-rules). |
|
|
Host group to place the instance to (to clear affinity rules use --no-host-affinity-rules). |
|
|
Host to place the instance to (to remove all affinity rules use --no-host-affinity-rules). |
|
|
Clear host affinity rules |
|
|
Link instance to specified reserved instance pool. |
|
|
Link instance to specified reserved instance pool. |
|
|
Service account, which token can be obtained inside VM from metadata service. |
|
|
Service account, which token can be obtained inside VM from metadata service. |
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. |
- Добавить виртуальную машину в группу размещения
- Исключить виртуальную машину из группы размещения
- Привязать существующую ВМ к пулу
- Подключиться к серийной консоли
- Подключиться к серийной консоли
- Включите нужный способ авторизации
- К существующей ВМ
- Отключить доступ по OS Login
- К существующей ВМ
- Измените тип политики обслуживания для ВМ
- Изменить конфигурацию vCPU и RAM
- Включить доступ по OS Login
- Сменить тип ВМ
- Настроить параметры сервиса метаданных ВМ
- Включить доступ по OS Login