Remove a principal -> local account mapping from a host (host becomes Stale until pushed)
POST
/ssh/principals/unmap
const url = 'https://pki.example.com/api/v1/ssh/principals/unmap';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"hostId":"example","principalId":"example","localAccount":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://pki.example.com/api/v1/ssh/principals/unmap \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "hostId": "example", "principalId": "example", "localAccount": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
hostId
required
string
principalId
required
string
localAccount
required
string
key
additional properties
any
Example generated
{ "hostId": "example", "principalId": "example", "localAccount": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
key
additional properties
any
Example generated
{}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
key
additional properties
any
key
additional properties
any
Example generated
{ "error": { "code": "example", "message": "example" }}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
key
additional properties
any
key
additional properties
any
Example generated
{ "error": { "code": "example", "message": "example" }}