Revoke a serial under a CA (rebuilds the KRL)
POST
/ssh/cas/{caId}/revoke-serial
const url = 'https://pki.example.com/api/v1/ssh/cas/example/revoke-serial';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"serial":"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/cas/example/revoke-serial \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "serial": "example", "reason": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”caId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
serial
required
string
reason
string
key
additional properties
any
Example generated
{ "serial": "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" }}