跳到主要内容

GET – 虚拟介质集合

使用 GET 方法检索 Redfish 服务的虚拟介质集合中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Managers/1/VirtualMedia

请求正文

响应正文

响应是包含以下参数的 JSON 对象:

字段类型描述

Name

字符串

“VirtualMediaCollection”

Members

数组

项:虚拟介质元素的引用链接

状态代码

HTTP 状态代码错误消息 ID
500InternalError

响应示例

请求成功时,将返回类似于以下内容的消息正文:

{
"@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"
}