Sign a host certificate (fleet token; idempotent on Idempotency-Key)
POST
/external/ssh/sign-host
const url = 'https://pki.example.com/api/v1/external/ssh/sign-host';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fqdn":"example","addresses":[],"opensshHostPubkey":"example","validForSeconds":1,"keyId":"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/sign-host \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fqdn": "example", "addresses": [], "opensshHostPubkey": "example", "validForSeconds": 1, "keyId": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fqdn
required
string
addresses
Array<string>
opensshHostPubkey
required
string
validForSeconds
integer
keyId
string
key
additional properties
any
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
key
additional properties
any
Example generated
{}