Moving a disk to another folder
When a disk is being created, it's placed in the current folder.
In Nebius Israel, you can move a disk to another folder within one cloud.
Learn more about the resource hierarchy in Nebius Israel.
Limitations
Limitations when moving a disk:
- In Monitoring, metrics are not movable. The metrics in the previous folder stay there and new metrics will already be created in the new folder.
- You can move VMs only within a single cloud.
Moving a disk
To change a disk's folder:
If you don't have the Nebius Israel command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
Get a list of all the disks in the default folder:
yc compute disk list
Result:
+----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+ | ID | NAME | SIZE | ZONE | STATUS | INSTANCE IDS | DESCRIPTION | +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+ | a7lqgbt0bb9s40tifuhc | first-disk | 20401094656 | il1-a | READY | a7lcvu28njbhnkcteb5n | | | a7lv5j5hm1p1hppprga7 | second-disk | 21474836480 | il1-a | READY | | | +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+
-
Get a list of all folders in the default cloud:
yc resource-manager folder list
Result:
+----------------------+--------------------+------------------+--------+ | ID | NAME | LABELS | STATUS | +----------------------+--------------------+------------------+--------+ | b1gd129pp9ha0vnvf5g7 | my-folder | | ACTIVE | | b1g66mft1vopnevbn57j | default | | ACTIVE | +----------------------+--------------------+------------------+--------+
-
View the description of the CLI disk move command:
yc compute disk move --help
-
Move the disk to another folder with the following parameters:
yc compute disk move \ --id a7lqgbt0bb9s40tifuhc \ --destination-folder-id b1gd129pp9ha0vnvf5g7
Where:
id
: ID of the disk, for example,a7lqgbt0bb9s40tifuhc
.destination-folder-id
: the ID of the destination folder, for example,b1gd129pp9ha0vnvf5g7
.
For more information about the
yc compute disk move
command, see the CLI reference.
Use the move REST API method for the Disk resource or the DiskService/Move gRPC API call.