List images
GET/api/v1/vps/images
The systems a VPS can be created or reinstalled with.
Example request
curl -X GET "https://platform.serverscamp.com/api/v1/vps/images" \
-H "Authorization: Bearer $API_TOKEN"import os, requests
token = os.environ["API_TOKEN"]
r = requests.get(
f"https://platform.serverscamp.com/api/v1/vps/images",
headers={"Authorization": f"Bearer {token}"},
)
r.raise_for_status()
print(r.json())const r = await fetch(`https://platform.serverscamp.com/api/v1/vps/images`, {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.API_TOKEN}` },
});
console.log(r.status, await r.json());Answer
Status 200 with this body.
| Field | Type | Description |
|---|---|---|
| items | list of VpsImagerequired | |
| items[].id | stringrequired | Image id, for create and reinstall |
| items[].os | stringrequired | Operating system |
| items[].version | stringrequired | Its version |
{
"items": [
{
"id": "ubuntu-26.04",
"os": "Ubuntu",
"version": "26.04 LTS"
},
{
"id": "debian-13",
"os": "Debian",
"version": "13"
}
]
}Errors
| Status | When |
|---|---|
401 | No token, or a token that is not valid |
422 | The body or a parameter is not what the operation takes |
Every operation can also answer 401 without a valid token. All errors