GET
/
api
/
v2
/
workspace
/
{projectId}
/
ssh-host-groups
curl --request GET \
  --url https://us.infisical.com/api/v2/workspace/{projectId}/ssh-host-groups
{
  "groups": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "projectId": "<string>",
      "name": "<string>",
      "loginMappings": [
        {
          "loginUser": "<string>",
          "allowedPrincipals": {
            "usernames": [
              "<string>"
            ],
            "groups": [
              "<string>"
            ]
          }
        }
      ],
      "hostCount": 123
    }
  ]
}

Path Parameters

projectId
string
required

The ID of the project to list SSH host groups for.

Response

200
application/json

Default Response

The response is of type object.