Docs
Live demo
GET/api/v2/targets/{id}/ssh/accounts
targets:readAPI token

Accounts with UID 1000 and above and members of principal-ssh, as Discovery last read them, with the accounts Principal manages marked. Empty until Discovery reads the host.

Parameters

Path1 required of 1
idstringpathrequired

SSH host ID (UUID)

Responses

200

OK

SSHAccountsResponse · 4 fields
itemsarray of SSHAccountResponserequired
9 fields
namestringrequired
uidinteger · int64required
groupsarray of stringrequired
shellstringrequired
authorized_key_countintegerrequired
sourcestring

How Principal manages the account. Absent when Principal does not manage it.

createdadopted
identity_idstring · uuid
identity_display_namestring
adoption_policy_idstring · uuid
groupsarray of stringrequired

Groups that exist on the host.

openssh_versionstring
discovered_atstring · date-time

Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close