curl --request PATCH \
--url https://us.infisical.com/api/v1/ssh/host-groups/{sshHostGroupId} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"loginMappings": [
{
"loginUser": "<string>",
"allowedPrincipals": {
"usernames": [
"<string>"
],
"groups": [
"<string>"
]
}
}
]
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"name": "<string>",
"loginMappings": [
{
"loginUser": "<string>",
"allowedPrincipals": {
"usernames": [
"<string>"
],
"groups": [
"<string>"
]
}
}
]
}
Update SSH Host Group
curl --request PATCH \
--url https://us.infisical.com/api/v1/ssh/host-groups/{sshHostGroupId} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"loginMappings": [
{
"loginUser": "<string>",
"allowedPrincipals": {
"usernames": [
"<string>"
],
"groups": [
"<string>"
]
}
}
]
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"name": "<string>",
"loginMappings": [
{
"loginUser": "<string>",
"allowedPrincipals": {
"usernames": [
"<string>"
],
"groups": [
"<string>"
]
}
}
]
}
The ID of the SSH host group to update.
Default Response
The response is of type object
.
Was this page helpful?