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 /build
Supports 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 /build
201 Created
, plus Location headerGET /build/:build_id_or_name
Supports 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_name
204 No Content
, plus Location headerPOST /build/:build_id_or_name/links
204 No Content
, plus Location headerDELETE /build/:build_id_or_name/links
204 No Content
, plus Location headerGET /build/:build_id_or_name/user
POST /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 Content
DELETE /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 Content
GET /build/:build_id_or_name/organization
POST /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 Content
DELETE /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 Content
GET /build/:build_id_or_name/device
Accepts 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/pxe
POST /build/:build_id_or_name/device
204 No Content
POST /build/:build_id_or_name/device/:device_id_or_serial_number
204 No Content
DELETE /build/:build_id_or_name/device/:device_id_or_serial_number
204 No Content
GET /build/:build_id_or_name/rack
Accepts 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_name
204 No Content
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/.