summaryrefslogtreecommitdiff
path: root/docs/synopsis.txt
blob: eea9c7fa5b3c2021ebf5ba2fa4f4dc4f55f668e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
usage: fapi [-a] [-b B] [-d] [-E] [-e E] [-f F] [-h] [-i] [-l] [-n] [-v] [-V]
            [-C C]
            [what] [name] [sub] [sub2] [sub3] [sub4] [sub5]

positional arguments:
  what  node|pool|monitor|vserver|...
  name  The object name to operate on
  sub   First sub command
  sub2  Second sub command
  sub3  Third sub command
  sub4  Fourth sub command
  sub5  Fith sub command

optional arguments:
  -a    Disables auto port in vserver name
  -b B  Forces to use the secified loadbalancer (overwrites -e)
  -d    Disable colorful output
  -E    Show extended synopsis
  -e E  Env to use, e.g. dev,qa,live
  -f F  Overwrite partition/folder from fapi.conf
  -h    Print this help
  -i    Interactive shell
  -l    Use list output
  -n    No-op (don't do actual stuff)
  -v    Verbose
  -V    Print program version
  -C C  Config file


Synopsis:
    monitor
    monitor NAME get desc|state
    node
    node NODENAME create|delete
    node NODENAME get detail|status|ratio
    node NODENAME set ratio RATIO
    pool
    pool NAME add member MEMBER:PORT
    pool NAME add monitor MONITOR
    pool NAME create [LIST,OF,POOL,MEMBERS:PORT]
    pool NAME delete
    pool NAME del member MEMBER:PORT
    pool NAME del monitors
    pool NAME get detail|lbmethod|members|monitor|status
    pool NAME set lbmethod LBMETHOD
    poolmember NAME MEMBER:PORT get ratio
    poolmember NAME MEMBER:PORT set ratio RATIO
    vip
    vip NAME create NETMASK
    vip NAME get arp|detail|status|tgroup
    vip NAME set arp enabled|disabled
    vip NAME set tgroup TGROUP
    vserver
    vserver NAME create [protocol] [profile] [poolname] [mask]
    vserver NAME delete
    vserver NAME get brief|detail|status|vlan|profile|rule
    vserver NAME set nat|pat disabled|enabled
    vserver NAME set pool POOLNAME
    vserver NAME set snat automap|none
    vserver NAME set vlan [list,of,vlans,to,allow]
    vserver NAME profile add PROFILENAME [PROFILECONTEXT]
    vserver NAME profile remove PROFILENAME
    vserver NAME rule add RULENAME [RULEPRIORITY]
    vserver NAME rule remove RULENAME
    profileclientssl
    profileclientssl PROFILENAME create [SSLKEYNAME] [SSLCERTNAME]
    profileclientssl PROFILENAME delete
    profileclientssl PROFILENAME get detail
Please consult the manpage for examples.
Please run with -E for more (extended commands) synopsis!