Project

General

Profile

Bug #15344

Updated by François ARMAND over 4 years ago

The API endpoints is POST .../nodes/uuid with properties agentKey a json with the following fields: 

 * 

     value: the PEM string of the key/certificate. The type is automatically infered from the PEM (ie either certificate or publicKey) 
 * 
     status: verified status of the key, by default the key is @certified@ certified if the key is given. Accepted value = @undefined@, @certified@ =reset, certified 

 The API should also accept non JSON POST like that: 

 * @POST 

     `POST .../nodes/uuid -d "agentKey.status=reset"@ "agentKey.status=reset" to reset the certificate status, 
 * @POST 
     POST .../nodes/uuid/ -d "agentKey.value=---- BEGIN CERTIFICATE ...."@ ...." to set a new key. 

 And if you want to do fancy things: @POST .../nodes/uuid -d '{ "agentKey": { "status":"undefined", "value":"--- BEGIN CERTIFICATE ..." }@ 


Back