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

# GET /v1/storages/{storage_id}/storage-host-groups

`GET /v1/storages/{storage_id}/storage-host-groups`

List all storage host groups.

## Path parameters

- `storage_id` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `sort` string
- `name` string
- `id` string
- `description` string
- `native_storage_host_group_id` string

## Response `200`

List storage host groups query was success

- object
  - `storage_host_groups` StorageHostGroupRespSpec[], required
    - `id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `name` string
    - `description` string
    - `storage_id` string
    - `native_storage_host_group_id` string — Actual ID of the storage host group in the storage backend.
    - `storage_hosts` string[] — List of storage host native ids.

## Other responses

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

## Changes

- **2021-09-27** `4d413d4a396d` — 1 warning, 1 info
  - removed the optional property `storage_hosts` from the response with the `200` status
  - added the required property `storage_host_groups` to the response with the `200` status
- **2021-08-26** `2b0e68c2182a` — 1 info
  - endpoint added
- **2021-06-28** `e4e9d696d9a4` — 1 breaking
  - api path removed without deprecation
- **2021-06-28** `06a849c50be3` — 1 info
  - endpoint added
- **2020-06-03** `0fdcb8a77d6a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sodafoundation/apis/soda-infrastructure-management-api/changes/v1/storages/:storage_id/storage-host-groups/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)
