cURL
curl --request GET \
--url https://us.infisical.com/api/v2/workspace/{projectId}/ssh-hosts{
"hosts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"hostname": "<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>"
]
}
}
],
"alias": "<string>"
}
]
}List
GET
/
api
/
v2
/
workspace
/
{projectId}
/
ssh-hosts
cURL
curl --request GET \
--url https://us.infisical.com/api/v2/workspace/{projectId}/ssh-hosts{
"hosts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"hostname": "<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>"
]
}
}
],
"alias": "<string>"
}
]
}Was this page helpful?
⌘I