---
title: Filter by zone
slug: homologacao-atmosphere/filter-by-zone
description: Learn how to effectively filter by zone in the Shell module with this comprehensive document. Discover the usage and details of the "zone_name" parameter, along with practical examples. Gain insights into the values returned, including output, errors, and
createdAt: 2022-07-26T13:51:55.000Z
---

## Resumo

- Filtrar por zona

## Parâmetros

| **Parâmetro** | **Tipo** | **Escolhas \| Valor Padrão** | **Comentários** |
| ------------- | -------- | ---------------------------- | --------------- |
| zone\_name    | string   |                              | Nome da zona    |

Utiliza parâmetros do módulo [Shell](https://docs.simonops.com/homologacao-atmosphere/shell).

## Exemplos

```yaml
- shell: 
    arguments: sudo firewall-cmd --zone={{ input.zone_name }} --list-all
  register: result
```

## Valores retornados

| **Chave**        | **Tipo** | **Retornado quando** | **Descrição**              |
| ---------------- | -------- | -------------------- | -------------------------- |
| output           | string   | Sempre               | Saída da execução          |
| had\_errors      | boolean  | Sempre               | Se teve erros              |
| output\_errors   | string   | Sempre               | Erros de saída da execução |
| output\_warnings | string   | Sempre               | Avisos de saída            |

