Storage Units
Attributes
-
id
string
Unique identifier for the object.
- name string
-
type
integer
1 is a rack mount, 5 is a VLM.
Endpoints
List Storage Units
get /api/storage_unitsGet the list of storage units from the PPG database and return a JSON response.
Arguments
- name string
- type integer
Request with curl
curl "http://[Your IP]/api/storage_units" \
-X
get
\-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{
"storage units": [{
"id": "string",
"name": "string",
"type": "integer",
}]
}]
}
Show Storage Unit
get /api/storage_units/[id]Get a single storage unit from the PPG database and return a JSON response.
Request with curl
curl "http://[Your IP]/api/storage_units/[id]" \
-X
get
\-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{
"storage units": [{
"id": "string",
"name": "string",
"type": "integer",
}]
}]
}