Return web server's hostname

This function retrieves a web server's hostname.

Authorizations:
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

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

Request samples

uapi --output=jsonpretty \
  --user=username \
  Variables \
  get_session_information

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "get_session_information",
  • "module": "Variables",
  • "result": {
    • "data": {
      • "host": "example.com"
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}