Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Controller::Device

SOURCE

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

METHODS

find_device_interface

Chainable action that uses the interface_name value provided in the stash (usually via the request URL) to look up a device interface, and stashes the query to get to it in device_interface_rs.

get_one_field

Retrieves the value of the specified device_nic field for the specified device interface.

Response uses the DeviceNicField json schema.

get_one

Retrieves all device_nic fields for the specified device interface.

Response uses the DeviceNic json schema.

get_all

Retrieves all device_nic records for the specified device.

Response uses the DeviceNics json schema.

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