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

For an SSH host, the host itself. For a fleet, every host of the fleet. Each host lists the status of every rule applied on it.

Parameters

Path1 required of 1
idstringpathrequired

SSH target ID (UUID)

Responses

200

OK

SSHHostsResponse · 1 field
itemsarray of SSHHostResponserequired
7 fields
idstring · uuidrequired
namestringrequired
labelsmap of string → stringrequired
fleet_idsarray of string · uuidrequired
openssh_versionstring
discovered_atstring · date-time
rulesarray of SSHHostRuleStateResponserequired
10 fields
policy_idstring · uuidrequired
host_idstring · uuidrequired
host_namestringrequired
source_target_idstring · uuidrequired

The host or fleet the rule belongs to.

identity_idstring · uuidrequired
account_namestringrequired
statusstringrequired
appliedfailedunreachablependingrevoke_pending
reasonstring
applied_atstring · date-time
updated_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