Server
ID of the server to return
Successful operation
Invalid ID supplied
Invalid authentication
Server not found
GET /api/server/{serverId} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"server": {
"serverId": 79186,
"machineUuid": "4c4c4544-0059-5810-8033-c8c04f584432",
"serial": "HYX3XD2",
"name": "Server 12653",
"hostname": "host.example.com",
"locationId": 18,
"locationName": "EU: Rotterdam",
"instanceTypeId": 126,
"instanceTypeName": "bm1-std-4",
"clientId": 12345,
"contractId": "JD-NB2UU6VX732",
"state": "isolated",
"subState": "brokenHardware",
"vendor": "Dell Inc.",
"chassis": "PowerEdge R230",
"firmwareVersion": 1.23,
"ipmiVersion": 2,
"ipAddresses": [
{
"ipAddress": "1.2.3.4",
"ipType": "normal|bmc",
"ipVersion": "v4|v6"
}
],
"macAddresses": [
{
"macAddress": "10:98:36:A0:80:33",
"macType": "normal|bmc"
}
],
"disks": [
{
"name": "sda|nvmep0n1",
"interface": "sata|nvme",
"type": "hdd|ssd|sas|nvme"
}
],
"isolationReason": {
"operationUuid": "0194bc95-e1a4-73a0-81be-ae17c3a7e92b",
"reason": "Server encountered error in PXE ...",
"createdAt": "2018-03-20T09:12:28.000Z"
}
}
}ID of the server to patch and return
Successful operation
Invalid ID supplied
Invalid authentication
Server not found
PATCH /api/server/{serverId} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"items": [
{
"op": "replace",
"path": "instanceTypeId",
"value": null
}
]
}{
"server": {
"serverId": 79186,
"machineUuid": "4c4c4544-0059-5810-8033-c8c04f584432",
"serial": "HYX3XD2",
"name": "Server 12653",
"hostname": "host.example.com",
"locationId": 18,
"locationName": "EU: Rotterdam",
"instanceTypeId": 126,
"instanceTypeName": "bm1-std-4",
"clientId": 12345,
"contractId": "JD-NB2UU6VX732",
"state": "isolated",
"subState": "brokenHardware",
"vendor": "Dell Inc.",
"chassis": "PowerEdge R230",
"firmwareVersion": 1.23,
"ipmiVersion": 2,
"ipAddresses": [
{
"ipAddress": "1.2.3.4",
"ipType": "normal|bmc",
"ipVersion": "v4|v6"
}
],
"macAddresses": [
{
"macAddress": "10:98:36:A0:80:33",
"macType": "normal|bmc"
}
],
"disks": [
{
"name": "sda|nvmep0n1",
"interface": "sata|nvme",
"type": "hdd|ssd|sas|nvme"
}
],
"isolationReason": {
"operationUuid": "0194bc95-e1a4-73a0-81be-ae17c3a7e92b",
"reason": "Server encountered error in PXE ...",
"createdAt": "2018-03-20T09:12:28.000Z"
}
}
}Comma-separated list of server IDs
^\d+(,\d+)*$Successful operation
Invalid IDs supplied
Invalid authentication
Servers not found
GET /api/server?serverIds=text HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"servers": [
{
"server": {
"serverId": 79186,
"machineUuid": "4c4c4544-0059-5810-8033-c8c04f584432",
"serial": "HYX3XD2",
"name": "Server 12653",
"hostname": "host.example.com",
"locationId": 18,
"locationName": "EU: Rotterdam",
"instanceTypeId": 126,
"instanceTypeName": "bm1-std-4",
"clientId": 12345,
"contractId": "JD-NB2UU6VX732",
"state": "isolated",
"subState": "brokenHardware",
"vendor": "Dell Inc.",
"chassis": "PowerEdge R230",
"firmwareVersion": 1.23,
"ipmiVersion": 2,
"ipAddresses": [
{
"ipAddress": "1.2.3.4",
"ipType": "normal|bmc",
"ipVersion": "v4|v6"
}
],
"macAddresses": [
{
"macAddress": "10:98:36:A0:80:33",
"macType": "normal|bmc"
}
],
"disks": [
{
"name": "sda|nvmep0n1",
"interface": "sata|nvme",
"type": "hdd|ssd|sas|nvme"
}
],
"isolationReason": {
"operationUuid": "0194bc95-e1a4-73a0-81be-ae17c3a7e92b",
"reason": "Server encountered error in PXE ...",
"createdAt": "2018-03-20T09:12:28.000Z"
}
}
}
]
}ID of the server to return
Successful operation
Invalid ID supplied
Invalid authentication
Server not found
GET /api/server/{serverId}/lshw HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"serverLshw": {
"createdAt": 1,
"lshw": "text"
}
}ID of the server to return
Successful operation
Invalid ID supplied
Invalid authentication
Server not found
GET /api/server/{serverId}/memory HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"serverMemory": [
{
"size": 16384
}
]
}ID of the server to return
Successful operation
Invalid ID supplied
Invalid authentication
Server not found
GET /api/server/{serverId}/disks HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"serverStorage": [
{
"size": 500000
}
]
}ID of the server to return
Successful operation
Invalid ID supplied
Invalid authentication
Server not found
GET /api/server/{serverId}/interfaces HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"serverInterfaces": [
{
"vendor": "Mellanox"
}
]
}instance type id
location id
client id
contract id
^[A-Z0-9_\-.]{0,240}$If true, the allocation will be allowed to overflow the client's quota and use on-demand quota
falseExample: falseSuccessful operation
falseGET /api/server/availability/verify?instanceTypeId=1&clientId=1 HTTP/1.1
Accept: */*
Successful operation
{
"result": false,
"details": [
{
"name": "quota",
"result": false,
"message": "Client quota exceeded"
}
]
}Last updated
Was this helpful?