Constructor
new RackPositionController()
Source
Methods
create(siteId, createData) → {Promise.<RackPositionModel>}
Create a Rack Position [POST /lab/sites/{siteId}/rack-positions]
Parameters
-
siteId
numberThe Site ID
-
createData
RackPositionController.CreateDataThe Rack Position Create Data
Returns
-
Promise.<RackPositionModel>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Rack Position [DELETE /lab/sites/{siteId}/rack-positions/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Rack Position ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<RackPositionModel>>}
List all Rack Positions [GET /lab/sites/{siteId}/rack-positions]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
RackPositionController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<RackPositionModel>>
Source
getOne(siteId, id) → {Promise.<RackPositionModel>}
Retrieve a Rack Position [GET /lab/sites/{siteId}/rack-positions/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Rack Position ID
Returns
-
Promise.<RackPositionModel>
Source
update(siteId, id, updateData) → {Promise.<RackPositionModel>}
Update a Rack Position [PATCH /lab/sites/{siteId}/rack-positions/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Rack Position ID
-
updateData
RackPositionController.UpdateDataThe Rack Position Update Data
Returns
-
Promise.<RackPositionModel>
Source
Type Definitions
CreateData
The Create Data for a Rack Position
Type
-
Object
Properties
-
rtuId
number<optional>
<nullable>
The RTU this Rack Position belongs to
-
name
stringThe Name of this Rack Position
-
points
ObjectThe Points used by this Rack Position
-
labId
stringThe Lab that owns this Rack Position
-
rackId
stringThe Rack associated with this Rack Position
-
verticalLevelIndex
numberThe Index of the Vertical Level in the Rack where this Position resides
-
horizontalPositionIndex
numberThe Index of the Horizontal Position in the Rack where this Position resides
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
rtuId
number<optional>
<nullable>
The RTU this Rack Position belongs to
-
name
string<optional>
The Name of this Rack Position
-
labId
string<optional>
The Lab that owns this Rack Position
-
rackId
string<optional>
The Rack associated with this Rack Position
-
verticalLevelIndex
number<optional>
The Index of the Vertical Level in the Rack where this Position resides
-
horizontalPositionIndex
number<optional>
The Index of the Horizontal Position in the Rack where this Position resides
Source
UpdateData
The Update Data for a Rack Position
Type
-
Object
Properties
-
name
string<optional>
The Name of this Rack Position
-
points
Object<optional>
The Points used by this Rack Position
-
labId
string<optional>
The Lab that owns this Rack Position
-
rackId
string<optional>
The Rack associated with this Rack Position
-
verticalLevelIndex
number<optional>
The Index of the Vertical Level in the Rack where this Position resides
-
horizontalPositionIndex
number<optional>
The Index of the Horizontal Position in the Rack where this Position resides