HAProxy Enterprise Documentation 2.1r1

show schema json

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

Description

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.

Examples

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

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

See also


Next up

Lua