Closed karenetheridge closed 5 years ago
Will a 404 or other sort of error be returned if answering a query to /device/:serial/sku
can't be satisfied?
I'll add some common error conditions above.
👍 let's run with this
I'd like to see @bdelano comment on this too since he'd proposed writing the Netbox <-> Conch bit.
I had a chat with Richard regarding adding a unique build name to the device and he is going to work with his team to figures something out, so we should be good to go with @karenetheridge's original concept.
It's also an option to start off new "buildless" devices in a placeholder build and then move them to where they belong once that's known.
agreed, I got some feedback from Richard today that everything should be in place by the time the next build comes around so hopefully it will be standard process by the time V3 roles out
As discussed:
I propose:
POST /build/:build_id_or_name/device
- with the payload containing the serial number and sku (submitting multiple devices at once probably makes sense). the device is created or updated.GET /device/:serial/sku
- get the device's sku (and possibly other relevant device-level fields (GET /device/:serial
returns a lot of data, most of which is not relevant at this stage of the process)