The admin socket provides an interface to query and configure Uqda during runtime. By default, Uqda listens for admin connections on localhost:9001.
The uqdactl utility provides a human-friendly CLI interface to the Uqda admin socket. It can connect to both local and remote Uqda instances.
Examples include:
To get a list of supported commands:
To perform an action on a remote Uqda node, specify the -endpoint parameter:
To get the JSON response body instead of a "friendly" output, specify the -json parameter:
The Uqda admin socket uses JSON for request and response formats.
A request must be:
\n characterOnce a valid request is received, the response stanza is returned.
The structure of a typical request is as below:
A request:
"request" (string) field - a value containing the verb of the request"keepalive" (bool) field - a true or false value stating whether the connection should be kept alive for further requestsA typical response is structured like this:
A response:
"request" field, which contains the body of the original request"status" field, which is either "success" or "error""response" section, which contains the response data from the request"error" field, which contains error text