Resource relationships in Yandex Compute Cloud
All resources in Compute Cloud break down into three types:
- Basic resources, which include virtual machines and disks.
- Auxiliary resources, which include snapshots and images. These resources are only used for creating other resources.
- Information resources, such as disk types and availability zones. These resources are read-only.
In addition, when creating VMs, Compute Cloud uses resources of other services, such as subnets and folders.
Tip
To quickstart with Compute Cloud, see the tutorial on how to create a VM using a simple form.
Basic resources
Compute Cloud allows you to create VMs and attach disks to them.
A VM must have at least one disk attached, which is a boot disk. You can create a new empty disk or restore one from a snapshot or image.
Auxiliary resources
Snapshots and images are mainly designed for saving and restoring data disks.
You can only create a snapshot from a disk. Snapshot information contains the ID of its source disk.
As for an image, you can create it from a disk, snapshot, another image, or file.
Information resources
When creating disks and VMs, you need to specify the availability zone where they will reside; disk images and snapshots are not associated with any availability zones.
You can view a list of availability zones and find out their current status. To reserve computing resources for as many VMs as you need in a particular availability zone, you can create a reserved instance pool.
When creating a disk, you also specify its type. You can view possible disk types and find out in which zones they are available.
Relationship with resources of other services
When creating a VM, you need to specify the subnet it will be connected to. You can find more information about cloud networks here.
All Compute Cloud resources are created within folders. Learn more about the Yandex Cloud resource hierarchy here.