Bulk restore specifications
Based on the bulk restore options you specify when restoring multiple instances or disks belonging to multiple instances, R‑Cloud generates a bulk restore specification.
Elements of a bulk restore specification
The basic elements of a bulk restore specification include the type of the bulk restore specification (bulkRestoreType), a flag whether to overwrite existing items (overwriteExisting), and the items to restore.
Syntax
{
"bulkRestoreType": "VMS" | "DISKS",
"overwriteExisting": false | true,
"items": [
{
"source":
{
"path": "<path>",
"disks": [<disk>,...]
},
"destination":
{
"path": "<path>",
"disks": [<disk>, ...],
"networkInterfaces": [<networkInterface>, ...],
"metadata": {},
"labels": {},
"tags": []
},
},
...
],
}
Basic elements
-
bulkRestoreType: "VMS" | "DISKS"The bulk restore type,
VMSfor instances andDISKSfor disks. -
overwriteExisting: false | trueIf set to
true, instances in the destination region and zone with the same name as the source instances or disks attached to instances, with the same name as the source disks are overwritten during restore.Default:
false -
items []An array of items to restore, each item element contains a source and a destination.
Items to restore
Each item consists of a source and a destination record:
-
sourceThe source record contains the path and an array listing the disks.
-
destinationThe destination record contains the path, an array listing the disks, an array listing the network interfaces, and tags and labels.
Source and destination elements
-
pathThe path in the format
projects/<Project>/zones/<TargetZone>/instance/<InstanceName>. -
disksAn array containing the disks to be restored. Disks can either contain the disk name for the source disks or a record with the following elements in the case of destination disks:
-
sourceTypeThe source type of the original disk:
AWSfor AWS,AZUREfor Azure, orGCfor Google Cloud.
-
diskNameThe name of the original disk.
-
newDiskNameThe name of the restored disk, including the specified postfix. If no postfix is specified, the new name equals the original disk name.
-
newDeviceNameThe name of the restored disk device, including the specified postfix. If no postfix is specified, the new name equals the original device name.
-
diskTypeOne of the available disk types for the restored disk:
-
For AWS, this is
IO2orIO1for provisioned IOPS SSD disks,GP3orGP2for general purpose SSD disks,SC1for cold HDD disks, andST1for throughput optimized HDD disks.
-
For Google Cloud, this is
BALANCEDfor balanced persistent disks,EXTREMEfor extreme persistent disks,HDDfor standard persistent disks, orSSDfor SSD persistent disks.
By default, the original disk type is used. For Azure, the default disk type is the only available type.
-
-
regionSpecifies the region. You can use it to define a different destination region for the disk.
-
replicaZonesAn array listing the replica zones.
For regional disks, by default only the same replica zone as in the path is added. You need to add the second zone.
-
-
networkInterfacesAn array containing network interfaces. Each interface is a record with the following elements:
-
sourceTypeThe source type of the network interface:
AWSfor AWS,AZUREfor Azure, orGCfor Google Cloud.
-
pathThe path to the network device.
-
publicIpTypeThe public IP type for the network interface:
-
For AWS, the
AUTO_ASSIGNoption is always selected.
-
For Azure, you can select among the following options:
-
NONE -
STATIC -
EXISTING
-
-
For Google Cloud, you can select among the following options:
-
NONE -
EPHEMERAL -
STATIC_RESERVED -
STATIC_NEW
-
-
-
publicIpThe public IP value, if supported by the public IP type.
-
privatelIpTypeThe private IP address type for the network interface:
-
For AWS, the
AUTO_ASSIGNoption is always selected.
-
For Azure, you can select between the following options:
-
DYNAMIC -
STATIC
-
-
For Google Cloud, you can select among the following options:
-
EPHEMERAL_AUTOMATIC -
EPHEMERAL_CUSTOM -
STATIC_RESERVED -
STATIC_NEW
-
-
-
privateIpThe private IP value, if supported by the private IP type.
The interfaces are selected in the following order:
- A legacy network with same name.
- Shared subnetworks that are accessible in destination projects.
- A subnetwork with the name "default".
- The first subnetwork in the specified region (sorted by name alphabetically).
-
-
Labels, metadata, and tags
-
metadataCustom metadata tags, consisting of a key and a value pair.
-
labelsLabels for the restored disk, consisting of a key and a value pair.
-
tagsAn array of tags (strings).
-
-
For AWS: Operating system image AMI ID
-
imageIdAMI ID of the custom operating system image.
-