Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Route::Rack

SOURCE

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

METHODS

routes

Sets up the routes for /rack.

one_rack_routes

Sets up the routes for working with just one rack, mounted under a provided route prefix.

ROUTE ENDPOINTS

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

GET /rack/:rack_id_or_name

POST /rack/:rack_id_or_name

DELETE /rack/:rack_id_or_name

GET /rack/:rack_id_or_name/layout

POST /rack/:rack_id_or_name/layout

GET /rack/:rack_id_or_name/assignment

POST /rack/:rack_id_or_name/assignment

DELETE /rack/:rack_id_or_name/assignment

This method requires a request body.

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.

POST /rack/:rack_id_or_name/links

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

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