Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Route/Build.pm
Sets up the routes for /build.
All routes require authentication.
GET /buildSupports the following optional query parameters:
started=<0|1> only return unstarted, or started, builds respectivelycompleted=<0|1> only return incomplete, or complete, builds respectively
POST /build201 Created, plus Location headerGET /build/:build_id_or_nameSupports the following optional query parameters:
with_device_health - includes correlated counts of devices having each health valuewith_device_phases - includes correlated counts of devices having each phase valuewith_rack_phases - includes correlated counts of racks having each phase value
POST /build/:build_id_or_name204 No Content, plus Location headerPOST /build/:build_id_or_name/links204 No Content, plus Location headerDELETE /build/:build_id_or_name/links204 No Content, plus Location headerGET /build/:build_id_or_name/userPOST /build/:build_id_or_name/user?send_mail=<1|0>Takes one optional query parameter send_mail=<1|0> (defaults to 1) to send
an email to the user.
204 No ContentDELETE /build/:build_id_or_name/user/#target_user_id_or_email?send_mail=<1|0>Takes one optional query parameter send_mail=<1|0> (defaults to 1) to send
an email to the user.
204 No ContentGET /build/:build_id_or_name/organizationPOST /build/:build_id_or_name/organization?send_mail=<1|0>Takes one optional query parameter send_mail=<1|0> (defaults to 1) to send
an email to the organization members and build admins.
204 No ContentDELETE /build/:build_id_or_name/organization/:organization_id_or_name?send_mail=<1|0>Takes one optional query parameter send_mail=<1|0> (defaults to 1) to send
an email to the organization members and build admins.
204 No ContentGET /build/:build_id_or_name/deviceAccepts the following optional query parameters:
health=:value show only devices with the health matching the provided value
(can be used more than once)phase=:value show only devices with the phase matching the provided value
(can be used more than once)active_minutes=:X show only devices which have reported within the last X minutesids_only=1 only return device IDs, not full device details
GET /build/:build_id_or_name/device/pxePOST /build/:build_id_or_name/device204 No ContentPOST /build/:build_id_or_name/device/:device_id_or_serial_number204 No ContentDELETE /build/:build_id_or_name/device/:device_id_or_serial_number204 No ContentGET /build/:build_id_or_name/rackAccepts the following optional query parameters:
phase=:value show only racks with the phase matching the provided value
(can be used more than once)ids_only=1 only return rack IDs, not full rack details
POST /build/:build_id_or_name/rack/:rack_id_or_name204 No ContentCopyright 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/.