Block an identity on a host (per-host KRL deny; certs stay valid elsewhere)
POST
/ssh/blocks
const url = 'https://pki.example.com/api/v1/ssh/blocks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"hostId":"example","identityId":"example","reason":"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/blocks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "hostId": "example", "identityId": "example", "reason": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
hostId
required
string
identityId
required
string
reason
string
key
additional properties
any
Example generated
{ "hostId": "example", "identityId": "example", "reason": "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" }}