yc compute instance list
Статья создана
Обновлена 31 января 2025 г.
List virtual machine instances
Command Usage
Syntax:
yc compute instance list [Flags...] [Global Flags...]
Flags
Flag | Description |
---|---|
--limit |
int The maximum number of items to list. Default is 1000 items |
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. |
Examples
- Подключить файловое хранилище к виртуальной машине
- Отключить файловое хранилище от виртуальной машины
- Создать виртуальную машину из публичного образа
- Привязать существующую ВМ к пулу зарезервированных ВМ
- Подключиться к серийной консоли
- Подключиться к серийной консоли
- Отключить доступ к серийной консоли
- Включение консоли при изменении ВМ
- Подключиться с помощью стандартного SSH-клиента
- Добавление сетевого интерфейса на остановленную ВМ
- Удалить сетевой интерфейс на виртуальной машине
- Изменить внутренний IP-адрес виртуальной машины
- Назначить роль
- Подключить диск
- Привязать к виртуальной машине публичный IP-адрес
- Изменить каталог ВМ
- Удалите исходную виртуальную машину
- Удалить виртуальную машину
- Отключить диск от виртуальной машины
- Отвязать публичный IP-адрес от виртуальной машины
- Остановить
- Привяжите IP-адрес к новой ВМ
- Изменить конфигурацию vCPU и RAM
- Изменить виртуальную машину
- Сменить тип ВМ
- Получить информацию снаружи ВМ
- Получить вывод последовательного порта
- Доступ к метаданным снаружи ВМ
- Настроить параметры сервиса метаданных ВМ
- Включить доступ по OS Login