---
title: Query device list
slug: homologacao-atmosphere/query-device-list
description: Learn how to consult a list of devices securely with this comprehensive document. It covers the necessary parameters, such as the URL and Access Token, along with an example YAML code for easy implementation. Discover the returned values, including a resp
createdAt: 2023-08-23T19:56:33.806Z
---

## Resumo

- Consultar a lista de dispositivos

## Parâmetros

| **Parâmetro** | **Obrigatório** | **Tipo** | **Escolhas \| Valor Padrão** | **Comentários**                                                                                                                                                                                     |
| ------------- | --------------- | -------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| url           | sim             | string   |                              | O campo "url" é usado para definir a URL de destino para uma requisição.<br /><br />Certifique-se de que a URL esteja corretamente formatada, incluindo protocolo (como "http\://" ou "https\://"). |
| Access Token  | sim             | string   |                              | Credencial de autenticação                                                                                                                                                                          |

## Exemplos

```yaml
tasks:
- name: Senha segura - Consultar a lista de dispositivos
	uri:
	  url: "{{input.url}}/iso/pam/device"
	  method: GET
	  headers:
	    Authorization: "Bearer {{ input.access_token }}"
  register: result
```

## Valores retornados

| **Chave**       | **Tipo** | **Retornado quando** | **Descrição**                                                                                |
| --------------- | -------- | -------------------- | -------------------------------------------------------------------------------------------- |
| response <br /> | dict     | Sucesso              | Conjunto de informações padronizadas que fornecem detalhes sobre o resultado da solicitação. |
| devices<br />   | dict     | Sucesso              | Lista de dispositivos                                                                        |



