# domains.list()

Canonical URL: https://developers.iagenify.com/fr/sdk/ref/host/domains/list/
Language: fr

`host.domains.list() → Promise<Domain[]>`

Les domaines clients desservis par cet hôte, relu depuis la plateforme.

Status: GET · free · fresher than the field

```javascript
const domains = await host.domains.list();
// [{ name: "www.example.com", status, certificate }]
```

## Contre host.domains_ {#versus-field}

|  | domaines_ | domains.list() |
| --- | --- | --- |
| Est | Ce que l'objet a été construit avec | Une nouvelle lecture |
| Coûts | Rien | une demande |
| Utilisez-le. | à rendre immédiatement | après avoir joint ou pour suivre un certificat |

> **Après avoir attaché, lisez-le plutôt que le champ**
>
> L'objet a été construit avant l'attachement. Le champ est un instantané; c'est l'état.

## Chaque nom a son propre certificat {#certificate}

Un nom qui vient d'être joint est en attente pendant un moment, tandis que celui qui est joint hier est actif — c'est pourquoi l'état est par domaine plutôt que par hôte.

## Une liste vide {#empty}

L'hôte ne sert qu'à sa propre adresse. C'est un état de travail complet — un domaine personnalisé est un ajout, pas une exigence.

- [domains.attach()](/fr/sdk/ref/host/domains/attach): En ajoutant un.
- [domains.detach()](/fr/sdk/ref/host/domains/detach): Enlever une.

```python
domains = host.domains.list()
# [{"name": "www.example.com", "status", "certificate"}]
```
