Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::Controller::WorkspaceRack

METHODS

list

Get a list of racks for the current workspace (as specified by :workspace_id in the path).

Response uses the WorkspaceRackSummary json schema.

find_rack

Chainable action that takes the ‘rack_id’ provided in the path and looks it up in the database, stashing a resultset to access it as ‘rack_rs’.

get_layout

Get the layout of the current rack (as specified by :rack_id in the path). Supports json, csv formats.

Response uses the WorkspaceRack json schema.

add

Add a rack to a workspace, unless it is the GLOBAL workspace, provided the rack is assigned to the parent workspace of this one.

remove

Remove a rack from a workspace.

Requires ‘admin’ permissions on the workspace.

assign_layout

Assign a full or partial layout for a rack

Response returns the list of devices that were updated.

Response uses the WorkspaceRackLayoutUpdateResponse json schema.

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 http://mozilla.org/MPL/2.0/.