-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
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}/transferRequest 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