Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Route/Rack.pm
Sets up the routes for /rack.
Sets up the routes for working with just one rack, mounted under a provided route prefix.
All routes require authentication.
Take note: All routes that reference a specific rack (prefix /rack/:rack_id
) are also
available under /rack/:rack_id_or_long_name
as well as
/room/datacenter_room_id_or_alias/rack/:rack_id_or_name
.
POST /rack
201 Created
, plus Location headerGET /rack/:rack_id_or_name
POST /rack/:rack_id_or_name
204 No Content
, plus Location headerDELETE /rack/:rack_id_or_name
204 No Content
GET /rack/:rack_id_or_name/layout
POST /rack/:rack_id_or_name/layout
204 No Content
, plus Location headerGET /rack/:rack_id_or_name/assignment
POST /rack/:rack_id_or_name/assignment
204 No Content
, plus Location headerDELETE /rack/:rack_id_or_name/assignment
This method requires a request body.
204 No Content
POST /rack/:rack_id_or_name/phase?rack_only=<0|1>
The query parameter rack_only
(defaults to 0
) specifies whether to update
only the rack’s phase, or all the rack’s devices’ phases as well.
204 No Content
, plus Location headerPOST /rack/:rack_id_or_name/links
204 No Content
, plus Location headerDELETE /rack/:rack_id_or_name/links
204 No Content
, plus Location headerGET /rack/:rack_id_or_name/layout/:layout_id_or_rack_unit_start
See “GET /layout/:layout_id
” in Conch::Route::RackLayout.
POST /rack/:rack_id_or_name/layout/:layout_id_or_rack_unit_start
See “POST /layout/:layout_id
” in Conch::Route::RackLayout.
DELETE /rack/:rack_id_or_name/layout/:layout_id_or_rack_unit_start
See “DELETE /layout/:layout_id
” in Conch::Route::RackLayout.
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/.