One way to make brownfield deployments of Razor easier is to allow users to register nodes explicitly. The register-nodes call would take an array of node-like objects and add them as known nodes to the Razor database. Each node object would minimally look something like
The facts do not need to be complete, but have to contain enough information so that the node can be identified when it boots; most commonly, this means that the facts will have to contain at least one MAC address for the node. The 'installed' flag indicates whether the node contains something the user wishes to preserve or whether it's eligible for going through the policy table.
The response should contain, for each created node, a link to the node object. The behavior when an existing node is mentioned in register-nodes is TBD.