---
title: "GET /v1beta/{tenantId}/host/hosts"
method: GET
path: "/v1beta/{tenantId}/host/hosts"
tags: ["Host"]
---

# GET /v1beta/{tenantId}/host/hosts

`GET /v1beta/{tenantId}/host/hosts`

Lists host information.

## Query parameters

- `limit` integer
- `offset` integer
- `sortDir` 'asc' | 'desc'
- `sortKey` string
- `hostName` string

## Response `200`

OK

- HostRespSpec[]
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `tenantId` string
  - `hostName` string
  - `osType` string
  - `accessMode` string
  - `ip` string
  - `port` string
  - `username` string
  - `availabilityZones` string[]
  - `initiators` object[]
    - `portName` string
    - `protocol` 'iscsi' | 'fibre_channel' | 'nvmeof'

## Other responses

- `400` — BadRequest
- `401` — NotAuthorized
- `403` — Forbidden
- `500` — An unexpected error occured.

## Changes

- **2019-12-09** `b151718b45cf` — 2 breaking
  - removed the enum value `createdAt` from the `query` request parameter `sortKey`
  - removed the enum value `hostName` from the `query` request parameter `sortKey`
- **2019-12-05** `0d720ad6985a` — 1 info
  - added the new enum value `createdAt` to the `query` request parameter `sortKey`
- **2019-11-22** `a41e1157d0e7` — 1 warning
  - added the new `nvmeof` enum value to the `items/allOf[subschema #2]/initiators/items/protocol` response property for the response status `200`
- **2019-11-20** `c535972853d1` — 1 info
  - endpoint added
- **2019-11-20** `64d46542013a` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/sodafoundation/apis/soda-api/changes/v1beta/:tenantId/host/hosts/get.md)

---

[API](https://skmtc.dev/sodafoundation/apis/soda-api.md) · [All operations](https://skmtc.dev/sodafoundation/apis/soda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sodafoundation/apis/soda-api/revisions/62ce0f6c94b4?raw)
