Reference
show acl
        On this page
        
    
    
List all ACLs defined in the configuration.
Description Jump to heading
Use show acl to list all ACLs defined in the configuration.
As of version 2.4r1, In addition to the ID and file name, the show acl command shows the following acl file version information:
- curr_verindicates the currently active version number of the acl file.
- next_verindicates the version number of the temporary version (in-progress transaction) of the acl file.
- entry_cntindicates the number of entries in the temporary transaction version of the acl file.
Examples Jump to heading
In this example, we start with the following ACL expression in the configuration, which checks whether the requested URL path begins with /images/:
haproxy
haproxy
- 
Display a list of defined ACLs by calling show acl:nixecho "show acl" | \sudo socat stdio tcp4-connect:127.0.0.1:9999nixecho "show acl" | \sudo socat stdio tcp4-connect:127.0.0.1:9999outputtext# id (file) description0 () acl 'path' file '/etc/hapee-3.2/hapee-lb.cfg' line 51. curr_ver=0 next_ver=0 entry_cnt=2outputtext# id (file) description0 () acl 'path' file '/etc/hapee-3.2/hapee-lb.cfg' line 51. curr_ver=0 next_ver=0 entry_cnt=2
- 
Display ACL details by calling show acl. You can refer to the acl file using either the path or the ID. Here we use the ID.nixecho "show acl #0" | \sudo socat stdio tcp4-connect:127.0.0.1:9999nixecho "show acl #0" | \sudo socat stdio tcp4-connect:127.0.0.1:9999outputtext0x563d5dcc3fb0 /static/0x563d5dcc40a0 /images/outputtext0x563d5dcc3fb0 /static/0x563d5dcc40a0 /images/
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?