Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex Compute Cloud
  • Yandex Container Solution
  • Управление доступом
  • Правила тарификации
    • Overview
    • connect-to-serial-port
      • Overview
      • add-access-binding
      • add-labels
      • add-metadata
      • add-one-to-one-nat
      • attach-disk
      • attach-filesystem
      • attach-network-interface
      • create
      • create-with-container
      • delete
      • detach-disk
      • detach-filesystem
      • detach-network-interface
      • get
      • get-serial-port-output
      • list
      • list-access-bindings
      • list-operations
      • move
      • relocate
      • remove-access-binding
      • remove-labels
      • remove-metadata
      • remove-one-to-one-nat
      • restart
      • set-access-bindings
      • simulate-maintenance-event
      • start
      • stop
      • update
      • update-container
      • update-network-interface
  • Справочник Terraform
  • Справочник метрик
  • Аудитные логи Audit Trails
  • История изменений
  • Обучающие курсы
  1. Справочник CLI (англ.)
  2. instance
  3. relocate

yc compute instance relocate

Статья создана
Yandex Cloud
Обновлена 26 октября 2026 г.
Открыть Markdown

Relocate the specified virtual machine instance to the zone

Command UsageCommand Usage

Syntax:

yc compute instance relocate <INSTANCE-NAME>|<INSTANCE-ID> [Global Flags...]

FlagsFlags

Flag

Description

--id

string

Instance id.

--name

string

Instance name.

--async

Display information about the operation in progress, without waiting for the operation to complete.

--destination-zone-id

string

The zone to relocate to.

--network-interface

PROPERTY=VALUE[,PROPERTY=VALUE...]

Reconfigure network interface of the instance.

Possible property names:

  • subnet-name: Specifies the subnet that the interface will be part of.

  • subnet-id: Specifies the ID of the subnet that the interface will be part of.

  • address: Assigns the given internal address to the instance that is created. If no address is specified, some unassigned address from the subnet is used.

  • ipv4-address: Assigns the given internal IPv4 address to the instance that is created. If 'auto' used as value, some unassigned address from the subnet is used.

  • nat-ip-version: Specifies IP version for One-to-One NAT. Can be 'ipv4'. This flag can be applied to network interfaces with ipv4 address.

  • nat-address: Specifies public IP address for One-to-One NAT. This flag can be applied to network interfaces with ipv4 address.

  • security-group-ids: Security groups for the network interface, security-group-ids=[id1,id2],security-group-ids=id3

  • dns-record-spec: DNS records in format {name=<name>[,ttl=<ttl>][,dns-zone-id=<id>][,ptr={true|false}]}

--boot-disk-placement-group-id

string

Placement group to move boot disk to.

--boot-disk-placement-group-name

string

Placement group to move boot disk to.

--boot-disk-placement-group-partition

int

Placement group partition.

--secondary-disk-placement

PROPERTY=VALUE[,PROPERTY=VALUE...]

Target placement policies for secondary disks.

Possible property names:

  • disk-id: An ID of the disk which placement policy is to be changed.

  • disk-name: The disk which placement policy is to be changed.

  • disk-placement-group-id: Placement group to move the disk to.

  • disk-placement-group-name: Placement group to move the disk to.

  • disk-placement-group-partition: Placement group partition.

Global FlagsGlobal Flags

Flag

Description

--profile

string

Set the custom profile.

--region

string

Set the region.

--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).

--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.

--pager

string

Set the custom pager.

--no-pager

Do not pipe help output through a pager.

--format

string

Set the output format: text (default), yaml, json, json-rest.

--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.

--timeout

string

Set the timeout.

--token

string

Set the OAuth token to use.

--jq

string

Query to select values from the response using jq syntax

--endpoint

string

Set the Cloud API endpoint (host:port).

--impersonate-service-account-id

string

Set the ID of the service account to impersonate.

--no-browser

Disable opening browser for authentication.

--query

string

Query to select values from the response using jq syntax

--print-metadata

Print operation metadata along with result.

--syntax

string

Choose syntax option.

--cli-auto-prompt

string[="on"]

Enable interactive auto-prompt mode. Values: on, partial, off. Bare --cli-auto-prompt is equivalent to --cli-auto-prompt=on.

--no-cli-auto-prompt

Disable interactive auto-prompt mode (overrides --cli-auto-prompt, env and profile).

-h, --help

Display help for the command.

  • Перенести диск в другую зону доступности
  • Перенести виртуальную машину в другую зону доступности

Была ли статья полезна?

Предыдущая
move
Следующая
remove-access-binding
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»