---
title: Web Ping
slug: homologacao-atmosphere/web-ping
description: Learn about web ping testing and its parameters such as IP/Hostname, protocol, timeout, and retries. This document includes an example using the web_ping module and provides details on ping results and encountered errors.
createdAt: 2022-01-10T18:21:26.000Z
---



## Resumo

- Ping para teste da web.

## Parâmetros

| **Parâmetro**    | **Tipo** | **Escolhas \| Valor Padrão**                | **Comentários**                         |
| ---------------- | -------- | ------------------------------------------- | --------------------------------------- |
| hosts - required | list     |                                             | lista de IP/Hostname                    |
| scheme           | string   | Escolhas:<br />- http<br />- https(default) | Protocolo de requerimento               |
| timeout          | integer  |                                             | Tempo de espera em segundos             |
| retries          | integer  | Default:<br />- 1                           | número de tentativas de uma solicitação |



## Exemplos

```yaml
- name: Ping HTTPS
  web_ping:
    hosts: [{"host": "google.com.br", "path": "/"},{"host": "asdfg.com", "path": "/"}, {"host": "httpbin.org", "path": "/"}]
    scheme: https
  register: result
```



## Valores retornados

| **Chave** | **Tipo** | **Retornado quando** | **Descrição**                                                    |
| --------- | -------- | -------------------- | ---------------------------------------------------------------- |
| ping      | dict     | sucesso              | Informação como host, status\_code e duração da requisição.      |
| error     | dict     | erro                 | Informação como host, url, exceeded\_retries e mensagem do erro. |

