Datacenter build and management service
Conch::Route::Workspace
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 /workspaceGET /workspace/:workspace_id_or_nameGET /workspace/:workspace_id_or_name/childPOST /workspace/:workspace_id_or_name/childGET /workspace/:workspace_id_or_name/deviceAccepts the following optional query parameters:
graduated=<T|F> show only devices where the graduated attribute is set/not-setvalidated=<T|F> show only devices where the validated attribute is set/not-sethealth=<value> show only devices with the health matching the provided value (case-insensitive)active=t show only devices which have reported within the last 5 minutes (this is different from all active devices)ids_only=t only return device IDs, not full device details
GET /workspace/:workspace_id_or_name/device/activeAn alias for /workspace/:workspace_id_or_name/device?active=t.
GET /workspace/:workspace_id_or_name/device/pxeGET /workspace/:workspace_id_or_name/rackPOST /workspace/:workspace_id_or_name/rackGET /workspace/:workspace_id_or_name/rack/:rack_idIf the Accepts header specifies text/csv it will return a CSV document.
DELETE /workspace/:workspace_id_or_name/rack/:rack_id204 NO CONTENTPOST /workspace/:workspace_id_or_name/rack/:rack_id/layoutGET /workspace/:workspace_id_or_name/relayTakes 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/deviceGET /workspace/:workspace_id_or_name/userPOST /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
204 NO CONTENTCopyright 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/.