Return web server's hostname

This function retrieves a web server's hostname.

SecurityBasicAuth
Request
query Parameters
name
string
Default: "host"

The web server environment variable to retrieve. You can only retrieve the web server's hostname.

  • host is the only possible value.
Value: "host"
Example: name=host
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Variables/get_session_information
Request samples
uapi --output=jsonpretty \
  --user=username \
  Variables \
  get_session_information
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_session_information",
  • "module": "Variables",
  • "result": {
    • "data": {
      • "host": "example.com"
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}