Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Controller/DeviceReport.pm
Controller for processing and managing device reports.
Processes the device report, turning it into the various device_* tables as well as running validations.
Response contains no data but returns the resource to fetch the result in the Location header.
Uses a device report to populate configuration information about the given device
Chainable action that uses the device_report_id
value provided in the stash (usually via the
request URL) to look up a device report, and stashes the query to get to it in
device_report_rs
.
device_id
is also saved to the stash.
Role checks are done in the next controller action in the chain.
Get the device_report record specified by uuid. A role check has already been done by device#find_device.
Response uses the DeviceReportRow json schema.
Process a device report without writing anything to the database; otherwise behaves like “process”. The validation plan is determined from the report sku if the device does not exist; otherwise, it uses the device sku as “process” does.
Response uses the ReportValidationResults json schema.
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/.