Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::Controller::Device

METHODS

find_device

Chainable action that validates the ‘device_id’ provided in the path.

get

Retrieves details about a single (active) device. Response uses the DetailedDevice json schema.

lookup_by_other_attribute

Looks up one or more devices by query parameter. Supports:

/device?hostname=$hostname
/device?mac=$macaddr
/device?ipaddr=$ipaddr
/device?$setting_key=$setting_value

Response uses the Devices json schema.

get_pxe

Gets PXE-specific information about a device.

Response uses the DevicePXE json schema.

graduate

Marks the device as “graduated” (VLAN flipped)

set_triton_reboot

Sets the latest_triton_reboot field on a device

set_triton_uuid

Sets the triton_uuid field on a device, given a triton_uuid field that is a valid UUID

set_triton_setup

If a device has been marked as rebooted into Triton and has a Triton UUID, sets the triton_setup field. Fails if the device has already been marked as such.

set_asset_tag

Sets the asset_tag field on a device

set_validated

Sets the validated field on a device unless that field has already been set

get_phase

Gets just the device’s phase. Response uses the DevicePhase json schema.

set_phase

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