Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::Route::Workspace

METHODS

routes

Sets up the routes for /workspace.

Note that in all routes using :workspace_id_or_name, the stash for workspace_id will be populated, as well as workspace_name if the identifier was not a UUID.

Unless otherwise noted, all routes require authentication.

GET /workspace

GET /workspace/:workspace_id_or_name

GET /workspace/:workspace_id_or_name/child

POST /workspace/:workspace_id_or_name/child

GET /workspace/:workspace_id_or_name/device

Accepts the following optional query parameters:

GET /workspace/:workspace_id_or_name/device/active

An alias for /workspace/:workspace_id_or_name/device?active=t.

GET /workspace/:workspace_id_or_name/device/pxe

GET /workspace/:workspace_id_or_name/rack

POST /workspace/:workspace_id_or_name/rack

GET /workspace/:workspace_id_or_name/rack/:rack_id

If the Accepts header specifies text/csv it will return a CSV document.

DELETE /workspace/:workspace_id_or_name/rack/:rack_id

POST /workspace/:workspace_id_or_name/rack/:rack_id/layout

GET /workspace/:workspace_id_or_name/relay

Takes one query optional parameter, active_within=X to constrain results to those updated with in the last X minutes.

GET /workspace/:workspace_id_or_name/relay/:relay_id/device

GET /workspace/:workspace_id_or_name/user

POST /workspace/:workspace_id_or_name/user?send_mail=<1|0>

Takes one optional query parameter send_mail=<1|0> (defaults to 1) to send an email to the user

DELETE /workspace/:workspace_id_or_name/user/:target_user_id_or_email?send_mail=<1|0>

Takes one optional query parameter send_mail=<1|0> (defaults to 1) to send an email to the user

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