Confirm a host is eligible for encrypted (ECIES) KRL distribution
POST
/external/ssh/register-host-pubkey
const url = 'https://pki.example.com/api/v1/external/ssh/register-host-pubkey';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fqdn":"example","host_id":"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/external/ssh/register-host-pubkey \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fqdn": "example", "host_id": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fqdn
Host FQDN (alias: host_id)
string
host_id
Host FQDN (alias of fqdn)
string
key
additional properties
any
Example generated
{ "fqdn": "example", "host_id": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
key
additional properties
any
Example generated
{}