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
}
]
}
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
}
]
}
The ID of the project to list SSH host groups for.
Default Response
The response is of type object
.
Was this page helpful?