Get All Campuses API¶
Returns the list of campuses for an organization.
Request¶
GET https://{em_ip_address_or_hostname}/ems/api/org/campus/list/1
Parameters¶
Request¶
Name | Description |
---|---|
em_ip_address_or_hostname | The Enlighted Manage (EM) IP address or hostname |
Response¶
Name | Description |
---|---|
id | Campus identifier from Manage |
name | Campus name as described in Manage |
location | Company's location |
contractBaseline | Baseline energy savings for the campus |
calcMethod | Energy savings calculated based on the sensor’s baseline energy or contract baseline energy. - SENSOR_BASED – Savings based on the sensor’s baseline energy - CONTRACTUAL – Savings based on contract baseline energy. The contract baseline energy is calculated using the annual baseline energy savings stipulated in the customer’s signed agreement for the campus at the time of installation. |
Sample Request¶
In the example, the details of campuses are returned when you send a GET request to Manage.
GET https://192.80.3.2/ems/api/org/campus/list/1
Sample Response¶
{
"campus": [
{
"id": "1",
"name": "QAIoT",
"location": "Chennai",
"calcMethod": "SENSOR_BASED",
"contractBaseline": "0.00"
},
{
"id": "3",
"name": "IoE",
"location": "Chennai",
"calcMethod": "SENSOR_BASED",
"contractBaseline": "0.00"
},
{
"id": "5",
"name": "NewCampus",
"location": "Chennai",
"calcMethod": "SENSOR_BASED",
"contractBaseline": "0.00"
}
]
}