Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::Route::Device

METHODS

routes

Sets up the routes for /device:

Unless otherwise noted, all routes require authentication.

POST /device/:device_id

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

GET /device/:device_id/pxe

GET /device/:device_id/phase

POST /device/:device_id/graduate

POST /device/:device_id/triton_setup

POST /device/:device_id/triton_uuid

POST /device/:device_id/triton_reboot

POST /device/:device_id/asset_tag

POST /device/:device_id/validated

POST /device/:device_id/phase

GET /device/:device_id/location

POST /device/:device_id/location

DELETE /device/:device_id/location

GET /device/:device_id/settings

POST /device/:device_id/settings

GET /device/:device_id/settings/:key

POST /device/:device_id/settings/:key

DELETE /device/:device_id/settings/:key

POST /device/:device_id/validation/:validation_id

Does not store validation results.

POST /device/:device_id/validation_plan/:validation_plan_id

Does not store validation results.

GET /device/:device_id/validation_state?status=<pass,fail,error>

Accepts the query parameter status, indicating the desired status(es) (comma-separated) to search for – one or more of: pass, fail, error.

GET /device/:device_id/interface

GET /device/:device_id/interface/:interface_name

GET /device/:device_id/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 http://mozilla.org/MPL/2.0/.