Get hostname for a virtual server

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.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
429
error string
message string
retryAfter string
requestId string
GET https://cloud.hostup.se/api/vm/{vmid}/hostname
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/6912/hostname" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "hostname": "string",
    "vmid": "string"
  }
}