---
title: "GET /api/v1/ssh/host-groups/{sshHostGroupId}/hosts"
method: GET
path: "/api/v1/ssh/host-groups/{sshHostGroupId}/hosts"
tags: ["SSH Host Groups"]
---

# GET /api/v1/ssh/host-groups/{sshHostGroupId}/hosts

`GET /api/v1/ssh/host-groups/{sshHostGroupId}/hosts`

Get SSH Hosts in a Host Group

## Path parameters

- `sshHostGroupId` string, required

## Query parameters

- `filter` 'group-members' | 'non-group-members'

## Response `200`

Default Response

- object
  - `hosts` object[], required
    - `id` string, uuid, required
    - `hostname` string, required
    - `alias` string, nullable
    - `isPartOfGroup` boolean, required
    - `joinedGroupAt` string, date-time, nullable, required
  - `totalCount` number, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) · [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infisical/infisical-api/revisions/edde28ab3c8c/schema)
