Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Controller::Datacenter

SOURCE

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

METHODS

find_datacenter

Chainable action that uses the datacenter_id value provided in the stash (usually via the request URL) to look up a datacenter, and stashes the result in datacenter.

get_all

Get all datacenters.

Response uses the Datacenters json schema.

get_one

Get a single datacenter.

Response uses the Datacenter json schema.

get_rooms

Get all rooms for the given datacenter.

Response uses the DatacenterRoomsDetailed json schema.

create

Create a new datacenter.

update

Update an existing datacenter.

delete

Permanently delete a datacenter.

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