Retrieve system hostname
GET/system/hostname
Get the current hostname of the system.
Responses
- 200
- 401
- 403
- 500
A JSON object containing the system's hostname.
- application/json
- Schema
- Example (from schema)
Schema
hostname stringrequired
The system's hostname.
{
"hostname": "my-linux-server"
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error retrieving hostname.
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Loading...