HAProxy Enterprise Documentation 1.7r1

show schema json

Display the JSON schema for the output of the show info and show stat commands.


The show schema json command returns the JSON schema for the show info and show stat commands, both of which can return their output as JSON.

You can use a JSON schema document to aid in parsing the output of those commands. For example, it shows the data type for each field, which might be necessary to know before parsing the JSON.


Save a copy of the JSON schema to a file named schema.json:

$ echo "show schema json" | \
  sudo socat stdio /var/run/hapee-1.7/hapee-lb.sock | \
  python3 -m json.tool  > schema.json

See also

Next up

show servers state