---
title: "GET /v1/storages/{storage_id}/storage-hosts"
method: GET
path: "/v1/storages/{storage_id}/storage-hosts"
tags: ["Masking views"]
---

# GET /v1/storages/{storage_id}/storage-hosts

`GET /v1/storages/{storage_id}/storage-hosts`

## Request

- The document declares no server URL.
- Auth: none declared

List all storage hosts.

## Path parameters

- `storage_id` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `sort` string
- `name` string
- `id` string
- `description` string
- `native_storage_host_id` string
- `status` 'normal' | 'offline' | 'abnormal' | 'unknown'
- `ip_address` string
- `os_type` 'windows' | 'linux'

## Response `200`

List storage hosts query was success

- object
  - `storage_hosts` StorageHostRespSpec[], required
    - `id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `name` string
    - `description` string
    - `storage_id` string
    - `native_storage_host_id` string: Actual ID of the storage host in the storage backend.
    - `status` 'normal' | 'offline' | 'abnormal' | 'unknown'
    - `ip_address` string: Ip address of the storage host.
    - `os_type` 'windows' | 'linux': Operating system of the storage host.
    - `storage_host_initiators` string[]: List of storage host initiator native ids.

## Other responses

- `401`: NotAuthorized
- `403`: Forbidden
- `500`: An unexpected error occured.

## Changes

- **2021-08-31** `2b0e68c2182a`: 2 info
  - api tag `Masking views` added
  - api tag `Storage hosts` removed
- **2021-06-28** `06a849c50be3`: 1 info
  - endpoint added
- **2020-06-22** `0fdcb8a77d6a`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/sodafoundation/apis/soda-infrastructure-management-api/changes/v1/storages/:storage_id/storage-hosts/get.md)

---

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