List packages
Returns all active packages in a list.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
https://api.checkdomain.de/v1/servers/{server}/packages
HTTP/1.1 200 OK
{
"page": 1,
"limit": 10,
"pages": 1,
"total": 2,
"_links": {
"self": {
"href": "/v1/servers/1/packages?page=1&limit=10"
},
"first": {
"href": "/v1/servers/1/packages?page=1&limit=10"
},
"last": {
"href": "/v1/servers/1/packages?page=1&limit=10"
}
},
"_embedded": {
"packages": [
{
"id": 1,
"name": "Starter-Paket",
"description": "Mustermann Media",
"setup_date": "2018-01-30T13:02:55+0100",
"_links": {
"self": {
"href": "/v1/servers/1/packages/1"
},
"configuration": {
"href": "/v1/servers/configurations/1"
}
}
},
{
"id": 2,
"name": "Business-Paket",
"description": "Media Agentur",
"setup_date": null,
"_links": {
"self": {
"href": "/v1/servers/1/packages/2"
},
"configuration": {
"href": "/v1/servers/configurations/2"
}
}
}
]
}
}
Name | Type | Required | Description |
---|---|---|---|
server | integer (\d+) | Server identifier |
Name | Type | Required | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root Show properties | collection | Yes | array of objects (Package) | ||||||||||||||||||||
Properties of Package
|
Code | Description |
---|---|
200 | Ok |
404 | Server not found |
500 | Something on our end went wrong |
Get package
Returns a single package by identifier
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
https://api.checkdomain.de/v1/servers/{server}/packages/{package}
HTTP/1.1 200 OK
{
"id": 1,
"name": "Starter-Paket",
"description": "Mustermann Media",
"setup_date": "2018-01-30T13:02:55+0100",
"disc_space": {
"limit": 500,
"used": 0,
"unit": "MB"
},
"mail_space": {
"limit": 128,
"used": 0,
"unit": null
},
"domain_space": {
"limit": 0,
"used": 0,
"unit": null
},
"_links": {
"self": {
"href": "/v1/servers/1/packages/1"
},
"configuration": {
"href": "/v1/servers/configurations/1"
}
}
}
Name | Type | Required | Description |
---|---|---|---|
server | integer (\d+) | Server identifier | |
package | integer (\d+) | Package identifier |
Name | Type | Required | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | integer | Identifier | |||||||||||||||||||||
name | string | Package name | |||||||||||||||||||||
description | string | Package description | |||||||||||||||||||||
setup_date | DateTime | Date of setup | |||||||||||||||||||||
disc_space Show properties | model | object (Space) | |||||||||||||||||||||
Properties of Space
|
|||||||||||||||||||||||
mail_space | object (Space) | Available EMail slots | |||||||||||||||||||||
domain_space | object (Space) | Available domain slots |
Code | Description |
---|---|
200 | Ok |
404 | Server not found |
500 | Something on our end went wrong |
Create a new package on a server.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data "{Request Data}" \
--request POST \
https://api.checkdomain.de/v1/servers/{server}/packages
{
"description": "Paket für Max Mustermann",
"ip_address": "94.130.2.202",
"configuration_id": 1
}
HTTP/1.1 204 No Content
Name | Type | Required | Description |
---|---|---|---|
server | (\d+) |
Name | Type | Required | Description |
---|---|---|---|
description | string | Description of added package | |
ip_address | string | IP Address | |
configuration_id | integer | Configuration Identifier |
Code | Description |
---|---|
204 | No Content |
400 | Validation failed |
404 | Server not found |
500 | Something on our end went wrong |