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 /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:
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/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
204 NO CONTENT
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
204 NO CONTENT
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/.