yc compute instance get
Статья создана
Обновлена 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
- Подключить файловое хранилище к виртуальной машине
- Отключить файловое хранилище от виртуальной машины
- Создайте пароль для пользователя Linux
- Добавление SSH-ключей для других пользователей
- Добавление сетевого интерфейса на остановленную ВМ
- Удалить сетевой интерфейс на виртуальной машине
- Изменить внутренний IP-адрес виртуальной машины
- Подключить диск
- Привязать к виртуальной машине публичный IP-адрес
- Изменить подсеть ВМ
- Перенести ВМ с помощью специальной команды
- Отключить диск от виртуальной машины
- Отвязать публичный IP-адрес от виртуальной машины
- Привяжите IP-адрес к новой ВМ
- Проверьте обработку событий обслуживания
- Изменить конфигурацию vCPU и RAM
- Создание виртуальной машины с GPU
- Создать виртуальную машину с метаданными из переменных окружения
- Получить информацию снаружи ВМ
- Доступ к метаданным снаружи ВМ
- Настроить параметры сервиса метаданных ВМ