Neue VM erstellen

PUT /vm/create
Die maximalen Werte für die Ressourcen sind abhängig vom Hostsystem und können im /vm/list/hosts Endpunkt abgerufen werden.

Body Parameter (application/x-www-form-urlencoded)

Name Format Beschreibung Optional
cores Integer (1 - n) Anzahl der virtuellen Kerne
mem Integer (1024 - n) Arbeitsspeicher in MB
disk Integer (10 - n) NVMe Speicher in GB
os Enum (vm.os) Betriebssystem
hostsystem Enum (vm.hostsystem) Hostsystem
ips Integer (1 - n) Anzahl an IP-Adressen (Standard: 1)
backup_slots Integer (2 - n) Anzahl an Backup-Slots (Standard: 2)
network_speed Integer (1000 - n) Netzwerkgeschwindigkeit in Mbit (Standard: 1000)
hostname String Hostname, kann nachträglich nur noch eigenständig geändert werden (Standard: KVM)
storage Integer (500 - n) Zusätzlicher HDD-Speicher. Nur bei VMs im NTT möglich
ssh_key String SSH-Key (URL-Encoded public_key) für die VM
ssh_key_displayname String Displayname zum hinterlegten SSH-Key
allowFallbackIPs Boolean Bei eigenen IP-Subnetzen: Legt fest, ob als Fallback Standard IPs der FireAPI außerhalb der eigenen Subnetze verwendet werden sollen, sofern keine eigenen IPs mehr verfügbar sind. (Standard: false)

Response (application/json)

{
    "status": "success",
    "requestID": "efd58c73-2bf1-4d15-bf2e-689fc82a2a9f",
    "message": "VM successfully created",
    "data": {
        "identifier": 30075,
        "hostsystem": {
            "datacenter": {
                "name": "SkyLink Data Center BV",
                "country": "Niederlande",
                "city": "Eygelshoven"
            },
            "node": "node09",
            "processor": "Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz",
            "memory": "DDR3 Synchronous Registered (Buffered) 1600 MHz",
            "nvme_hard_drives": "Samsung SSD PM9A3"
        },
        "config": {
            "cores": 1,
            "mem": 1024,
            "disk": 10,
            "os": {
                "name": "debian_11",
                "displayname": "Debian 11"
            },
            "password": "c&zp3!VFsrW3",
            "hostname": "KVM",
            "network_speed": "1000",
            "backup_slots": "2",
            "ipv4": [
                {
                    "address": "88.151.194.252",
                    "gateway": "88.151.194.1",
                    "ddos_protection": "combahton",
                    "rdns": "24fire.de"
                },
                {
                    "address": "88.151.194.253",
                    "gateway": "88.151.194.1",
                    "ddos_protection": "combahton",
                    "rdns": "24fire.de"
                }
            ],
            "ipv6": [
                {
                    "ip_address": "2a12:8641:0007:48f5::\/64",
                    "ip_gateway": "2a12:8641:7::1"
                }
            ]
        },
        "pricings": {
            "monthly": 3.5300000000000002
        }
    }
}

cURL

curl "https://live.fireapi.de/vm/create" -X PUT -H "Content-Type: application/x-www-form-urlencoded" -H "X-FIRE-APIKEY: REPLACE_API-KEY" -d "cores=REPLACE_VALUE&mem=REPLACE_VALUE&disk=REPLACE_VALUE&os=REPLACE_VALUE&hostsystem=REPLACE_VALUE&ips=REPLACE_VALUE&backup_slots=REPLACE_VALUE&network_speed=REPLACE_VALUE&hostname=REPLACE_VALUE&storage=REPLACE_VALUE&ssh_key=REPLACE_VALUE&ssh_key_displayname=REPLACE_VALUE&allowFallbackIPs=REPLACE_VALUE"

Anfrage testen