305 lines
7.1 KiB
JSON
305 lines
7.1 KiB
JSON
{
|
|
"servers_list": {
|
|
"servers": [
|
|
{
|
|
"uuid": "00798b85-efb3-41e9-8e46-10d3f8369f90",
|
|
"hostname": "test-server-1",
|
|
"title": "Test Server 1",
|
|
"state": "started",
|
|
"zone": "es-mad1",
|
|
"plan": "1xCPU-1GB",
|
|
"storage_devices": [
|
|
{
|
|
"index": 0,
|
|
"storage": "01bb5e25-47f4-45bf-ab01-53754ff16301",
|
|
"storage_size": 25,
|
|
"storage_title": "test-server-1 root"
|
|
}
|
|
],
|
|
"networking": {
|
|
"interfaces": [
|
|
{
|
|
"type": "public",
|
|
"ip_addresses": [
|
|
{
|
|
"address": "94.237.0.100",
|
|
"family": "IPv4",
|
|
"ptr_record": "h100.example.com"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "utility",
|
|
"ip_addresses": [
|
|
{
|
|
"address": "10.255.0.100",
|
|
"family": "IPv4"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"cpu_count": 1,
|
|
"memory_amount": 1024,
|
|
"boot_order": "disk"
|
|
},
|
|
{
|
|
"uuid": "00798b85-efb3-41e9-8e46-10d3f8369f91",
|
|
"hostname": "test-server-2",
|
|
"title": "Test Server 2",
|
|
"state": "stopped",
|
|
"zone": "fi-hel1",
|
|
"plan": "2xCPU-2GB",
|
|
"storage_devices": [
|
|
{
|
|
"index": 0,
|
|
"storage": "01bb5e25-47f4-45bf-ab01-53754ff16302",
|
|
"storage_size": 50,
|
|
"storage_title": "test-server-2 root"
|
|
}
|
|
],
|
|
"networking": {
|
|
"interfaces": [
|
|
{
|
|
"type": "public",
|
|
"ip_addresses": [
|
|
{
|
|
"address": "94.237.0.101",
|
|
"family": "IPv4",
|
|
"ptr_record": "h101.example.com"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"cpu_count": 2,
|
|
"memory_amount": 2048,
|
|
"boot_order": "disk"
|
|
}
|
|
]
|
|
},
|
|
"server_info": {
|
|
"server": {
|
|
"uuid": "00798b85-efb3-41e9-8e46-10d3f8369f90",
|
|
"hostname": "test-server-1",
|
|
"title": "Test Server 1",
|
|
"state": "started",
|
|
"zone": "es-mad1",
|
|
"plan": "1xCPU-1GB",
|
|
"storage_devices": [
|
|
{
|
|
"index": 0,
|
|
"storage": "01bb5e25-47f4-45bf-ab01-53754ff16301",
|
|
"storage_size": 25,
|
|
"storage_title": "test-server-1 root"
|
|
}
|
|
],
|
|
"networking": {
|
|
"interfaces": [
|
|
{
|
|
"type": "public",
|
|
"ip_addresses": [
|
|
{
|
|
"address": "94.237.0.100",
|
|
"family": "IPv4",
|
|
"ptr_record": "h100.example.com"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "utility",
|
|
"ip_addresses": [
|
|
{
|
|
"address": "10.255.0.100",
|
|
"family": "IPv4"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"cpu_count": 1,
|
|
"memory_amount": 1024,
|
|
"boot_order": "disk",
|
|
"video_model": "cirrus",
|
|
"timezone": "Europe/Madrid"
|
|
}
|
|
},
|
|
"server_create_success": {
|
|
"server": {
|
|
"uuid": "00798b85-efb3-41e9-8e46-10d3f8369f92",
|
|
"hostname": "new-test-server",
|
|
"title": "New Test Server",
|
|
"state": "maintenance",
|
|
"zone": "es-mad1",
|
|
"plan": "2xCPU-2GB",
|
|
"storage_devices": [],
|
|
"networking": {
|
|
"interfaces": [
|
|
{
|
|
"type": "utility",
|
|
"ip_addresses": [
|
|
{
|
|
"address": "10.255.0.102",
|
|
"family": "IPv4"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"cpu_count": 2,
|
|
"memory_amount": 2048,
|
|
"boot_order": "disk"
|
|
}
|
|
},
|
|
"storages_list": {
|
|
"storages": [
|
|
{
|
|
"uuid": "01bb5e25-47f4-45bf-ab01-53754ff16301",
|
|
"title": "test-server-1 root",
|
|
"state": "online",
|
|
"size": 25,
|
|
"tier": "maxiops",
|
|
"zone": "es-mad1",
|
|
"servers": [
|
|
{
|
|
"server": "00798b85-efb3-41e9-8e46-10d3f8369f90"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "01bb5e25-47f4-45bf-ab01-53754ff16302",
|
|
"title": "test-server-2 root",
|
|
"state": "online",
|
|
"size": 50,
|
|
"tier": "maxiops",
|
|
"zone": "fi-hel1",
|
|
"servers": [
|
|
{
|
|
"server": "00798b85-efb3-41e9-8e46-10d3f8369f91"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"networks_list": {
|
|
"networks": [
|
|
{
|
|
"uuid": "030199e0-3e23-4b90-9256-e48181db6b63",
|
|
"name": "test-network",
|
|
"zone": "es-mad1",
|
|
"ip_networks": {
|
|
"ip_network": [
|
|
{
|
|
"address": "10.0.0.0/24",
|
|
"dhcp": true,
|
|
"dhcp_default_route": true,
|
|
"family": "IPv4"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"plans_list": {
|
|
"plans": [
|
|
{
|
|
"name": "1xCPU-1GB",
|
|
"core_number": 1,
|
|
"memory_amount": 1024,
|
|
"storage_size": 25,
|
|
"storage_tier": "maxiops",
|
|
"public_traffic_unlimited": false,
|
|
"prices": [
|
|
{
|
|
"zone": "es-mad1",
|
|
"amount": "0.0071",
|
|
"currency": "EUR"
|
|
},
|
|
{
|
|
"zone": "fi-hel1",
|
|
"amount": "0.0063",
|
|
"currency": "EUR"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "2xCPU-2GB",
|
|
"core_number": 2,
|
|
"memory_amount": 2048,
|
|
"storage_size": 50,
|
|
"storage_tier": "maxiops",
|
|
"public_traffic_unlimited": false,
|
|
"prices": [
|
|
{
|
|
"zone": "es-mad1",
|
|
"amount": "0.0142",
|
|
"currency": "EUR"
|
|
},
|
|
{
|
|
"zone": "fi-hel1",
|
|
"amount": "0.0126",
|
|
"currency": "EUR"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "4xCPU-4GB",
|
|
"core_number": 4,
|
|
"memory_amount": 4096,
|
|
"storage_size": 100,
|
|
"storage_tier": "maxiops",
|
|
"public_traffic_unlimited": false,
|
|
"prices": [
|
|
{
|
|
"zone": "es-mad1",
|
|
"amount": "0.0284",
|
|
"currency": "EUR"
|
|
},
|
|
{
|
|
"zone": "fi-hel1",
|
|
"amount": "0.0252",
|
|
"currency": "EUR"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"zones_list": {
|
|
"zones": [
|
|
{
|
|
"id": "es-mad1",
|
|
"description": "Madrid, Spain"
|
|
},
|
|
{
|
|
"id": "fi-hel1",
|
|
"description": "Helsinki, Finland"
|
|
},
|
|
{
|
|
"id": "nl-ams1",
|
|
"description": "Amsterdam, Netherlands"
|
|
},
|
|
{
|
|
"id": "sg-sin1",
|
|
"description": "Singapore"
|
|
}
|
|
]
|
|
},
|
|
"error_401": {
|
|
"error": {
|
|
"error_code": "AUTHENTICATION_ERROR",
|
|
"error_message": "Invalid API token"
|
|
}
|
|
},
|
|
"error_404": {
|
|
"error": {
|
|
"error_code": "SERVER_NOT_FOUND",
|
|
"error_message": "Server not found"
|
|
}
|
|
},
|
|
"error_429": {
|
|
"error": {
|
|
"error_code": "RATE_LIMIT_EXCEEDED",
|
|
"error_message": "API rate limit exceeded, please retry after 60 seconds"
|
|
}
|
|
}
|
|
}
|