phase-b: add node uuid/alias/ip metadata APIs and node list enrichment
This commit is contained in:
@@ -294,10 +294,14 @@ func (s *Server) HandleEnrollConsume(w http.ResponseWriter, r *http.Request) {
|
||||
Error int `json:"error"`
|
||||
Message string `json:"message"`
|
||||
NodeID int64 `json:"node_id"`
|
||||
NodeUUID string `json:"node_uuid"`
|
||||
NodeName string `json:"node_name"`
|
||||
Alias string `json:"alias"`
|
||||
VirtualIP string `json:"virtual_ip"`
|
||||
Secret string `json:"node_secret"`
|
||||
Tenant int64 `json:"tenant_id"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
}{0, "ok", cred.NodeID, cred.Secret, cred.TenantID, cred.CreatedAt}
|
||||
}{0, "ok", cred.NodeID, cred.NodeUUID, cred.NodeName, cred.Alias, cred.VirtualIP, cred.Secret, cred.TenantID, cred.CreatedAt}
|
||||
b, _ := json.Marshal(resp)
|
||||
writeJSON(w, http.StatusOK, string(b))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user