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=:value
Supports the following query parameters:
hostname=:hostname
mac=:macaddr
ipaddr=:ipaddr
:setting_key=:setting_value
The 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_number
GET /device/:device_id_or_serial_number/pxe
GET /device/:device_id_or_serial_number/phase
GET /device/:device_id_or_serial_number/sku
POST /device/:device_id_or_serial_number/asset_tag
204 No Content
, plus Location headerPOST /device/:device_id_or_serial_number/validated
204 No Content
, plus Location headerPOST /device/:device_id_or_serial_number/phase
204 No Content
, plus Location headerPOST /device/:device_id_or_serial_number/links
204 No Content
, plus Location headerDELETE /device/:device_id_or_serial_number/links
POST /device/:device_id_or_serial_number/build
204 No Content
, plus Location headerPOST /device/:device_id_or_serial_number/hardware_product
POST /device/:device_id_or_serial_number/sku
204 No Content
, plus Location headerGET /device/:device_id_or_serial_number/location
POST /device/:device_id_or_serial_number/location
204 No Content
, plus Location headerDELETE /device/:device_id_or_serial_number/location
204 No Content
GET /device/:device_id_or_serial_number/settings
POST /device/:device_id_or_serial_number/settings
tag.
.204 No Content
GET /device/:device_id_or_serial_number/settings/:key
POST /device/:device_id_or_serial_number/settings/:key
tag.
.204 No Content
DELETE /device/:device_id_or_serial_number/settings/:key
tag.
, and admin
otherwise.204 No Content
POST /device/:device_id_or_serial_number/validation/:validation_id
Does 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_id
Does 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/interface
GET /device/:device_id_or_serial_number/interface/:interface_name
GET /device/:device_id_or_serial_number/interface/:interface_name/:field
Copyright 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/.