API documentation
The Atlas Cloud customer API gives the same actions as the console: servers, power, networks, addresses, backups, SSH keys.
Authentication
Issue an API key in the console (Account - API keys) and send it in the Authorization header. A revoked key answers 401.
curl -H "Authorization: Bearer npk_..." https://atlas.dakasat.com/api/v1/vdcs
Virtual Data Center
Servers, networks, addresses, routers, images and ISO live in a Virtual Data Center (VDC) of the account. List, create, rename and delete VDCs with /vdcs; resources of a VDC are under /vdcs/{vdc}/..., where {vdc} is the VDC code (vdc-xxxxxx). Invoices, balance, keys, profile and tickets belong to the account and have no VDC.
curl -H "Authorization: Bearer npk_..." https://atlas.dakasat.com/api/v1/vdcs/vdc-k7q2mx/servers
Resource paths without a VDC (/servers, /networks, /ips, /routers, /isos, /images, /cloud/...) answer 410 vdc_required.
Rate limit
Up to 120 requests per minute per customer. Above the limit the API answers 429 with a Retry-After header (seconds).
Schema
/api/v1/openapi.json - OpenAPI 3.1 description of every operation, request and response.
Operations
| GET | /catalog | getCatalog |
| GET | /operations/{id} | getOperation |
| GET | /ssh-keys | listSshKeys |
| POST | /ssh-keys | addSshKey |
| DELETE | /ssh-keys/{id} | deleteSshKey |
| GET | /vdcs | listVdcs |
| POST | /vdcs | createVdc |
| DELETE | /vdcs/{vdc} | deleteVdc |
| GET | /vdcs/{vdc} | getVdc |
| PATCH | /vdcs/{vdc} | renameVdc |
| GET | /vdcs/{vdc}/backup-default | getCloudBackupDefault |
| PUT | /vdcs/{vdc}/backup-default | setCloudBackupDefault |
| GET | /vdcs/{vdc}/deletion | previewVdcDeletion |
| GET | /vdcs/{vdc}/images | listCustomImages |
| DELETE | /vdcs/{vdc}/images/{id} | deleteCustomImage |
| GET | /vdcs/{vdc}/ips | listIps |
| POST | /vdcs/{vdc}/ips | takeIp |
| DELETE | /vdcs/{vdc}/ips/{id} | releaseIp |
| GET | /vdcs/{vdc}/isos | listIsos |
| POST | /vdcs/{vdc}/isos | addIso |
| DELETE | /vdcs/{vdc}/isos/{id} | deleteIso |
| GET | /vdcs/{vdc}/networks | listNetworks |
| POST | /vdcs/{vdc}/networks | createNetwork |
| DELETE | /vdcs/{vdc}/networks/{id} | deleteNetwork |
| PATCH | /vdcs/{vdc}/networks/{id} | renameNetwork |
| GET | /vdcs/{vdc}/routers | listRouters |
| POST | /vdcs/{vdc}/routers | createRouter |
| DELETE | /vdcs/{vdc}/routers/{id} | deleteRouter |
| GET | /vdcs/{vdc}/routers/{id} | getRouter |
| PATCH | /vdcs/{vdc}/routers/{id} | renameRouter |
| PUT | /vdcs/{vdc}/routers/{id}/dhcp | setRouterDhcp |
| GET | /vdcs/{vdc}/routers/{id}/forwards | listPortForwards |
| POST | /vdcs/{vdc}/routers/{id}/forwards | createPortForward |
| DELETE | /vdcs/{vdc}/routers/{id}/forwards/{rule} | deletePortForward |
| GET | /vdcs/{vdc}/routers/{id}/rules | listRouterRules |
| POST | /vdcs/{vdc}/routers/{id}/rules | createRouterRule |
| DELETE | /vdcs/{vdc}/routers/{id}/rules/{rule} | deleteRouterRule |
| PUT | /vdcs/{vdc}/routers/{id}/rules/{rule} | updateRouterRule |
| GET | /vdcs/{vdc}/routers/{id}/vpn/{kind} | getVpn |
| PUT | /vdcs/{vdc}/routers/{id}/vpn/{kind} | setVpn |
| POST | /vdcs/{vdc}/routers/{id}/vpn/{kind}/devices | createVpnDevice |
| DELETE | /vdcs/{vdc}/routers/{id}/vpn/{kind}/devices/{device} | deleteVpnDevice |
| POST | /vdcs/{vdc}/routers/{id}/vpn/{kind}/devices/{device}/reissue | reissueVpnDevice |
| GET | /vdcs/{vdc}/servers | listServers |
| POST | /vdcs/{vdc}/servers | createServer |
| DELETE | /vdcs/{vdc}/servers/{id} | deleteServer |
| GET | /vdcs/{vdc}/servers/{id} | getServer |
| PATCH | /vdcs/{vdc}/servers/{id} | renameServer |
| POST | /vdcs/{vdc}/servers/{id}/actions/{action} | serverAction |
| GET | /vdcs/{vdc}/servers/{id}/backup-policy | getBackupPolicy |
| PUT | /vdcs/{vdc}/servers/{id}/backup-policy | setBackupPolicy |
| GET | /vdcs/{vdc}/servers/{id}/backups | listServerBackups |
| POST | /vdcs/{vdc}/servers/{id}/backups | createServerBackup |
| DELETE | /vdcs/{vdc}/servers/{id}/backups/{backup} | deleteServerBackup |
| POST | /vdcs/{vdc}/servers/{id}/backups/{backup}/restore | restoreServerBackup |
| POST | /vdcs/{vdc}/servers/{id}/console | openServerConsole |
| GET | /vdcs/{vdc}/servers/{id}/disks | listServerDisks |
| POST | /vdcs/{vdc}/servers/{id}/disks | addServerDisk |
| DELETE | /vdcs/{vdc}/servers/{id}/disks/{disk} | deleteServerDisk |
| PATCH | /vdcs/{vdc}/servers/{id}/disks/{disk} | growServerDisk |
| GET | /vdcs/{vdc}/servers/{id}/events | serverEvents |
| GET | /vdcs/{vdc}/servers/{id}/firewall | getFirewall |
| PUT | /vdcs/{vdc}/servers/{id}/firewall | setFirewallOptions |
| POST | /vdcs/{vdc}/servers/{id}/firewall/rules | addFirewallRule |
| DELETE | /vdcs/{vdc}/servers/{id}/firewall/rules/{rule} | deleteFirewallRule |
| POST | /vdcs/{vdc}/servers/{id}/image | createCustomImage |
| DELETE | /vdcs/{vdc}/servers/{id}/ips/{ip} | unassignIp |
| PUT | /vdcs/{vdc}/servers/{id}/ips/{ip} | assignIp |
| POST | /vdcs/{vdc}/servers/{id}/ips/{ip}/primary | makePrimaryIp |
| DELETE | /vdcs/{vdc}/servers/{id}/iso | ejectServerIso |
| GET | /vdcs/{vdc}/servers/{id}/iso | getServerIso |
| PUT | /vdcs/{vdc}/servers/{id}/iso | insertServerIso |
| GET | /vdcs/{vdc}/servers/{id}/metrics | serverMetrics |
| GET | /vdcs/{vdc}/servers/{id}/nics | listServerNics |
| POST | /vdcs/{vdc}/servers/{id}/nics | attachNetwork |
| DELETE | /vdcs/{vdc}/servers/{id}/nics/{nic} | detachNic |
| POST | /vdcs/{vdc}/servers/{id}/os | changeServerOs |
| POST | /vdcs/{vdc}/servers/{id}/password | resetServerPassword |
| POST | /vdcs/{vdc}/servers/{id}/plan | changeServerPlan |
| POST | /vdcs/{vdc}/servers/{id}/rebuild | rebuildServer |
| POST | /vdcs/{vdc}/servers/{id}/resize | resizeServer |
| POST | /vdcs/{vdc}/servers/{id}/ssh-keys | addServerSshKeys |
| POST | /vdcs/{vdc}/servers/{id}/tags | addServerTag |
| DELETE | /vdcs/{vdc}/servers/{id}/tags/{tag} | removeServerTag |
| GET | /vdcs/{vdc}/summary | getCloudSummary |