List power feeds
GET
/api/power-feeds
const url = 'http://localhost:3000/api/power-feeds?page=1&sort=name&order=asc';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/power-feeds?page=1&sort=name&order=asc' \ --cookie session=<session>Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” page
integer
Page number (1-based)
pageSize
integer
Rows per page. Omitted = full table, capped at 10000.
search
string
Case-insensitive substring match across name, comments
sort
string
Sort column
order
string
Sort direction
Responses
Section titled “ Responses ”Success
Media type application/json
object
data
required
Array<object>
object
id
required
string format: uuid
name
required
string
powerPanelId
required
string format: uuid
rackId
string format: uuid
type
string
supply
string
phase
string
voltage
required
integer
amperage
required
integer
maxUtilization
Percent, default 80
integer
status
required
string
comments
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
total
required
integer
page
required
integer
pageSize
required
integer
hasMore
required
boolean
Example
{ "data": [ { "type": "primary", "supply": "AC", "phase": "single", "status": "active" } ]}Invalid filter param
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}