1DATAPLANEAPI(8)         System Administration Utilities        DATAPLANEAPI(8)
2
3
4

NAME

6       dataplaneapi - HAProxy Data Plane API
7

DESCRIPTION

9   Usage:
10              dataplaneapi [OPTIONS]
11
12       API for editing and managing haproxy instances
13
14   Application Options:
15       --scheme=
16              the  listeners  to  enable, this can be repeated and defaults to
17              the schemes in the swagger spec
18
19       --cleanup-timeout=
20              grace period for which to wait before killing  idle  connections
21              (default: 10s)
22
23       --graceful-timeout=
24              grace  period  for which to wait before shutting down the server
25              (default: 15s)
26
27       --max-header-size=
28              controls the maximum number of bytes the server will read  pars‐
29              ing  the request header's keys and values, including the request
30              line.   It  does  not  limit  the  size  of  the  request  body.
31              (default: 1MiB)
32
33       --socket-path=
34              the unix socket to listen on (default: /var/run/data-plane.sock)
35
36       --host=
37              the IP to listen on (default: localhost) [$HOST]
38
39       --port=
40              the  port  to  listen on for insecure connections, defaults to a
41              random value [$PORT]
42
43       --listen-limit=
44              limit the number of outstanding requests
45
46       --keep-alive=
47              sets the TCP keep-alive timeouts  on  accepted  connections.  It
48              prunes dead TCP connections ( e.g.  closing laptop mid-download)
49              (default: 3m)
50
51       --read-timeout=
52              maximum duration before timing out read of the request (default:
53              30s)
54
55       --write-timeout=
56              maximum  duration  before  timing  out  write  of  the  response
57              (default: 60s)
58
59       --tls-host=
60              the IP to listen on for tls, when not specified it's the same as
61              --host [$TLS_HOST]
62
63       --tls-port=
64              the port to listen on for secure connections, defaults to a ran‐
65              dom value [$TLS_PORT]
66
67       --tls-certificate=
68              the certificate to use for secure connections [$TLS_CERTIFICATE]
69
70       --tls-key=
71              the private key to use for secure connections [$TLS_PRIVATE_KEY]
72
73       --tls-ca=
74              the certificate authority file to be used with mutual  tls  auth
75              [$TLS_CA_CERTIFICATE]
76
77       --tls-listen-limit=
78              limit the number of outstanding requests
79
80       --tls-keep-alive=
81              sets  the  TCP  keep-alive  timeouts on accepted connections. It
82              prunes dead TCP connections ( e.g.  closing laptop mid-download)
83
84       --tls-read-timeout=
85              maximum duration before timing out read of the request
86
87       --tls-write-timeout=
88              maximum duration before timing out write of the response
89
90   HAProxy options:
91       -c, --config-file=
92              Path   to   the    haproxy    configuration    file    (default:
93              /etc/haproxy/haproxy.cfg)
94
95       -u, --userlist=
96              Userlist in HAProxy configuration to use for API Basic Authenti‐
97              cation (default: controller)
98
99       -b, --haproxy-bin=
100              Path to the haproxy binary file (default: haproxy)
101
102       -d, --reload-delay=
103              Minimum delay between two reloads (in s) (default: 5)
104
105       -r, --reload-cmd=
106              Reload command
107
108       -s, --restart-cmd=
109              Restart command
110
111       --reload-retention=
112              Reload retention in days, every older reload id will be  deleted
113              (default: 1)
114
115       -t, --transaction-dir=
116              Path to the transaction directory (default: /tmp/haproxy)
117
118       -n, --backups-number=
119              Number of backup configuration files you want to keep, stored in
120              the config dir with version number suffix (default: 0)
121
122       -m, --master-runtime=
123              Path to the master Runtime API socket
124
125       -i, --show-system-info
126              Show system info on info endpoint
127
128       -f=    Path to the dataplane configuration file
129
130       --userlist-file=
131              Path to the dataplaneapi userlist file. By default  userlist  is
132              read  from  HAProxy  conf. When specified userlist would be read
133              from this file
134
135       --fid= Path to file that will dataplaneapi use to write its id  (not  a
136              pid) that was given to him after joining a cluster
137
138       -p, --maps-dir=
139              Path  to  directory  of map files managed by dataplane (default:
140              /etc/haproxy/maps)
141
142       --ssl-certs-dir=
143              Path to SSL certificates directory (default: /etc/haproxy/ssl)
144
145       --update-map-files
146              Flag used for syncing map files with runtime maps values
147
148       --update-map-files-period=
149              Elapsed time in seconds  between  two  maps  syncing  operations
150              (default: 10)
151
152       --cluster-tls-dir=
153              Path where cluster tls certificates will be stored.  Defaults to
154              same directory as dataplane configuration file
155
156       --spoe-dir=
157              Path to SPOE directory.  (default: /etc/haproxy/spoe)
158
159       --spoe-transaction-dir=
160              Path   to   the    SPOE    transaction    directory    (default:
161              /tmp/spoe-haproxy)
162
163       --master-worker-mode
164              Flag to enable helpers when running within HAProxy
165
166       --max-open-transactions=
167              Limit for active transaction in pending state (default: 20)
168
169   Logging options:
170       --log-to=[stdout|file]
171              Log target, can be stdout or file (default: stdout)
172
173       --log-file=
174              Location of the log file (default: /var/log/dataplaneapi/datapl-
175
176              aneapi.log)
177
178       --log-level=[trace|debug|info|warning|error] Logging level (default:
179              warning)
180
181       --log-format=[text|JSON]
182              Logging format (default: text)
183
184   API options:
185       --api-address=
186              Advertised API address
187
188       --api-port=
189              Advertised API port
190
191   Show version:
192       -v, --version
193              Version and build information
194
195   Help Options:
196       -h, --help
197              Show this help message
198
199
200
201dataplaneapi 2.2.0               January 2021                  DATAPLANEAPI(8)
Impressum