
This change adds basic Redfish Volumes resource support to the dynamic Redfish emulator. The Volumes are emulated as persistant mocks backed by the libvirt volumes from the libvirt virtualization backend. Change-Id: If99d438c07f8a37280b1c480dcdc40510283c6d9
16 lines
756 B
JSON
16 lines
756 B
JSON
{
|
|
"@odata.type": "#Volume.v1_0_3.Volume",
|
|
"Id": {{ volume['Id']|string|tojson }},
|
|
"Name": {{ volume['Name']|string|tojson }},
|
|
"Status": {
|
|
"@odata.type": "#Resource.Status",
|
|
"State": "Enabled",
|
|
"Health": "OK"
|
|
},
|
|
"Encrypted": false,
|
|
"VolumeType": {{ volume['VolumeType']|string|tojson }},
|
|
"CapacityBytes": {{ volume['CapacityBytes'] }},
|
|
"@odata.context": "/redfish/v1/$metadata#Volume.Volume",
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/Storage/%s/Volumes/%s"|format(identity, storage_id, volume['Id'])|tojson }},
|
|
"@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."
|
|
} |