# kinds()

Canonical URL: https://developers.iagenify.com/pt/sdk/ref/hosts/kinds/
Language: pt

`api.hosts.kinds() → Promise<Kind[]>`

Quales generes existit, que son disponibili, e por que i altri non lo sono. Lee-lo in lugar de scriver una lista in una pagina.

Status: free · availability per kind · suffixes come from here

```javascript
const kinds = await api.hosts.kinds();
// [{ kind: "site", hostSuffix: "…", deploy: "files", available: true, reason: null }, …]

const usable = kinds.filter((k) => k.available);
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `kind` | string |  | Identificatori da passar a `create()`. |
| `hostSuffix` | string |  | Il livello di addresse este tipo è servit sul. |
| `deploy` | string |  | O che un implemente prende — files, o cod. |
| `available` | boolean |  | Indique se pot ser creat. |
| `reason` | string|null |  | Por qua no, quando non puè. |

## Por què la disponibilitè è un campo {#why}

> **Un tipo che non sa servit is negat al creazion**
>
> Mai creata « per ora »: un addresse che non risponde lee come un apag. Esta lista è lo che lascia una interface mostra solo ciò che funziona, e dici per qua del resto — senza il giorno cambia che richiede una pagina per cambiare.

## Non codificare il suffix {#suffix}

Un livello per specie è deliberat — è ciò che impedit un cliente sempre prendere un nome la piattaforma stessa rispondes. I suffixes sono restituiti qui precisamente per cui nessuna pagina li repete.

## Construzione di un picker {#picker}

```javascript
for (const k of await api.hosts.kinds()) {
  render({ value: k.kind, label: k.kind, hint: k.hostSuffix, disabled: !k.available, why: k.reason });
}
```

- [create()](/pt/sdk/ref/hosts/create): Usando uno.
- [usage()](/pt/sdk/ref/hosts/usage): Quantes pots tu avere.

```python
kinds = api.hosts.kinds()
# [{"kind": "site", "hostSuffix": "…", "deploy": "files", "available": True, "reason": None}, …]

usable = [k for k in kinds if k["available"]]
```

```python
for k in api.hosts.kinds():
    render(value=k["kind"], label=k["kind"], hint=k.get("hostSuffix"), disabled=not k["available"], why=k.get("reason"))
```
