Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Route/Device.pm
Sets up the routes for /device.
All routes require authentication.
The user’s role (required for most endpoints) is determined by the build the device is contained in (where users are assigned a role in that build), and the rack location of the device and the build the rack is contained in (where users are assigned a role in that build).
Full (admin-level) access is also granted to a device if a report was sent for that device using a relay that registered with that user’s credentials.
GET /device?:key=:valueSupports the following query parameters:
hostname=:hostnamemac=:macaddripaddr=:ipaddr:setting_key=:setting_valueThe value of :setting_key and :setting_value are a device setting key and
value. For information on how to create a setting key or set its value see
below.
GET /device/:device_id_or_serial_numberGET /device/:device_id_or_serial_number/pxeGET /device/:device_id_or_serial_number/phaseGET /device/:device_id_or_serial_number/skuPOST /device/:device_id_or_serial_number/asset_tag204 No Content, plus Location headerPOST /device/:device_id_or_serial_number/validated204 No Content, plus Location headerPOST /device/:device_id_or_serial_number/phase204 No Content, plus Location headerPOST /device/:device_id_or_serial_number/links204 No Content, plus Location headerDELETE /device/:device_id_or_serial_number/linksPOST /device/:device_id_or_serial_number/build204 No Content, plus Location headerPOST /device/:device_id_or_serial_number/hardware_productPOST /device/:device_id_or_serial_number/sku204 No Content, plus Location headerGET /device/:device_id_or_serial_number/locationPOST /device/:device_id_or_serial_number/location204 No Content, plus Location headerDELETE /device/:device_id_or_serial_number/location204 No ContentGET /device/:device_id_or_serial_number/settingsPOST /device/:device_id_or_serial_number/settingstag..204 No ContentGET /device/:device_id_or_serial_number/settings/:keyPOST /device/:device_id_or_serial_number/settings/:keytag..204 No ContentDELETE /device/:device_id_or_serial_number/settings/:keytag., and admin
otherwise.204 No ContentPOST /device/:device_id_or_serial_number/validation/:validation_idDoes not store validation results.
This endpoint is deprecated and will be removed in Conch API v4.0.
POST /device/:device_id_or_serial_number/validation_plan/:validation_plan_idDoes not store validation results.
This endpoint is deprecated and will be removed in Conch API v4.0.
GET /device/:device_id_or_serial_number/validation_state?status=<pass|fail|error>&status=...Accepts the query parameter status, indicating the desired status(es)
to search for (one of pass, fail, error). Can be used more than once.
GET /device/:device_id_or_serial_number/interfaceGET /device/:device_id_or_serial_number/interface/:interface_nameGET /device/:device_id_or_serial_number/interface/:interface_name/:fieldCopyright Joyent, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.