VirtualMediaCollection
更新时间: 2026/09/24
在AtomGit上查看源码ResourceDefinition
uris
/redfish/v1/Systems/system_id/VirtualMedia
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 虚拟媒体集合资源模型的OData描述信息 |
| @odata.id | string | true | - | 虚拟媒体集合资源的访问路径 |
| @odata.type | string | true | - | 虚拟媒体集合资源的类型 |
| Name | string | true | - | 虚拟媒体集合资源的名称 |
| Description | string | true | - | 虚拟媒体资源的描述信息 |
| Members@odata { | object | true | - | - |
| Members@odata.count | number | true | - | 当前可以连接的虚拟媒体资源数量 |
| } | ||||
| Members [ { | array | true | - | - |
| Members.虚拟媒体资源列表 | - | true | - | 虚拟媒体资源列表 |
| Members[].@odata.id | string | true | - | - |
| } ] |
supported_methods
- GET
HTTP methods
GET
命令功能
查询虚拟媒体集合资源。
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/VirtualMedia
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| system_id | 系统资源的ID | ● 针对机架服务器,取值为1 ● 针对高密服务器,取值为BladeN(N表示节点槽位号),例如“Blade1” ● 针对刀片服务器,取值可以为BladeN(N表示计算节点槽位号)或SwiN(N表示交换模块槽位号),例如“Swi1” |
| auth_value | 执行该GET请求时,必须在“Heaers”中携带“X-Auth-Token”值用于鉴权 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
GA140C机型不支持
使用实例
请求样例:
http
GET https://device_ip/redfish/v1/Systems/1/VirtualMedia请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#VirtualMediaCollection.VirtualMediaCollection",
"@odata.id": "/redfish/v1/Systems/1/VirtualMedia",
"@odata.type": "#VirtualMediaCollection.VirtualMediaCollection",
"Name": "Virtual Media Services",
"Description": "Virtual Media Services Settings",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Systems/1/VirtualMedia/CD"
}
]
}响应码:200