Skip to content

Server Transfer via API #5358

@DenDanskeMine

Description

@DenDanskeMine

Is there an existing feature request for this?

  • I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

What is the feature?
Make it possible to transfer a server to another node using the Application API.

How should it work?
Just like when doing it manually from the panel:

Automatically select or assign a new allocation on the target node.

Transfer all files and rebuild the environment.

Move the server without needing manual steps.

Why is it useful?
This would help automate hardware upgrades or server migrations when customers request to move to a better node. Right now, this is a slow manual process that can’t be automated.

Describe the solution you'd like.

Feature Request: Transfer Server to Another Node via API

Make it possible to transfer a server to a different node through the Application API.
It should automatically assign a new allocation, transfer files, and rebuild the server (like when done manually).
Useful when customers request a hardware upgrade. Currently, this is a manual process.

📡 Example API

POST /api/application/servers/{id}/transfer

Request Body

{
  "target_node": 3,
  "assign_allocations": true
}
Field Type Required Description
target_node Integer Yes ID of the node to move the server to.
assign_allocations Boolean No If true, automatically assign a free allocation on the new node.

Example Response

{
  "object": "server_transfer",
  "attributes": {
    "server_id": 12,
    "from_node": 2,
    "to_node": 3,
    "status": "pending"
  }
}

🔄 Check Transfer Status

GET /api/application/servers/{id}/transfer
{
  "object": "server_transfer",
  "attributes": {
    "server_id": 12,
    "status": "in_progress",
    "progress": "Transferring files (45%)"
  }
}

Additional context to this request.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions