POST
/
api
/
v1
/
ssh
/
host-groups
/
{sshHostGroupId}
/
hosts
/
{hostId}
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/ssh/host-groups/{sshHostGroupId}/hosts/{hostId}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "projectId": "<string>",
  "hostname": "<string>",
  "alias": "<string>",
  "userCertTtl": "<string>",
  "hostCertTtl": "<string>",
  "userSshCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "hostSshCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "loginMappings": [
    {
      "loginUser": "<string>",
      "allowedPrincipals": {
        "usernames": [
          "<string>"
        ],
        "groups": [
          "<string>"
        ]
      }
    }
  ]
}

Path Parameters

sshHostGroupId
string
required

The ID of the SSH host group to add the host to.

hostId
string
required

The ID of the SSH host to add to the SSH host group.

Response

Default Response

id
string<uuid>
required
projectId
string
required
hostname
string
required
userCertTtl
string
required
hostCertTtl
string
required
userSshCaId
string<uuid>
required
hostSshCaId
string<uuid>
required
loginMappings
object[]
required
alias
string | null