Retrieve the current hostname associated with a specific virtual server (VM). Also returns the VM ID for use in other API calls to get more detailed information or manage the service. This information is useful for identifying and accessing your server.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/hostname curl -X GET "https://cloud.hostup.se/api/vm/6912/hostname" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"hostname": "string",
"vmid": "string"
}
}