cache-disks

Create a cache disk.

Changed on

Creates a cache disk whose version 0 is an empty filesystem of sizeGb. Machines start from a version with cacheDisk on create, each through its own copy-on-write layer. Requires the machine:create scope.

post/v1/cache-disks

Request

Request body

mountPathstring nullable

Absolute guest path machines mount it at unless they say otherwise. Default /cache.

namestring required

Unique within your account: 1-63 chars of [a-z0-9]([a-z0-9._-]*[a-z0-9])?.

sizeGbinteger nullable

Size of the cache filesystem in GiB (1-500). Default 20.

Example request

{
  "name": "deps"
}

Response

Cache disk created

createdAtstring required
idstring required
latestVersioninteger required
mountPathstring required
namestring required
sizeGbinteger required

Changes