Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Route::RackLayout

SOURCE

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

METHODS

routes

Sets up the routes for /layout.

one_layout_routes

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

ROUTE ENDPOINTS

All routes require authentication.

Take note: All routes that reference a specific rack layout (prefix /layout/:layout_id) are also available under /rack/:rack_id_or_long_name/layout/:layout_id_or_rack_unit_start as well as /room/datacenter_room_id_or_alias/rack/:rack_id_or_name/layout/:layout_id_or_rack_unit_start.

GET /layout

POST /layout

GET /layout/:layout_id

POST /layout/:layout_id

DELETE /layout/:layout_id

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