# Search Syntax

You can use one or more of the following search syntaxes with the Boolean search operators to create complex search queries.

### Search Syntax

<table><thead><tr><th>Tokens</th><th width="289.66666666666663">Description</th><th>Cloud Platform</th></tr></thead><tbody><tr><td><strong>name:</strong></td><td>add resources with this name.</td><td>All</td></tr><tr><td><strong>region:</strong></td><td>add everything in a region.</td><td>All</td></tr><tr><td><strong>source:</strong></td><td>add everything in the specified source.</td><td>All</td></tr><tr><td><strong>type:</strong></td><td>add a specific resource type.</td><td>All</td></tr><tr><td><strong>subnet:</strong></td><td>add everything in the Subnet matching this ID.</td><td>All</td></tr><tr><td><strong>id:</strong></td><td>add everything with this id: token</td><td>All</td></tr><tr><td><strong>ip:</strong></td><td>add everything that matches or includes an IP.</td><td>All</td></tr><tr><td><strong>Any other value followed by ' : ' (Tags)</strong></td><td>add everything from specified tag.</td><td>All</td></tr><tr><td><strong>resource_group:</strong></td><td>add everything in the Resource Group matching this ID.</td><td>Azure</td></tr><tr><td><strong>virtual_network:</strong></td><td>add everything in the Virtual Network matching this ID.</td><td>Azure</td></tr><tr><td><strong>vpc:</strong></td><td>add everything in the VPC matching this ID.</td><td>AWS &#x26; Google Cloud</td></tr><tr><td><strong>project:</strong></td><td>add everything in this Project.</td><td>Google Cloud</td></tr></tbody></table>

### Search Operators

The search syntax also provides a set of modifiers and operators allowing you to combine the tokens into complex queries to match resources across all providers, allowing you to define exactly what should be on the diagram.<br>

<table><thead><tr><th width="150">Operators</th><th>Description</th></tr></thead><tbody><tr><td><strong>AND</strong></td><td>Allows you to join queries together to limit or expand the results returned.<br><br><strong>Example:</strong> <code>type:"AWS::EC2::Instance</code>" <code>and vpc:vpc-1234</code> will search for all resources that are EC2 Instances AND are within the VPC <code>vpc-1234</code></td></tr><tr><td><strong>OR</strong></td><td>Allows you to join queries together to limit or expand the results returned.<br><br><strong>Example:</strong> <code>region:us-west-1 or region:us-west-2</code>  will return resources within <code>us-west-1</code> OR within <code>us-west-2</code></td></tr><tr><td><strong>- (minus)</strong></td><td>By adding a minus ( - ) before your search token you can remove any resources that match a query.<br><br><strong>Example:</strong> <code>vpc:vpc-1234 and -name:dev-*</code>  will return resources that are in the VPC <code>vpc-1234</code> and don’t have a <code>name</code> starting with <code>dev-</code><br></td></tr><tr><td><strong>( brackets )</strong></td><td>Grouping queries with brackets, a set of tokens together to create more complex queries by surrounding them with brackets.<br><br><strong>Example:</strong> <code>vpc:vpc-1234 and (CostCenter:dev or CostCenter:test)</code> will return all resources within the VPC vpc-1234 that have the tag CostCenter with a value of either dev or test.</td></tr><tr><td><strong>@</strong></td><td>Doing a Deep Search using <code>@</code> sometimes you not only want to see the matched resources but anything connected to them as well.<br><br><strong>Example:</strong> <code>@type:"AWS::EC2::Instance"</code>  will return all instances, as well as connected resources such as load balancers and ECS clusters.</td></tr><tr><td>*</td><td>Wildcard</td></tr></tbody></table>

<br>
