Docs
Live demo
POST/api/v2/targets/{id}/ssh/accounts/adopt
access:manageAPI token

Record an existing Linux account of the host as managed by Principal for an identity and create its adoption rule with the groups and keys the account has. Apply the rule to let the identity sign in with a Principal certificate. The account is never deleted by Principal.

Parameters

Path1 required of 1
idstringpathrequired

SSH host ID (UUID)

Request body application/json · SSHAdoptRequest

Required2 of 2 fields
account_namestringrequired
min length 1 · max length 32
identity_idstring · uuidrequired

Responses

201

Created

SSHAdoptResponse · 1 field
policy_idstring · uuidrequired
409

Conflict

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

↑ ↓ to moveEnter to openEsc to close