BLSS v7.0.0 - RESTful API User Guide - v2
BLSS v7.0.0 - RESTful API User Guide - v2
July 2023
Version 2
Eaton
Proprietary and Confidential
www.Eaton.com/VCOM
LEGAL NOTICE
Copyright © 1999–2023. Eaton All rights reserved. The contents of this document constitute valuable proprietary and
confidential property of Eaton and are provided subject to specific obligations of confidentiality set forth in one or more
binding legal agreements. Any use of this material is limited strictly to the uses specifically authorized in the applicable
license agreement(s) pursuant to which such material has been furnished. Any use or disclosure of all or any part of this
material not specifically authorized in writing by Eaton is strictly prohibited.
2 Contents
Contact Support
For your convenience, Eaton provides one site where you can access the information that you need for
our DCIM products. You can access the resources listed below by going to
https://support.optimumpathinc.com.
• Online and telephone contact information for technical assistance and customer services
• Product and documentation downloads
• Other helpful resources appropriate for your product
3 Contents
Contents
Contents ........................................................................................................................................................ 4
1. Introduction .............................................................................................................................................. 8
1.1. What is a RESTful API? ....................................................................................................................... 8
2. Prerequisites and Examples ...................................................................................................................... 9
2.1. Tools Required ................................................................................................................................... 9
2.2. Examples Steps .................................................................................................................................. 9
2.2.1. Step one – Set up the Authentication Type ............................................................................... 9
2.2.2. Step two – Set up the Request Header .................................................................................... 10
2.2.3. Step three – Set up the Request Body ..................................................................................... 10
2.2.4. Step four – Review the response from the BLSS server ........................................................... 11
3. Services ................................................................................................................................................... 12
3.1. Service Overview ............................................................................................................................. 12
3.2. Device Service .................................................................................................................................. 12
3.2.1. Create a device ......................................................................................................................... 13
3.2.2. Create multiple devices ............................................................................................................ 13
3.2.3. Create a device with groups ..................................................................................................... 14
3.2.4. Create a device with attributes ................................................................................................ 15
3.2.5. Create a device with application .............................................................................................. 15
3.2.6. Create a device with location ................................................................................................... 16
3.2.7. Update device name or description ......................................................................................... 17
3.2.8. Move device ............................................................................................................................. 17
3.2.9. Update device attributes.......................................................................................................... 18
3.2.10. Update device groups ............................................................................................................ 19
3.2.11. Assign or remove device ........................................................................................................ 20
3.2.12. Query device list ..................................................................................................................... 20
3.2.13. Query device with filter .......................................................................................................... 21
3.2.14. Query device port................................................................................................................... 22
3.2.15. Query device cables ............................................................................................................... 22
3.2.16. Query device static attribute detail value .............................................................................. 23
3.2.17. Query device static attribute value ........................................................................................ 23
3.2.18. Query device monitor attribute value.................................................................................... 24
4 Contents
3.2.19. Delete a device ....................................................................................................................... 25
3.2.20. Decommission a device .......................................................................................................... 25
3.2.21. Get device info ....................................................................................................................... 25
3.2.22. Save device pline .................................................................................................................... 26
3.2.23. Save device pline (Multi) ........................................................................................................ 27
3.2.24. Save device vendor ................................................................................................................ 27
3.2.25. Save device vendor (Multi)..................................................................................................... 28
3.2.26. Save device model .................................................................................................................. 29
3.2.27. Save device model (Multi) ...................................................................................................... 29
3.2.28. Get device pline list ................................................................................................................ 30
3.2.29. Get device model list .............................................................................................................. 31
3.2.30. Get device vendor list............................................................................................................. 31
3.2.31. Get device type list ................................................................................................................. 32
3.2.32. Export device events .............................................................................................................. 32
3.2.33. Get device info(S) ................................................................................................................... 33
3.2.34. Get device info(G) .................................................................................................................. 34
3.2.35. Save attribute value ............................................................................................................... 34
3.3. Location Service ............................................................................................................................... 35
3.3.1. Create or modify a location...................................................................................................... 35
3.3.2. Create or modify a location with attributes ............................................................................. 35
3.3.3. Create or modify multi locations.............................................................................................. 36
3.3.4. Delete a location ...................................................................................................................... 37
3.3.5. Get location list ........................................................................................................................ 38
3.4. Port Service ...................................................................................................................................... 38
3.4.1. Create a port ............................................................................................................................ 38
3.5. Cable Service.................................................................................................................................... 39
3.5.1. Create or modify a cable .......................................................................................................... 39
3.5.2. Delete a cable ........................................................................................................................... 40
3.5.3. Get cable type .......................................................................................................................... 41
3.6. System Service ................................................................................................................................. 41
3.6.1. Get category ............................................................................................................................. 41
3.6.2. Get category list ....................................................................................................................... 42
3.6.3. Get attribute list ....................................................................................................................... 42
5 Contents
3.6.4. Query attribute......................................................................................................................... 43
3.6.5. Get rack capacity ...................................................................................................................... 43
3.6.6. Assign device group.................................................................................................................. 43
3.6.7. Assign users .............................................................................................................................. 44
3.6.8. Delete company ....................................................................................................................... 44
3.6.9. Delete department ................................................................................................................... 45
3.6.10. Delete device group ............................................................................................................... 45
3.6.11. Delete user group ................................................................................................................... 45
3.6.12. Get company list..................................................................................................................... 46
3.6.13. Get department list ................................................................................................................ 46
3.6.14. Get device group ACL ............................................................................................................. 47
3.6.15. Get device group list .............................................................................................................. 47
3.6.16. Get probe list .......................................................................................................................... 48
3.6.17. Get unit define ....................................................................................................................... 48
3.6.18. Get user ACL ........................................................................................................................... 48
3.6.19. Get user group list .................................................................................................................. 49
3.6.20. Get user list ............................................................................................................................ 49
3.6.21. Save company ........................................................................................................................ 50
3.6.22. Save department .................................................................................................................... 51
3.6.23. Save device group .................................................................................................................. 51
3.6.24. Save user group ...................................................................................................................... 52
3.6.25. Save user ................................................................................................................................ 52
3.6.26. Get Enc&Blade Relation ......................................................................................................... 53
3.6.27. Get location shape ................................................................................................................. 53
3.6.28. Get device position................................................................................................................. 54
3.6.29. Get rack shape........................................................................................................................ 54
3.6.30. Get location Acl ...................................................................................................................... 55
3.6.31. Get rack detail ........................................................................................................................ 56
3.6.32. Get device list ......................................................................................................................... 57
3.6.33. Export device events .............................................................................................................. 57
3.6.34. Get alarm info ........................................................................................................................ 58
3.7. Audit Service .................................................................................................................................... 61
3.7.1. Cancel audit .............................................................................................................................. 61
6 Contents
3.7.2. Delete audit .............................................................................................................................. 62
3.7.3. Export audit detail .................................................................................................................... 62
3.7.4. Export audit list ........................................................................................................................ 62
3.7.5. Get audit list ............................................................................................................................. 63
3.7.6. Get audit list(G) ........................................................................................................................ 63
3.7.7. Get audit racks ......................................................................................................................... 64
3.7.8. Save audit map ......................................................................................................................... 64
3.7.9. Recreate data base ................................................................................................................... 65
3.7.10. Save audit ............................................................................................................................... 65
3.8. Monitor Service ............................................................................................................................... 66
3.8.1. Save Template Trigger .............................................................................................................. 66
3.9. API Input .......................................................................................................................................... 69
3.10. Company and Department API calls .............................................................................................. 72
4. Troubleshooting and Common Mistakes ................................................................................................ 82
4.1. HTTP 400 Bad Request..................................................................................................................... 82
4.2. HTTP 401 Unauthorized ................................................................................................................... 82
4.3. 4HTTP 403 Forbidden ...................................................................................................................... 82
4.4. HTTP 404 Not Found ........................................................................................................................ 82
4.5. HTTP 409 Conflict ............................................................................................................................ 82
4.6. HTTP 415 Unsupported Media Type ............................................................................................... 82
4.7. HTTP 500 Internal Server Error ........................................................................................................ 82
7 Contents
1. Introduction
The REST API provides rich access to data within the system to other management systems via web-
based communications. Data contained within the application is available for retrieval and may also be
created, updated, or deleted where appropriate. Successful authentication is required for access to any
data in the system.
A RESTful application contains resources that are accessed through endpoints using HTTP methods.
REST is based on resources, which are logical representations of documents, data, customers, parts, or
just about anything else. Resources make up the “object model” exposed by the system. BLSS contains
resources representing devices, racks, alarms and a number of other items of interest in the system.
A resource has a resource representation that is used to transfer information about it between a client
and the server. In practice, the term “resource” is often used to refer to the resource itself or its
representation in transit since the precise distinction is not usually important. When the distinction is
relevant, the more precise term is typically used or is made obvious by the context. Two common
representations in RESTful applications are JSON and XML, which simply define how the data is
formatted in transit.
The client and server negotiate the data format using the HTTP header Content-Type to indicate what
format is being sent and accept to indicate what format(s) can be accepted.
REST resources each have a unique endpoint, which is a URL address that identifies where that resource
can be found. REST endpoints are accessed using standard HTTP methods.
• GET is used to retrieve a resource (or a collection of resources) from the server
• POST is used to create a new resource on the server
• PUT is used to update an existing resource on the server with the representation of that
resource from the client
• DELETE is used to delete a resource from the server
8 Introduction
2. Prerequisites and Examples
2.1. Tools Required
To invoke with the REST API interactively, a user can install Postman from
https://www.getpostman.com/. The Postman application allows the user to interact with the REST API
directly and visually. To invoke the REST API on the server without UI access, a user can use any HTTP
Client SDK in any desired programming language, such as the Java-based HTTP Client SDK from Apache
by visiting https://hc.apache.org/httpcomponents-client-ga/.
After the POST method is selected and the URL link (substitute {{HOSTNAME}} with the actual BLSS URL)
is filled in, as illustrated in the screenshot images below, perform these steps:
12 Services
3.2.1. Create a device
Method Post
URL http://{host}/rest/devices
Description Create a device
Input name
model_id (device model uuid)
Input example {
"name": "ql_test_device",
"model_id": "00007aea-6a85-11e0-9d37-001d091dd9dd",
"description": "test"
}
Output device uuid,
device name,
device type uuid
Output example {
"code": "1",
"data": {
"dtype_id": "00007aea-6a85-11e0-9d37-001d091dd9dd",
"type_id": null,
"name": "0000",
"model": null,
"id": "9accfc75-005c-4d21-9434-62cdd3e32596",
"type": null
}
}
13 Services
"type_id": null,
"name": "0614ql_test_device",
"model": null,
"id": "012fab14-a1fb-4d86-890f-3129e3332797",
"type": null
},
{
"dtype_id": "00007aea-6a85-11e0-9d37-001d091dd9dd",
"type_id": null,
"name": "0614ql_test_device1",
"model": null,
"id": "012fab14-a1fb-4d86-890f-3129e3332897",
"type": null
}
]
}
14 Services
3.2.4. Create a device with attributes
Method Post
URL http://{host}/rest/devices
Description Create a device with attributes
Input name
model_id
attribute id: Customer can through the Get attribute API get the attribute id. ([Get]
http://{{test}}/rest/devices/props?name=asset tag)
attribute value
attribute unit
Note: Customer need fill the attribute id, other attribute information not required.
Input example {
"name": " BLSS api test",
"model_id":"9942ec6a-9f8e-11e3-ad2c-005056000016",
"description": "this is for test",
"attributes": [
{"id":"0aeddd86-ce3c-11dd-8da6-001d091dd9dd",
"value":"api 1",
"unit": null
},
{
"id":"0aedd732-ce3c-11dd-9a2f-001d091dd9dd",
"value":"518.19",
"unit": "W"
}
]
}
Output dtype_id: device type uuid
name: device name
id: device uuid
Output example {
"code": "1",
"data": {
"dtype_id": "9942ec6a-9f8e-11e3-ad2c-005056000016",
"type_id": null,
"name": " BLSS api test",
"model": null,
"id": "b1f248c7-a393-4202-a221-762004013bb5",
"type": null
}
}
15 Services
application name
Input example {
"name":"0614 applications",
"model_id":"9f8e15a4-978d-11e2-8c01-005056000016",
"applications": [{"action":1,"software":"MyAPI"}]
}
Output dtype_id: device type uuid
name
id: device uuid
Output example {
"code": "1",
"data": {
"dtype_id": "9f8e15a4-978d-11e2-8c01-005056000016",
"type_id": null,
"name": "0614 appliaction1",
"model": null,
"id": "e8687e69-a188-48f5-b0ca-fa3f95f09023",
"type": null
}
}
Method Post
URL http://{host}/rest/devices
Description Create a device with location
Input name
model_id: device model uuid
location_id: Customer can through the get location list get the location id
information([Get] http://{{test}}/rest/locations/list)
loc_row
loc_column
Input example {
"name": "0526 with row and column1",
"model_id":"9f8e15a4-978d-11e2-8c01-005056000016",
"description": "this is for test",
"location_id": "7b67c7d6-3f79-11e7-9b71-afde2064dbaa",
"loc_row": "1",
"loc_column": "C"
}
Output dtype_id: device type uuid
name
id: device uuid
Output example {
"code": "1",
"data": {
"dtype_id": "9f8e15a4-978d-11e2-8c01-005056000016",
16 Services
"type_id": null,
"name": "0526 with row and column1",
"model": null,
"id": "a58bea9a-20f9-4fe1-a08f-8ab40205fab0",
"type": null
}
}
Method Post
URL http://{host}/rest/devices
Description Move device
Input name
id: device uuid
model_id: device model uuid
location_id
17 Services
location: location name
loc_row
loc_column
Input example {
"name": "0615 device with location test1",
"id": "4510e463-eaf4-4468-960c-6a49a402fe18",
"model_id": "9f8e15a4-978d-11e2-8c01-005056000016",
"location_id": "50524f32-9e14-4696-9cc5-408a821f755c",
"location": "A3",
"loc_row": "6",
"loc_column": "C"
}
Output device name
device id
device type_id
Output example {
"code": "1",
"data": {
"dtype_id": "9f8e15a4-978d-11e2-8c01-005056000016",
"type_id": null,
"name": "0615 device with location test1",
"model": null,
"id": "4510e463-eaf4-4468-960c-6a49a402fe18",
"type": null
}
}
19 Services
3.2.11. Assign or remove device
Note: If user provides the u_position, part_id, shelf_id, or slots_id, we will not check docking of the
device. If user does not fill the above attribute values, we will reference docking to deploy the device.
Additional note: xr (x axis), r (y axis) and zr (z axis) refer to device rotation, px, py and pzrefer to device
position.
Method Post
URL http://{host}/rest/floorplan/plan
Description Assign or remove the device to device or location
Input id: mount device uuid
pid: mount device parent uuid
action: 1|2. 1 means add, 2 means remove
ptype_id:1|2. 1means mount device to device, 2 means mount device to floor.
u_position, part_id, shelf_id, slots_id
docking{xr,r,zr,px,py,pz}
22 Services
"dport_tag": "R",
"dport_name": "no 09: [Back side connector]",
"sdevice_id": "d02322be-efc9-45ff-9ad3-017e65f37fe0",
"ddevice_id": "4ffbc8be-1f64-4ab9-90d6-b3c9aa799133",
"sdevice_name": "0104-switch",
"base_type": "n",
"name": "New Cable",
"ddevice_name": "0104-pp",
"id": "41e71163-14d6-8dbf-6ecb-66be1bcc1b56",
"sn": null,
"status": null
}
23 Services
Output
Output example {
"code": "1",
"data": [
{
"unit": null,
"value_type_id": 1,
"name": "Name",
"value": "002185410 42U1.1"}
]
}
24 Services
3.2.19. Delete a device
Method Delete
URL http://{host}/rest/devices/{{device id}}
Description Delete a device
Input Device UUID, multi pattern (id, id)
Input example http://{host}/rest/devices/6479af47-39fa-48d8-94ca-61a0bbd3f8f4
Output
Output example {
"code": "1"
}
26 Services
3.2.23. Save device pline (Multi)
Method Post
URL http://host-server/rest/devices/plines/multi
Description Create or modify device pline(Multi)
Input host-server url,
id: pline uuid
name: pline name
vendor_id: Device vendor uuid
description: pline description
Input example [
{
"name":"0720 test device pline multi1",
"vendor_id":"e9a01172-1062-4324-8be4-a4de859252f2"
},
{
"name":"0720 test device pline multi2",
"vendor_id":"702d9bf1-1564-4b7a-862f-2d86736d08ad"
}
]
Output {
"code": "1",
"data": {
"vendor_id": "e9a01172-1062-4324-8be4-a4de859252f2",
"name": "0720 test device pline",
"description": null,
"id": "540a4f01-32df-4894-9a07-d7a941e3fad0"
}
}
Output example {
"code": "1",
"data": [
{
"vendor_id": "e9a01172-1062-4324-8be4-a4de859252f2",
"name": "0720 test device pline multi1",
"description": null,
"id": "cbbf5996-ff8d-45b5-9775-b5fe47a85441"
},
{
"vendor_id": "702d9bf1-1564-4b7a-862f-2d86736d08ad",
"name": "0720 test device pline multi2",
"description": null,
"id": "7257099d-c60f-4d6c-b0ea-5814ead41f61"}
]
}
27 Services
Input host-server url,
id: Manufacturer uuid
name: Manufacturer name
description: Manufacturer description
Input example {
"id": "6b12cd7c-cd81-11dd-81b1-001d091dd9dd",
"name": "test vendor 0721"
}
Output
Output example {
"code": "1",
"data": {
"name": "test vendor 0721",
"description": null,
"id": "6b12cd7c-cd81-11dd-81b1-001d091dd9dd"
}
}
28 Services
3.2.26. Save device model
Method Post
URL http://host-server/rest/devices/models
Description Create or modify device models
Input host-server url,
id: Device model uuid
name: Device Model name
pline_id: Device pline uuid
type_id: Device type uuid
description: Device Model description
usize: Device accupy rack u size
energy_source: Device energy Source
power_source: Device power source
voltage: Device voltage
energy_type: Device energy type
attributes: Model attributes list.
Input example {
"name":"0720 test device model",
"pline_id":"7305adf0-474f-11e7-a2c0-99ceb598cca6",
"type_id": "59e83b82-cd7b-11dd-ba1d-001d091dd9dd",
"usize":2
}
Output
Output example {
"code": "1",
"data": [
{
"pline_id":"7305adf0-474f-11e7-a2c0-99ceb598cca6",
"type_id": "59e83b82-cd7b-11dd-ba1d-001d091dd9dd",
"name": "0720 test device model ",
"description": null,
"id": "cbbf5996-ff8d-45b5-9775-b5fe47a85441"
}
}
29 Services
energy_type: Device energy type
attributes: Model attributes list.
Input example [
{
"type_id":"59c85e98-cd7b-11dd-96a7-001d091dd9dd",
"name":"0905 Test mODEL 1",
"pline_id":"0fed1234-456a-123a-a90d-fba34bd723ed",
"usize":2
},
{
"type_id":"59c85e98-cd7b-11dd-96a7-001d091dd9dd",
"name":"0905 Test mODEL 1 1",
"pline_id":"0fed1234-456a-123a-a90d-fba34bd723ed",
"usize":2
}
]
Output
Output example {
"code": "1",
"data": [
{
"type_id":"59c85e98-cd7b-11dd-96a7-001d091dd9dd",
"name":"0905 Test mODEL 1",
"pline_id":"0fed1234-456a-123a-a90d-fba34bd723ed",
"id": "cbbf5996-ff8d-45b5-9775-b5fe47a85442"
},
{
"type_id":"59c85e98-cd7b-11dd-96a7-001d091dd9dd",
"name":"0905 Test mODEL 1 1",
"pline_id":"0fed1234-456a-123a-a90d-fba34bd723ed",
"id": "cbbf5996-ff8d-45b5-9775-b5fe47a85443"
}
]
}
31 Services
"data": {
"count": 119,
"list": [
{
"dcount": 0,
"type_name": "Vendor",
"name": "A10 Networks",
"id": "5e9852a2-848e-11e1-948c-001d091dd9dd",
"type": 4,
"sid": 391}
]
}
}
32 Services
end: End time, unit s (Get through time. time())
page_idx: Page index
page_size: Page size
print: True pdf and else xlsx
Input example http://vdcdev-5051.op/rest/devices/revents/export/deb6557e-9bfe-4b15-a0ed-
dfe86d7fd1b4?page_idx=1&page_size=100&start=118550506&end=1500865086&print=true
Output
Output example PDF file
33 Services
3.2.34. Get device info(G)
Method Get
URL http://host-server/rest/devices/{id}?location=&position=&monitor=&mtpv=&ports=
Description Get Device basic info
Input host-server url
id: Device uuid, multi pattern (id,id)
location: True return device loaction info else not
position: True return device position
monitor: True return device monitor point info else not
mtpv: True return device model, pline and type info.
ports: True return device port list
Input example http://host-server/rest/devices/fc6ff5ff-9d62-4c9d-8da1-
41001d55d2b4?location=true&position=true&monitor=true&mtpv=true
Output
Output example {
"code": "1",
"data": {
"country": "China",
"city": "City 1",
"description": "",
"mid": "5f74dbc6-44e2-11de-b441-000d566af2f2",
"upos": "18.0",
"mname": "1850",
"area_id": 150,
"tid": "59e3262e-cd7b-11dd-81bf-001d091dd9dd",
"building": "Building 1",
"sid": 445, "world": "World",
"id": "fc6ff5ff-9d62-4c9d-8da1-41001d55d2b4",
"state": "Hubei",
"row": "1", "enc": null,
"floor": "F1"
}
}
34 Services
"unit": "mm"
}
]
Output
Output example {
"code": "1",
"data": {
"path": "images/audit/client_1.0.0.db.zip",
"code": 1,
"size": 25622432,
"md5": "c7ab207d13702dde5c74c8d7dd991f79"
}
}
41 Services
}, {
"name": "User Group",
"id": 7}]
}
}
42 Services
3.6.4. Query attribute
Method Get
URL http://{{test}}/rest/mtemplates/attributes/list?name={attribute name}
Description Get the filled attributeinformation
Input attribute name
Input example http://{{test}}/rest/mtemplates/attributes/list?name=name
Output
Output example {
"code": "1",
"data": {
"count": 1,
"list": [
{
"ma_id": "cd1ef7ea-69bc-11e1-ade3-00241d120212",
"ma_name": "Name"}]
}
}
45 Services
Output
Output example {
"code": "1",
"message": "Success"
}
46 Services
}
47 Services
3.6.16. Get probe list
Method Get
URL http://sever-host/rest/sys/probes
Description Get the probe list in the system
Input host-server url
Input example http://{{test}}/rest/sys/probes
Output
Output example [{
"status_id": 1,
"status_name": "Running",
"name": "SP10.10.10.197",
"id": "40f8c6c4-cb14-11e6-9fec-005056000197"}]
49 Services
Output example [{
"company_id": -1,
"department_id": -1,
"department_name": null,
"company_name": null,
"name": "bill3",
"last_name": "",
"phone_num": "123456789111",
"id": 1003053,
"first_name": "",
"email": "[email protected]"
}]
50 Services
3.6.22. Save department
Method Post
URL http://host-server/rest/sys/departments
Description Create or modify department
Input host-server url,
name: Department name
company_id: Company id. (Through http://host-server/rest/sys/companys/list)
description: Department description
cp_name: Contact name
cp_phone: Contact phone number
cp_fax: Contact fax number
cp_email: Contact email
Input example {
"name":"0724 test department",
"company_id":"1002999"
}
Output
Output example {
"code": "1",
"data": {
"company_id": 1002999,
"cp_email": null,
"company_name": "0724 Test Company api",
"cp_name": null,
"name": "0724 test department",
"cp_phone": null,
"description": null,
"id": 1003000,
"cp_fax": null}
}
51 Services
"description": null,
"by_system": false,
"id": "55662e1a-6c65-11e7-87aa-6b20961a7d3b",
"sid": 145}
}
52 Services
}
53 Services
"py": 7.146035999999999}
}
}
}
54 Services
Input example http://{{test}}/rest/floorplan/rdetail/7aeaf247-848a-414d-a8a0-84de428383cd
Output
Output example {
"code": "1",
"data": {
"models": {
"2225": {
"name": "PM2004H-401",
"psid": 1568,
"id": "7025b6d2-44e9-11de-be12-000d566af2f2",
"tsid": 609,
"sid": 2225,
"attrs": {
"depth": "0.20990000000000000000",
"color": "4605580",
"micon": "images/system/model/223/7025b6d2-44e9-11de-be12-
000d566af2f2_49621.png",
"width": "0.43150000000000000000",
"icon": "images/system/model/223/7025b6d2-44e9-11de-be12-
000d566af2f2_31674.png",
"swidth": 0.48341,
"sdepth": 0.8535,
"height": "0.04360000000000000000",
"sheight": 0.04445}
}
}
}
}
56 Services
3.6.32. Get device list
Method Get
URL http://host-server/rest/devices/rdinfo/{rack_id}
Description Get device info under the rack
Input host-server url,
rack_id: Device uuid
Input example http://{{test}}/rest/devices/rdinfo/deb6557e-9bfe-4b15-a0ed-dfe86d7fd1b4
Output
Output example {
"code": "1",
"data": [{
"owner": null,
"side": null,
"enclourse": null,
"pname": "9PX UPS",
"ip": "10.10.10.226",
"description": "Eaton 9PX 5000",
"mid": "c27aa851-bc41-5727-98ce-310ebab5e2af",
"tname": "UPS - Rackmount",
"upos": 35,
"mname": "9PX5K",
"tsid": 610,
"tid": "59f77ec6-cd7b-11dd-9002-001d091dd9dd",
"sid": 691,
"is_reserved": false,
"msid": 23172,
"slots": null,
"vname": "Eaton",
"name": "eUPS - ACD-9PX5K",
"id": "35ec2bb6-c05d-34ef-87e7-b78781a80f1a"}]
}
57 Services
3.6.34. Get alarm info
Method Post
URL http://server-host/rest/mtemplates/alarms/info2
Description Get the alarm information with the query parameter
Input host-server url,
node_id: Device uuid or location id
with_children: Device use
name: Device name
targets:6 Device, 7 Location, 8 Rack Group, Multi Pattern (6,7,8)
level_id: Alarm level: 0 Exception, 1 Normal, 2 Warning, 3 Unreachable, 4 Critical
page_idx: page index
page_size: Page size
Input example {
"level_id": 2,
"page_idx": 1,
"page_size": 100
}
Output
Output example {
"code": "1",
"data": {
"count": 3,
"list": [
{
"level_id": 3,
"link": true,
"description": null,
"mid": "1cc2c4b6-0139-5edd-a646-7d720c39f6a4",
"_is_child_": true,
"type": 6,
"tid": "59f63ab6-cd7b-11dd-9daf-001d091dd9dd",
"sid": 1622,
"vid": "6b16df98-cd81-11dd-82c0-001d091dd9dd",
"children": [
{
"severity": {
"label": "Unreachable",
"colors": [{
"color": "#249CED",
"id": 3,
"label": "Unreachable"
}],
"is_child": true
},
"is_trigger": false,
"comments": false,
"device_id": "b52a1475-d073-4b93-979a-7db1b5d96ec0",
"pname": "122pj rpdu(7)",
"_ack": "No",
"level_id": 3,
"clear": false,
"triggers_detail": null,
58 Services
"triggers": "Input Current % Load",
"click": false,
"current_value": "Input Current % Load: Can't get value by OID:
.1.3.6.1.4.1.534.6.6.7.3.3.1.11.0.1",
"device_sid": 1622,
"disable": false,
"last_time": "2021-05-11 10:02:17 CST",
"is_ack": false,
"id": "c556d3a2-62d2-11e6-be14-005056000054",
"detail": null
},
{
"severity": {
"label": "Unreachable",
"colors": [{
"color": "#249CED",
"id": 3,
"label": "Unreachable"
}],
"is_child": true
},
"is_trigger": false,
"comments": false,
"device_id": "b52a1475-d073-4b93-979a-7db1b5d96ec0",
"pname": "122pj rpdu(7)",
"_ack": "No",
"level_id": 3,
"clear": false,
"triggers_detail": null,
"triggers": "Input Current Crest Factor",
"click": false,
"current_value": "Input Current Crest Factor: Can't get value by OID:
.1.3.6.1.4.1.534.6.6.7.3.3.1.10.0.1",
"device_sid": 1622,
"disable": false,
"last_time": "2021-05-11 10:02:17 CST",
"is_ack": false,
"id": "2c9830de-62d2-11e6-be13-005056000054",
"detail": null
},
{
"severity": {
"label": "Unreachable",
"colors": [{
"color": "#249CED",
"id": 3,
"label": "Unreachable"
}],
"is_child": true
},
"is_trigger": false,
"comments": false,
"device_id": "b52a1475-d073-4b93-979a-7db1b5d96ec0",
59 Services
"pname": "122pj rpdu(7)",
"_ack": "No",
"level_id": 3,
"clear": false,
"triggers_detail": null,
"triggers": "Input Phase Name",
"click": false,
"current_value": "Input Phase Name: Can't get value by OID:
.1.3.6.1.4.1.534.6.6.7.3.3.1.2.0.1",
"device_sid": 1622,
"disable": false,
"last_time": "2021-05-11 10:02:17 CST",
"is_ack": false,
"id": "08eaf11a-6450-11e6-9edc-005056000054",
"detail": null
}
],
"last_time": "2021-05-11 10:02:17 CST",
"is_ack": false,
"id": "b52a1475-d073-4b93-979a-7db1b5d96ec0",
"severity": {
"label": "Unreachable",
"colors": [
{
"color": "#249CED",
"id": 3,
"label": "Unreachable"}
],
"is_child": false
},
"comments": false,
"_ack": "No",
"clear": true,
"loc_id": -1,
"triggers": 4,
"click": true,
"loc_uuid": null,
"disable": false,
"name": "122pj rpdu(7)",
"location": null,
"_pid_": "6b16df98-cd81-11dd-82c0-001d091dd9dd"
},
{
"level_id": 3,
"link": true,
"description": null,
"mid": "07bb6a39-a3d9-5050-a047-8092aeee83fa",
"_is_child": true,
"type": 6,
"tid": "59f77ec6-cd7b-11dd-9002-001d091dd9dd",
"sid": 1601,
"vid": "6b16df98-cd81-11dd-82c0-001d091dd9dd",
"children": [
60 Services
{
"severity": {
"label": "Unreachable",
"colors": [
{
"color": "#249CED",
"id": 3,
"label": "Unreachable"}
],
"is_child": true
},
"is_trigger": false,
"comments": false,
"device_id": "70c9006a-4203-4693-9512-9e07a728d6c5",
"pname": "122pj rups",
"_ack": "No",
"level_id": 3,
"clear": false,
"triggers_detail": null,
"triggers": "Battery Current",
"click": false,
"current_value": "Battery Current: Failed to get value from
oid:.1.3.6.1.2.1.33.1.2.6.0",
"device_sid": 1601,
"disable": false,
"last_time": "2021-05-11 10:02:52 CST",
"is_ack": false,
"id": "f555d30a-430c-11e0-91d8-00241d120212",
"detail": null}
]
},
"message": "Success"
]
}
}
61 Services
}
62 Services
3.7.5. Get audit list
Method Post
URL http://{{test}}/rest/devices/audit/list?
Description Get Audit list
Input host-server url,
id: Audit uuid to filter
name: Audit name to filter
status_id: Audit status id. 1.Not Started 2. In progress 3. Completed 4. Canceled
creator: User ID
racks: Whether return racks of the audit
page_idx: Page Index
page_size: Page size
Input example {
"page_idx": 1,
"page_size": 1,
"name": "test"
}
Output
Output example {
"code": "1",
"data": {
"count": 2,
"list": [{
"completion": "0.0%",
"creator": "16",
"verified_racks": 0,
"status_name": "In Progress",
"status_color": "0xffff66",
"description": null,
"status_id": 2,
"name": "0518 Rack 3",
"completion_date": null,
"id": "ecb8c8ba-14f4-96ee-0acc-2d9938e5a799",
"create_date": "2017-10-18 11:46:06 CST",
"start_date": "2017-10-17 15:44:19 CST",
"total_racks": 3}]
}
}
63 Services
page_idx: Page Index
page_size: Page size
Input example http://{{test}}/rest/devices/audit/list?id=2
Output
Output example {
"code": "1",
"data": {
"count": 2,
"list": [{
"completion": "0.0%",
"creator": "16",
"verified_racks": 0,
"status_name": "In Progress",
"status_color": "0xffff66",
"description": null,
"status_id": 2,
"name": "0518 Rack 3",
"completion_date": null,
"id": "ecb8c8ba-14f4-96ee-0acc-2d9938e5a799",
"create_date": "2017-10-18 11:46:06 CST",
"start_date": "2017-10-17 15:44:19 CST",
"total_racks": 3}]
}
}
64 Services
Description Map audit and racks. Same rack cannot map to different audit.
Input host-server url,
audit_id: Audit uuid
id: Device uuid
action: 1 save |2 delete
Input example [{
"id":"fbd6bbf7-7830-4561-8c89-c11888e1175d",
"action":1
}]
Output
Output example {
"code": "1",
"message": "Success"
}
65 Services
Output
Output example {
"code": "1",
"data": {
"completion": "0.0%",
"creator": "12",
"verified_racks": 0,
"status_name": "Not Started",
"status_color": "0xfac090",
"description": "Test Audit",
"status_id": 1,
"name": "Test Audit1",
"completion_date": null,
"id": "349b6d89-0585-c9e1-7c33-79ef9eac4f8a",
"create_date": "2017-10-20 21:10:30 CST",
"start_date": null,
"total_racks": 0}
}
66 Services
recovery_express Template resource recovery expression & message. (optional)
express Template resource recovery expression, Same with express.
message Template resource recovery message.
flags 1 only update status else update all info. (optional)
from_recourse True from resource else from template.
Input example {
"id":"246601fc-1c93-11ee-b67c-0fc14600cc67",
"name":"Test",
"level":3,
"mt_on":null,
"mt_off":null,
"express":[
[
{
"action":"=",
"key":"fb83a6c3-b2ed-4b7a-8052-afe7daec1fdd",
"v1":1,
"children":null,
"type":3,
"key_name":"Active Power",
"is_trap":3,
"unit":"W",
"percent_key":null,
"percent_comparision":null,
"index":null
}
]
],
"description":null,
"status":true,
"level_id":6,
"target_id":"b339a24c-2b17-3f18-bc38-9b89159994d6",
"r_express":null,
"msg_tid":null,
"target_name":"ePDU - U611E33000",
"recovery_express":{"express":[]},
"mid":"af817427-4753-59f5-9612-d256dd771c44",
"_is_child":true,
"from_resource":false,
"uuid":"246601fc-1c93-11ee-b67c-0fc14600cc67",
"tid":"59f63ab6-cd7b-11dd-9daf-001d091dd9dd",
"sid":"12646",
"vid":"6b16df98-cd81-11dd-82c0-001d091dd9dd",
"recovery_express_key":null,
"monitor_attribute":true,
"express_key":"\"Active Power\" > 1 W",
"device_id":null,
"resources":1,
"check":false,
"_status":"Enable",
"dynamic_name":null,
"serverity":"Critical",
"level_name":"Device",
"tm_id":"f0937536-ff72-11ed-a8f7-97f2e145f5b7",
"inherit":false,
"_pid_":"6b16df98-cd81-11dd-82c0-001d091dd9dd",
"_config":true
}
67 Services
Output result
Output example {
"code":"1",
"data":{
"mt_on":null,
"target_name":"ePDU - U611E33000",
"level_id":6,
"recovery_express":{"express":[]},
"description":null,
"mid":"af817427-4753-59f5-9612-d256dd771c44",
"express":[
[
{
"action":"=",
"key":"fb83a6c3-b2ed-4b7a-8052-afe7daec1fdd",
"v1":1,
"children":null,
"type":3,
"key_name":"Active Power",
"is_trap":3,
"unit":"W",
"percent_key":null,
"percent_comparision":null,
"index":null,
"key_type":-1,
"tabular":false,
"_unit":true
}
]
],
"_is_child":true,
"from_resource":false,
"msg_tid":null,
"uuid":"246601fc-1c93-11ee-b67c-0fc14600cc67",
"tid":"59f63ab6-cd7b-11dd-9daf-001d091dd9dd",
"_config":true,
"sid":12646,
"vid":"6b16df98-cd81-11dd-82c0-001d091dd9dd",
"mt_off":null,
"id":"246601fc-1c93-11ee-b67c-0fc14600cc67",
"recovery_express_key":null,
"r_express":null,
"monitor_attribute":true,
"express_key":"\"Active Power\" = 1 W",
"device_id":null,
"level":3,
"resources":1,
"target_id":"b339a24c-2b17-3f18-bc38-9b89159994d6",
"check":false,
"_status":"Enable",
"dynamic_name":null,
"version":2,
"serverity":"Critical",
68 Services
"level_name":"Device",
"tm_id":"f0937536-ff72-11ed-a8f7-97f2e145f5b7",
"_change_status_":false,
"inherit":false,
"name":"Test",
"_pid_":"6b16df98-cd81-11dd-82c0-001d091dd9dd",
"status":true
},
"message":"Success"
}
69 Services
4. Select the device link to open the Device Central page for the device.
5. Select the Monitor function tile to configure the device monitoring.
6. Configuration requires that an IP address is provided. Use 127.0.0.1 or the actual IP address.
Note: The API call uses the device name or alias to identify the device so the IP address is not
actually used.
7. Select API Input for the protocol.
8. On the Monitoring Templates tab, enable the API monitoring template.
9. Click the Submit button to save the monitoring configuration.
70 Services
Description Insert monitor data to device
Input device_name: Device name in BLSS
device_alias: Static attribute alias of the device
attribute: Template attribute UUID
value: value of the attribute
time: timestamp of the attribute value
Rules: device_name and device_alias, one of them must be identified. The input
device_name or device_alias must be unique.
Input example [{
"device_alias":"TEST1",
"attributes": [{
"attribute":"b86e441e-872d-11de- ba55-000d566af2f2",
"value":60, "time":1516243835555,
"unit":"°F"
},{
"attribute":"763ec1fe-9a10-11de- b08e-00241d120212",
"value":6, "time":1516243835555,
"unit":"A"}
]
}]
Note: The attribute UUID can be found by opening attribute's page in Attribute Manager.
71 Services
11. Login to the BLSS system, select the device and the Dashboard function tile and check the Real-
time Monitoring Data for the device.
72 Services
Method Get
URL http://{host}/rest/analyze/company/analyze?customer={Company
Alias}&power=true&space=true&environmental=true&assets=true
Description Get Space, Environment, Power and Assets information based on given Company
Alias.
http://{host}/ranalyze/company/analyze?customer={Company Name}
&customer_type=1&power=true&space=true&environmental=true&assets=true
&page_size=100&page_idx=1
Output
Output example {
"code": "1",
"data": {
"Company": "OPI",
"Departments": [
{
"Department": {
"Space": {
"Data": [
{
"metric": "configured racks",
"value": "3"
}
]
},
"Environmental": {
"Data": [
{
"rack": "PS-PDU-01",
"sensorName": "lori-sensor",
"temperature": "90.0f",
"humidity": "78.0%",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"height": "4.1ft"
73 Services
},
{
"rack": "PS-PDU-02",
"sensorName": "lori-sensor(1)",
"temperature": "N/A",
"humidity": "N/A",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"height": "4.3ft"
},
{
"rack": "PS-PDU-03",
"sensorName": "lori-sensor(2)",
"temperature": "N/A",
"humidity": "N/A",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"height": "3.6ft"
},
{
"rack": "PS-PDU-03",
"sensorName": "lori-sensor(3)",
"temperature": "N/A",
"humidity": "N/A",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"height": "3.7ft"
},
{
"rack": "PS-PDU-03",
"sensorName": "lori-sensor(4)",
"temperature": "N/A",
"humidity": "N/A",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"height": "6.7ft"
}
],
"Count": 5
},
"Alias": null,
"Id": 13,
"Power": {
"UsableProvisioned": "72.0A",
"ConnectedProvisioned": "90.0A",
"totalAmp": "33.3A",
"UsableProvisionedkW": "8.640kW",
"BreakersProvisioned": "3",
"CircuitsProvisioned": "6",
"ConnectedProvisionedkW": "10.800kW",
"Data": [
{
"actual": "6A",
"circuit": "3",
"breaker": "PDU1-P3-B03",
"usuable": "24.0A",
"connected_device": "PS-PDU-A-04",
74 Services
"utilization": "25.0%",
"assetTag": "AT:1014001",
"remaining": "18.0A",
"voltage": "120.0V",
"connected": "30.0A",
"actualkW": "0.720kW",
"P3actualAmps": "6.0A",
"usablekW": "2.880kW",
"panel": "PDU1-P3",
"connectedkW": "3.600kW",
"P3actualkW": "2.000kW",
"pdu|rpp": "PDU-2",
"phases": "3"
},
{
"P2actualkW": "2.500kW",
"actual": "17.3A",
"circuit": "7,9,11",
"P1actualkW": "1.500kW",
"breaker": "PDU1-P1-B05",
"usuable": "24.0A",
"connected_device": "PS-PDU-B-03",
"utilization": "72.1%",
"assetTag": "AT111501",
"remaining": "6.7A",
"P2actualAmps": "6.0A",
"voltage": "120.0V",
"connected": "30.0A",
"actualkW": "2.076kW",
"P1actualAmps": "10.0A",
"P3actualAmps": "10.0A",
"usablekW": "2.880kW",
"panel": "PDU1-P1",
"connectedkW": "3.600kW",
"P3actualkW": "2.000kW",
"pdu|rpp": "PDU-2",
"phases": "1,2,3"
},
{
"P2actualkW": "2.000kW",
"actual": "10A",
"circuit": "1,3",
"P1actualkW": "1.500kW",
"breaker": "PDU1-P1-B01",
"usuable": "24.0A",
"connected_device": "PS-PDU-B-06, PS-PDU-B-05",
"utilization": "41.7%",
"assetTag": "AT0012",
"remaining": "14.0A",
"P2actualAmps": "6.0A",
"voltage": "120.0V",
"connected": "30.0A",
"actualkW": "1.200kW",
75 Services
"P1actualAmps": "10.0A",
"usablekW": "2.880kW",
"panel": "PDU1-P1",
"connectedkW": "3.600kW",
"pdu|rpp": "PDU-2",
"phases": "1,2"
}
],
"totalkW": "3.996kW"
},
"Name": "DEV"
}
}
],
"CompanyId": 12,
"Alias": "OPI Test",
"Assets": {
"Data": [
{
"productLine": "Sensor",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "3L-AP",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Sensor",
"department": "DEV",
"device": "lori-sensor",
"manufacturer": "ELSA"
},
{
"productLine": "Sensor",
"serialNumber": "SN0011",
"lifecycleStatus": "Operational",
"ipAddress": "127.0.0.1",
"model": "3L-AP",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": "AT0011",
"type": "Sensor",
"department": "DEV",
"device": "lori-sensor(1)",
"manufacturer": "ELSA"
},
{
"productLine": "Sensor",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "3L-AP",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Sensor",
76 Services
"department": "DEV",
"device": "lori-sensor(2)",
"manufacturer": "ELSA"
},
{
"productLine": "Sensor",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "3L-AP",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Sensor",
"department": "DEV",
"device": "lori-sensor(3)",
"manufacturer": "ELSA"
},
{
"productLine": "Sensor",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "3L-AP",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Sensor",
"department": "DEV",
"device": "lori-sensor(4)",
"manufacturer": "ELSA"
},
{
"productLine": "Generic - Electrical Panel",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": "10.10.10.226",
"model": "Generic 42 Circuit Panel (2 columns)",
"location": "A2, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Electrical Panel",
"department": "DEV",
"device": "PDU1-P1",
"manufacturer": "Generic"
},
{
"productLine": "Generic - Breaker",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "2-Pole Breaker",
"location": "A2, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": "AT0012",
"type": "Circuit Breaker",
"department": "DEV",
77 Services
"device": "PDU1-P1-B01",
"manufacturer": "Generic"
},
{
"productLine": "Generic - Breaker",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "3-Pole Breaker",
"location": "A2, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": "AT111501",
"type": "Circuit Breaker",
"department": "DEV",
"device": "PDU1-P1-B05",
"manufacturer": "Generic"
},
{
"productLine": "Generic - Electrical Panel",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": "10.10.10.226",
"model": "Generic 42 Circuit Panel (1 column)",
"location": "A2, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Electrical Panel",
"department": "DEV",
"device": "PDU1-P3",
"manufacturer": "Generic"
},
{
"productLine": "Generic - Breaker",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "1-Pole Breaker",
"location": "A2, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": "AT:1014001",
"type": "Circuit Breaker",
"department": "DEV",
"device": "PDU1-P3-B03",
"manufacturer": "Generic"
},
{
"productLine": "opi rack",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "OPI Rack 42U",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Rack",
"department": "DEV",
"device": "PS-PDU-01",
78 Services
"manufacturer": "Generic"
},
{
"productLine": "opi rack",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "OPI Rack 42U",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Rack",
"department": "DEV",
"device": "PS-PDU-02",
"manufacturer": "Generic"
},
{
"productLine": "opi rack",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "OPI Rack 42U",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "Rack",
"department": "DEV",
"device": "PS-PDU-03",
"manufacturer": "Generic"
},
{
"productLine": "ePDU G3 Managed",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "EMA6DB35AGD88C1",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "PDU - Rackmount",
"department": "DEV",
"device": "PS-PDU-A-01",
"manufacturer": "Eaton"
},
{
"productLine": "ePDU G3 Managed",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "EMA6DB35AGD88C1",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "PDU - Rackmount",
"department": "DEV",
"device": "PS-PDU-A-02",
"manufacturer": "Eaton"
79 Services
},
{
"productLine": "ePDU G3 Managed",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "EMA6DB35AGD88C1",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "PDU - Rackmount",
"department": "DEV",
"device": "PS-PDU-A-03",
"manufacturer": "Eaton"
},
{
"productLine": "ePDU G3 Managed",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "EMA6DB35AGD88C1",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "PDU - Rackmount",
"department": "DEV",
"device": "PS-PDU-B-01",
"manufacturer": "Eaton"
},
{
"productLine": "ePDU G3 Managed",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "EMA6DB35AGD88C1",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "PDU - Rackmount",
"department": "DEV",
"device": "PS-PDU-B-02",
"manufacturer": "Eaton"
},
{
"productLine": "ePDU G3 Managed",
"serialNumber": null,
"lifecycleStatus": "Operational",
"ipAddress": null,
"model": "EMA6DB35AGD88C1",
"location": "A1, F1, mm-Building, haimen, Jiangsu, China",
"assetTag": null,
"type": "PDU - Rackmount",
"department": "DEV",
"device": "PS-PDU-B-03",
"manufacturer": "Eaton"
}
80 Services
],
"Count": 19
}
},
"message": "Success"
}
81 Services
4. Troubleshooting and Common Mistakes
4.1. HTTP 400 Bad Request
This error indicates malformed syntax in the POST entity body. This is most caused by missing or
misplaced curly brace, colon or double quote character.
To resolve this problem, only use URLs defined in this guide and double check that there are no typos or
other mistakes in the request.
To resolve this problem, the Accept HTTP header must be set according to the documentation in this
guide for each request.