github.com/outbrain/consul@v1.4.5/website/source/docs/commands/intention/check.html.md.erb (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Commands: Intention Check"
     4  sidebar_current: "docs-commands-intention-check"
     5  ---
     6  
     7  # Consul Intention Check
     8  
     9  Command: `consul intention check`
    10  
    11  The `intention check` command checks whether a connection attempt between
    12  two services would be authorized given the current set of intentions and
    13  Consul configuration.
    14  
    15  This command requires less ACL permissions than other intention-related
    16  tasks because no information about the intention is revealed. Therefore,
    17  callers only need to have `service:read` access for the destination. Richer
    18  commands like [match](/docs/commands/intention/match.html) require full
    19  intention read permissions and don't evaluate the result.
    20  
    21  ## Usage
    22  
    23  Usage: `consul intention check [options] SRC DST`
    24  
    25  #### API Options
    26  
    27  <%= partial "docs/commands/http_api_options_client" %>
    28  
    29  ## Examples
    30  
    31  ```text
    32  $ consul intention check web db
    33  Denied
    34  
    35  $ consul intention check web billing
    36  Allowed
    37  ```