sushy-tools/sushy_tools/emulator/templates/chassis_collection.json
Ilya Etingof 248e3d1353 Add Chassis resource support
This change adds basic Redfish Chassis resource support based
on the newly introduces "chassis" driver infrastructure. As of
this patch, the only backend for the Redfish chassis implemented
is static config (Flask) file.

Story: 2005149
Task: 29856
Change-Id: I1410b833170ced6f53694d431f721ecba19eb596
2019-07-01 12:25:05 +02:00

15 lines
657 B
JSON

{
"@odata.type": "#ChassisCollection.ChassisCollection",
"Name": "Chassis Collection",
"Members@odata.count": {{ chassis|length }},
"Members": [
{% for ch in chassis %}
{
"@odata.id": {{ "/redfish/v1/Chassis/%s"|format(ch)|tojson }}
}{% if not loop.last %},{% endif %}
{% endfor %}
],
"@odata.context": "/redfish/v1/$metadata#ChassisCollection.ChassisCollection",
"@odata.id": "/redfish/v1/Chassis",
"@Redfish.Copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}