List servers
Returns all available servers in a list.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
https://api.checkdomain.de/v1/servers
HTTP/1.1 200 OK
{
"page": 1,
"limit": 10,
"pages": 1,
"total": 2,
"_links": {
"self": {
"href": "/v1/servers?page=1&limit=10"
},
"first": {
"href": "/v1/servers?page=1&limit=10"
},
"last": {
"href": "/v1/servers?page=1&limit=10"
}
},
"_embedded": {
"servers": [
{
"id": 1,
"name": "M1010504",
"order_date": "2017-09-01T00:00:00+0200",
"ip_address": "94.130.2.202",
"billing": {
"begin": "2017-09-02T00:00:00+0200",
"cleared_until": null,
"period": 1
},
"_links": {
"self": {
"href": "/v1/servers/1"
}
}
},
{
"id": 2,
"name": "M1010505",
"order_date": "2017-10-19T00:00:00+0200",
"ip_address": "94.130.88.69",
"billing": {
"begin": "2017-10-19T00:00:00+0200",
"cleared_until": "2017-11-19T00:00:00+0100",
"period": 1
},
"_links": {
"self": {
"href": "/v1/servers/2"
}
}
}
]
}
}
Name | Type | Required | Description |
---|---|---|---|
page | integer | Page number | |
limit | integer | Items per page |
Name | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root Show properties | collection | Yes | array of objects (ManagedServer) | ||||||||||||||||||||||||||||||||||||||||||||
Properties of ManagedServer
|
Code | Description |
---|---|
200 | Ok |
500 | Something on our end went wrong |
Get server
Returns a single server by identifier
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
https://api.checkdomain.de/v1/servers/{server}
HTTP/1.1 200 OK
{
"id": 2,
"name": "M1010505",
"order_date": "2017-10-19T00:00:00+0200",
"ip_address": "94.130.88.69",
"billing": {
"begin": "2017-10-19T00:00:00+0200",
"cleared_until": "2017-11-19T00:00:00+0100",
"period": 1
},
"disc_space": {
"reserved": {
"limit": 480,
"used": 24,
"unit": "MB"
},
"backup": {
"limit": 480,
"used": 0,
"unit": "MB"
},
"database": {
"limit": 480,
"used": 0,
"unit": "MB"
},
"ftp_mail": {
"limit": 480,
"used": 0,
"unit": "MB"
}
},
"_links": {
"self": {
"href": "/v1/servers/2"
}
}
}
Name | Type | Required | Description |
---|---|---|---|
server | integer (\d+) | Server identifier |
Name | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | integer | Server identifier | |||||||||||||||||||||||||||||||||||||||||||||
name | string | Server name | |||||||||||||||||||||||||||||||||||||||||||||
order_date | DateTime | Date of order | |||||||||||||||||||||||||||||||||||||||||||||
ip_address | string | IPv4 Address | |||||||||||||||||||||||||||||||||||||||||||||
billing Show properties | model | object (Billing) | |||||||||||||||||||||||||||||||||||||||||||||
Properties of Billing
|
|||||||||||||||||||||||||||||||||||||||||||||||
disc_space Show properties | model | object (DiscSpace) | |||||||||||||||||||||||||||||||||||||||||||||
Properties of DiscSpace
|
Code | Description |
---|---|
200 | Ok |
404 | Server not found |
500 | Something on our end went wrong |