Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Controller::DatacenterRoom

SOURCE

https://github.com/joyent/conch-api/blob/master/lib/Conch/Controller/DatacenterRoom.pm

METHODS

find_datacenter_room

Chainable action that uses the datacenter_room_id_or_alias value provided in the stash (usually via the request URL) to look up a datacenter_room, and stashes the query to get to it in datacenter_room_rs.

If require_role is provided in the stash, it is used as the minimum required role for the user to continue; otherwise the user must be a system admin.

get_all

Get all datacenter rooms.

Response uses the DatacenterRoomsDetailed json schema.

get_one

Get a single datacenter room.

Response uses the DatacenterRoomDetailed json schema.

create

Create a new datacenter room.

update

Update an existing room.

delete

Permanently delete a datacenter room.

racks

Response uses the Racks 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 https://www.mozilla.org/en-US/MPL/2.0/.