Linode Instances
Disk Clone
https://api.linode.com/v4/linode/instances/{linodeId}/disks/{diskId}/clone
Copies a disk, byte-for-byte, into a new Disk belonging to the same Linode. The Linode must have enough storage space available to accept a new Disk of the same size as this one or this operation will fail.
Path Parameters
ID of the Linode to look up.
ID of the Disk to clone.
Request Samples
Response Samples
- 200
- default
{
"status": "ready",
"created": "2018-01-01T00:01:01",
"updated": "2018-01-01T00:01:01",
"id": 1234,
"label": "Debian 9 Disk",
"size": 48640,
"filesystem": "ext4"
}
Responses
200: Disk clone initiated.
A brief description of this Disk's current state. This field may change without direct action from you, as a result of operations performed to the Disk or the Linode containing the Disk.
When this Disk was created.
When this Disk was last updated.
This Disk's ID which must be provided for all operations impacting this Disk.
The Disk's label is for display purposes only.
The size of the Disk in MB.
The Disk filesystem can be one of:
- raw - No filesystem, just a raw binary stream.
- swap - Linux swap area.
- ext3 - The ext3 journaling filesystem for Linux.
- ext4 - The ext4 journaling filesystem for Linux.
- initrd - initrd (uncompressed initrd, ext2, max 32 MB).
default: Error
What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.
The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.