github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/website/source/docs/commands/intention/match.html.md.erb (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Commands: Intention Match"
     4  sidebar_current: "docs-commands-intention-match"
     5  ---
     6  
     7  # Consul Intention Match
     8  
     9  Command: `consul intention match`
    10  
    11  The `intention match` command shows the list of intentions that match
    12  a given source or destination. The list of intentions is listed in evaluation
    13  order: the first intention that matches a request would be evaluated.
    14  
    15  The [check](/docs/commands/intention/check.html) command can be used to
    16  check whether a connection would be authorized between any two services.
    17  
    18  ## Usage
    19  
    20  Usage: `consul intention match [options] SRC_OR_DST`
    21  
    22  #### API Options
    23  
    24  <%= partial "docs/commands/http_api_options_client" %>
    25  
    26  #### Intention Match Options
    27  
    28  * `-destination` - Match by destination.
    29  
    30  * `-source` - Match by source.
    31  
    32  ## Examples
    33  
    34  ```text
    35  $ consul intention match -source web
    36  web => db (deny)
    37  web => * (allow)
    38  ```