Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Route::Device

SOURCE

https://github.com/joyent/conch-api/blob/master/lib/Conch/Route/Device.pm

METHODS

routes

Sets up the routes for /device.

ROUTE ENDPOINTS

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:

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

POST /device/:device_id_or_serial_number/validated

POST /device/:device_id_or_serial_number/phase

POST /device/:device_id_or_serial_number/links

POST /device/:device_id_or_serial_number/build

POST /device/:device_id_or_serial_number/hardware_product

POST /device/:device_id_or_serial_number/sku

GET /device/:device_id_or_serial_number/location

POST /device/:device_id_or_serial_number/location

DELETE /device/:device_id_or_serial_number/location

GET /device/:device_id_or_serial_number/settings

POST /device/:device_id_or_serial_number/settings

GET /device/:device_id_or_serial_number/settings/:key

POST /device/:device_id_or_serial_number/settings/:key

DELETE /device/:device_id_or_serial_number/settings/:key

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

LICENSING

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/.