393 lines
9.1 KiB
JSON
393 lines
9.1 KiB
JSON
|
|
{
|
||
|
|
"servers_list": {
|
||
|
|
"servers": [
|
||
|
|
{
|
||
|
|
"id": 12345,
|
||
|
|
"name": "test-server-1",
|
||
|
|
"status": "running",
|
||
|
|
"public_net": {
|
||
|
|
"ipv4": {
|
||
|
|
"ip": "192.0.2.1",
|
||
|
|
"blocked": false
|
||
|
|
},
|
||
|
|
"ipv6": {
|
||
|
|
"ip": "2001:db8::1/64",
|
||
|
|
"blocked": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"server_type": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "cx11",
|
||
|
|
"description": "CX11",
|
||
|
|
"cores": 1,
|
||
|
|
"memory": 1.0,
|
||
|
|
"disk": 25,
|
||
|
|
"prices": []
|
||
|
|
},
|
||
|
|
"datacenter": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1-dc14",
|
||
|
|
"description": "Falkenstein 1 DC14",
|
||
|
|
"location": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1",
|
||
|
|
"description": "Falkenstein DC Park 1",
|
||
|
|
"country": "DE",
|
||
|
|
"city": "Falkenstein",
|
||
|
|
"latitude": 50.47612,
|
||
|
|
"longitude": 12.370071,
|
||
|
|
"network_zone": "eu-central"
|
||
|
|
},
|
||
|
|
"server_types": {
|
||
|
|
"supported": [1],
|
||
|
|
"available": [1]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"location": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1",
|
||
|
|
"description": "Falkenstein DC Park 1",
|
||
|
|
"country": "DE",
|
||
|
|
"city": "Falkenstein",
|
||
|
|
"latitude": 50.47612,
|
||
|
|
"longitude": 12.370071,
|
||
|
|
"network_zone": "eu-central"
|
||
|
|
},
|
||
|
|
"image": {
|
||
|
|
"id": 1,
|
||
|
|
"type": "system",
|
||
|
|
"status": "available",
|
||
|
|
"description": "Ubuntu 22.04",
|
||
|
|
"image_type": "system",
|
||
|
|
"name": "ubuntu-22.04",
|
||
|
|
"rapid_deploy": true
|
||
|
|
},
|
||
|
|
"iso": null,
|
||
|
|
"rescue_enabled": false,
|
||
|
|
"locked": false,
|
||
|
|
"protection": {
|
||
|
|
"delete": false,
|
||
|
|
"rebuild": false
|
||
|
|
},
|
||
|
|
"labels": {
|
||
|
|
"test": "true"
|
||
|
|
},
|
||
|
|
"volumes": [],
|
||
|
|
"load_balancers": [],
|
||
|
|
"primary_disk_size": 25,
|
||
|
|
"created": "2024-01-15T10:00:00+00:00",
|
||
|
|
"outgoing_traffic": 0,
|
||
|
|
"ingoing_traffic": 0,
|
||
|
|
"included_traffic": 654321
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"server_info": {
|
||
|
|
"server": {
|
||
|
|
"id": 12345,
|
||
|
|
"name": "test-server-1",
|
||
|
|
"status": "running",
|
||
|
|
"public_net": {
|
||
|
|
"ipv4": {
|
||
|
|
"ip": "192.0.2.1",
|
||
|
|
"blocked": false
|
||
|
|
},
|
||
|
|
"ipv6": {
|
||
|
|
"ip": "2001:db8::1/64",
|
||
|
|
"blocked": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"server_type": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "cx11",
|
||
|
|
"description": "CX11",
|
||
|
|
"cores": 1,
|
||
|
|
"memory": 1.0,
|
||
|
|
"disk": 25,
|
||
|
|
"prices": []
|
||
|
|
},
|
||
|
|
"location": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1",
|
||
|
|
"description": "Falkenstein DC Park 1",
|
||
|
|
"country": "DE",
|
||
|
|
"city": "Falkenstein",
|
||
|
|
"latitude": 50.47612,
|
||
|
|
"longitude": 12.370071,
|
||
|
|
"network_zone": "eu-central"
|
||
|
|
},
|
||
|
|
"image": {
|
||
|
|
"id": 1,
|
||
|
|
"type": "system",
|
||
|
|
"status": "available",
|
||
|
|
"description": "Ubuntu 22.04",
|
||
|
|
"image_type": "system",
|
||
|
|
"name": "ubuntu-22.04",
|
||
|
|
"rapid_deploy": true
|
||
|
|
},
|
||
|
|
"iso": null,
|
||
|
|
"rescue_enabled": false,
|
||
|
|
"locked": false,
|
||
|
|
"protection": {
|
||
|
|
"delete": false,
|
||
|
|
"rebuild": false
|
||
|
|
},
|
||
|
|
"labels": {
|
||
|
|
"test": "true"
|
||
|
|
},
|
||
|
|
"volumes": [],
|
||
|
|
"load_balancers": [],
|
||
|
|
"primary_disk_size": 25,
|
||
|
|
"created": "2024-01-15T10:00:00+00:00",
|
||
|
|
"outgoing_traffic": 0,
|
||
|
|
"ingoing_traffic": 0,
|
||
|
|
"included_traffic": 654321
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"server_create_success": {
|
||
|
|
"server": {
|
||
|
|
"id": 12346,
|
||
|
|
"name": "new-test-server",
|
||
|
|
"status": "initializing",
|
||
|
|
"public_net": {
|
||
|
|
"ipv4": {
|
||
|
|
"ip": "192.0.2.2",
|
||
|
|
"blocked": false
|
||
|
|
},
|
||
|
|
"ipv6": {
|
||
|
|
"ip": "2001:db8::2/64",
|
||
|
|
"blocked": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"server_type": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "cx11",
|
||
|
|
"description": "CX11",
|
||
|
|
"cores": 1,
|
||
|
|
"memory": 1.0,
|
||
|
|
"disk": 25,
|
||
|
|
"prices": []
|
||
|
|
},
|
||
|
|
"location": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1",
|
||
|
|
"description": "Falkenstein DC Park 1",
|
||
|
|
"country": "DE",
|
||
|
|
"city": "Falkenstein",
|
||
|
|
"latitude": 50.47612,
|
||
|
|
"longitude": 12.370071,
|
||
|
|
"network_zone": "eu-central"
|
||
|
|
},
|
||
|
|
"image": {
|
||
|
|
"id": 1,
|
||
|
|
"type": "system",
|
||
|
|
"status": "available",
|
||
|
|
"description": "Ubuntu 22.04",
|
||
|
|
"image_type": "system",
|
||
|
|
"name": "ubuntu-22.04",
|
||
|
|
"rapid_deploy": true
|
||
|
|
},
|
||
|
|
"iso": null,
|
||
|
|
"rescue_enabled": false,
|
||
|
|
"locked": false,
|
||
|
|
"protection": {
|
||
|
|
"delete": false,
|
||
|
|
"rebuild": false
|
||
|
|
},
|
||
|
|
"labels": {
|
||
|
|
"test": "true"
|
||
|
|
},
|
||
|
|
"volumes": [],
|
||
|
|
"load_balancers": [],
|
||
|
|
"primary_disk_size": 25,
|
||
|
|
"created": "2024-01-15T10:05:00+00:00",
|
||
|
|
"outgoing_traffic": 0,
|
||
|
|
"ingoing_traffic": 0,
|
||
|
|
"included_traffic": 654321
|
||
|
|
},
|
||
|
|
"action": {
|
||
|
|
"id": 13345,
|
||
|
|
"command": "create_server",
|
||
|
|
"status": "running",
|
||
|
|
"progress": 0,
|
||
|
|
"started": "2024-01-15T10:05:00+00:00",
|
||
|
|
"finished": null,
|
||
|
|
"error": {
|
||
|
|
"code": "server_limit_exceeded",
|
||
|
|
"message": "Server limit exceeded"
|
||
|
|
},
|
||
|
|
"resources": [
|
||
|
|
{
|
||
|
|
"id": 12346,
|
||
|
|
"type": "server"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"volumes_list": {
|
||
|
|
"volumes": [
|
||
|
|
{
|
||
|
|
"id": 4711,
|
||
|
|
"created": "2016-01-30T23:50:00+00:00",
|
||
|
|
"name": "database-storage",
|
||
|
|
"server": 12345,
|
||
|
|
"size": 100,
|
||
|
|
"linux_device": "/dev/disk/by-id/scsi-0HC7e20000000002b",
|
||
|
|
"protection": {
|
||
|
|
"delete": false
|
||
|
|
},
|
||
|
|
"labels": {
|
||
|
|
"env": "production"
|
||
|
|
},
|
||
|
|
"status": "available",
|
||
|
|
"format": "ext4"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"networks_list": {
|
||
|
|
"networks": [
|
||
|
|
{
|
||
|
|
"id": 4711,
|
||
|
|
"name": "private-network",
|
||
|
|
"created": "2016-01-30T23:50:00+00:00",
|
||
|
|
"ip_range": "10.0.0.0/16",
|
||
|
|
"subnets": [
|
||
|
|
{
|
||
|
|
"type": "cloud",
|
||
|
|
"network_zone": "eu-central",
|
||
|
|
"ip_range": "10.0.1.0/24"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"routes": [],
|
||
|
|
"protection": {
|
||
|
|
"delete": false
|
||
|
|
},
|
||
|
|
"labels": {
|
||
|
|
"env": "test"
|
||
|
|
},
|
||
|
|
"servers": [12345]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"floating_ips_list": {
|
||
|
|
"floating_ips": [
|
||
|
|
{
|
||
|
|
"id": 478,
|
||
|
|
"name": "foobar",
|
||
|
|
"description": "My floating IP",
|
||
|
|
"ip": "192.0.2.3",
|
||
|
|
"type": "ipv4",
|
||
|
|
"server": 12345,
|
||
|
|
"location": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1",
|
||
|
|
"description": "Falkenstein DC Park 1",
|
||
|
|
"country": "DE",
|
||
|
|
"city": "Falkenstein",
|
||
|
|
"latitude": 50.47612,
|
||
|
|
"longitude": 12.370071,
|
||
|
|
"network_zone": "eu-central"
|
||
|
|
},
|
||
|
|
"blocked": false,
|
||
|
|
"dns_ptr": [
|
||
|
|
{
|
||
|
|
"ip": "192.0.2.3",
|
||
|
|
"dns_ptr": "www.example.com"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"home_location": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "fsn1",
|
||
|
|
"description": "Falkenstein DC Park 1",
|
||
|
|
"country": "DE",
|
||
|
|
"city": "Falkenstein",
|
||
|
|
"latitude": 50.47612,
|
||
|
|
"longitude": 12.370071,
|
||
|
|
"network_zone": "eu-central"
|
||
|
|
},
|
||
|
|
"protection": {
|
||
|
|
"delete": false
|
||
|
|
},
|
||
|
|
"labels": {},
|
||
|
|
"created": "2016-06-01T08:44:38+00:00"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"server_types_list": {
|
||
|
|
"server_types": [
|
||
|
|
{
|
||
|
|
"id": 1,
|
||
|
|
"name": "cx11",
|
||
|
|
"description": "CX11",
|
||
|
|
"cores": 1,
|
||
|
|
"memory": 1.0,
|
||
|
|
"disk": 25,
|
||
|
|
"deprecated": false,
|
||
|
|
"prices": [
|
||
|
|
{
|
||
|
|
"location": "fsn1",
|
||
|
|
"price_hourly": {
|
||
|
|
"net": "1.0000000000",
|
||
|
|
"gross": "1.1900000000"
|
||
|
|
},
|
||
|
|
"price_monthly": {
|
||
|
|
"net": "25.0000000000",
|
||
|
|
"gross": "29.7500000000"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"storage_type": "local",
|
||
|
|
"cpu_type": "shared",
|
||
|
|
"architecture": "x86",
|
||
|
|
"deprecated_replacement": null,
|
||
|
|
"description_short": "CX11"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 2,
|
||
|
|
"name": "cx21",
|
||
|
|
"description": "CX21",
|
||
|
|
"cores": 2,
|
||
|
|
"memory": 4.0,
|
||
|
|
"disk": 40,
|
||
|
|
"deprecated": false,
|
||
|
|
"prices": [
|
||
|
|
{
|
||
|
|
"location": "fsn1",
|
||
|
|
"price_hourly": {
|
||
|
|
"net": "2.0000000000",
|
||
|
|
"gross": "2.3800000000"
|
||
|
|
},
|
||
|
|
"price_monthly": {
|
||
|
|
"net": "50.0000000000",
|
||
|
|
"gross": "59.5000000000"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"storage_type": "local",
|
||
|
|
"cpu_type": "shared",
|
||
|
|
"architecture": "x86",
|
||
|
|
"deprecated_replacement": null,
|
||
|
|
"description_short": "CX21"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"error_401": {
|
||
|
|
"error": {
|
||
|
|
"code": "unauthorized",
|
||
|
|
"message": "Invalid token"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"error_404": {
|
||
|
|
"error": {
|
||
|
|
"code": "not_found",
|
||
|
|
"message": "Server not found"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"error_429": {
|
||
|
|
"error": {
|
||
|
|
"code": "rate_limit_exceeded",
|
||
|
|
"message": "Rate limit exceeded"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|