The clone feature is not available for all flavours. To know if it is available for a given flavour, check that the configuration.extra_disk_support field for the flavour is set to “yes” (see plans).
Our REST API endpoint for plans is available here:
POST https://console.fluidstack.io/api/clone
custom type
curl -H "Content-Type: application/json" --request POST '<https://console.fluidstack.io/api/clone>' -u '<your_api_key>:<your_api_token>' --data '{ "hostname": "myclone", "clone_record_id": "<id_of_machine_to_clone>", "ssh_keys":["<your_ssh_key_id>"], "vcpu_count":1, "nvme_storage":50, "ram": 4, "region":"<region>", "gpu_count":1, "gpu_model":"A40", "os":"Ubuntu 18.04 LTS", "multiplicity": 1}'
preconfigured type
curl -H "Content-Type: application/json" --request POST '<https://console.fluidstack.ioo/api/clone>' -u '<your_api_key>:<your_api_key>' --data '{ "hostname": "myclone", "clone_record_id": "<id_of_machine_to_clone>", "ssh_keys":["<your_ssh_key_id>"], "plan":"<plan_id_of_clone>", "region": "<region>", "os":"Ubuntu 20.04 LTS", "multiplicity": 1}'
Example response:
{
"server": {
"cost": {
"hour": 1.33
},
"disk": "50",
"gpu_count": 1,
"gpu_model": "A40 48GB",
"id": "recp7Ny1W3BD5p8jd",
"ip": "216.153.52.4",
"links": [
{
"href": "<https://console2.fluidstack.io/manage/recp7Ny1W3BD5p8jd>",
"rel": "self"
}
],
"name": "ahmad6.fluidstack.io",
"os": "Ubuntu 18.04",
"ram": 4096,
"status": "Running",
"type": "Custom Server",
"vcpus": 1,
"volume": null
},
"success": true
}