Server Actions
AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/poweron"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/poweroff"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/shutdown"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/reboot"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/reset"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64application/json- body
image*stringImage name or ID
Action started
application/json- response
action*root_password?string|nullcurl -X POST "https://example.com/servers/0/actions/rebuild" \ -H "Content-Type: application/json" \ -d '{ "image": "string" }'{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }, "root_password": "string"}AuthorizationBearer <token>id*integerint64application/json- body
server_type*stringupgrade_disk*booleanIf false the disk keeps its size, so you can downgrade later
Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/change_type" \ -H "Content-Type: application/json" \ -d '{ "server_type": "string", "upgrade_disk": true }'{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}Restarts the server into a rescue Linux system right away. The server's disk is attached unmounted as
/dev/sda; rescue-mount mounts it on /mnt and rescue-chroot enters it. Log in as root with the
returned root_password (shown once) or with the SSH keys the server was created with. While rescue is
enabled only disable_rescue and deleting the server are possible. Not available for MikroTik RouterOS.
AuthorizationBearer <token>id*integerint64application/json- body
ssh_keys?array<string>Accepted for compatibility and ignored; the server's own keys work in the rescue system.
Action started
application/json- response
action*root_password?stringcurl -X POST "https://example.com/servers/0/actions/enable_rescue" \ -H "Content-Type: application/json" \ -d '{}'{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }, "root_password": "string"}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/disable_rescue"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*root_password?stringcurl -X POST "https://example.com/servers/0/actions/reset_password"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }, "root_password": "string"}AuthorizationBearer <token>id*integerint64Action started
application/json- response
action*wss_url?stringValid for one connection within 60 seconds
curl -X POST "https://example.com/servers/0/actions/request_console"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }, "wss_url": "string"}AuthorizationBearer <token>id*integerint64application/json- body
network*stringNetwork name or ID
ip?stringOptional fixed IP inside the network
Action started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/attach_to_network" \ -H "Content-Type: application/json" \ -d '{ "network": "string" }'{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64application/json- body
network*stringAction started
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/detach_from_network" \ -H "Content-Type: application/json" \ -d '{ "network": "string" }'{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64application/json- body
description?stringlength <= 255labels?Up to 64 key/value pairs; keys and values up to 63 characters
Action started
application/json- response
action*image?curl -X POST "https://example.com/servers/0/actions/create_image" \ -H "Content-Type: application/json" \ -d '{}'{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }, "image": { "id": 0, "type": "system", "name": "string", "description": "string", "os_flavor": "ubuntu", "os_version": "string", "architecture": "x86", "disk_size": 0, "image_size": 0, "status": "creating", "deprecated": "2019-08-24T14:15:22Z", "created_from": 0, "protection": { "delete": true }, "locations": [ "string" ], "labels": { "property1": "string", "property2": "string" }, "created": "2019-08-24T14:15:22Z" }}AuthorizationBearer <token>id*integerint64Done
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/enable_backup"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}AuthorizationBearer <token>id*integerint64Done
application/json- response
action*curl -X POST "https://example.com/servers/0/actions/disable_backup"{ "action": { "id": 0, "command": "create_server", "status": "running", "progress": 0, "started": "2019-08-24T14:15:22Z", "finished": "2019-08-24T14:15:22Z", "resources": [ { "id": 0, "type": "server" } ], "error": { "code": "string", "message": "string" } }}