GET – Collection of virtual media
Use the GET method to retrieve properties in virtual media collection for Redfish service.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/Managers/1/VirtualMedia
Request body
None
Response body
The response is a JSON object that contains the following parameters:
Field | Type | Description | |||
---|---|---|---|---|---|
Name | String | “VirtualMediaCollection” | |||
Members | Array | Items: A reference link to an element of virtual media |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Response example
When the request is successful, a message body similar to the following is returned:
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia",
"Name": "VirtualMediaCollection",
"@odata.context": "/redfish/v1/$metadata#VirtualMediaCollection.VirtualMediaCollection",
"Members": [
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/RDOC1"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/RDOC2"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/EXT1"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/EXT2"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/EXT3"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/EXT4"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/Remote1"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/Remote2"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/Remote3"
},
{
"@odata.id": "/redfish/v1/Managers/1/VirtualMedia/Remote4"
}
],
"@odata.type": "#VirtualMediaCollection.VirtualMediaCollection",
"@odata.etag": "\"c54172a08a2b5db8321ef2d79e8850b2\"",
"Members@odata.count": 10,
"Description": "A collection of VirtualMedia resource instances"
}
Give documentation feedback