POST /dashboard/service/{id}/dedicated/virtual-media/upload-url

Upload ISO from URL

Downloads an ISO file from a URL (max 10GB) and stores it for virtual media mounting.

Parameters

NameTypeInDescription
id*
integerpathThe service ID of the dedicated server

Request Body

urlstringRequired

The URL to download the ISO from

filenamestringRequired

The filename to save the ISO as

Response

200
400
403
404
successboolean
dataobject
filenamestring
sizeGBnumber
messagestring

Request

curl -X POST "https://api.royalehosting.net/dashboard/service/{id}/dedicated/virtual-media/upload-url" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{
  "success": true,
  "data": {
    "filename": "ubuntu-24.04-live-server-amd64.iso",
    "sizeGB": 2.5,
    "message": "Virtual media downloaded successfully"
  }
}