资源中心/硬件设施/物理机相关接口/PCI设备相关接口
PUTPCI Device Operations起始版本 3.5.0同步需要认证
更新PCI设备切分出的MDEV设备
更新PCI设备切分出的MDEV设备
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
请求参数
路径参数
uuidString必填资源的UUID,唯一标示该资源
请求体字段
updatemdevdeviceObject必填updatemdevdevice 请求体结构
nameString资源名称
descriptionString资源的详细描述
stateString设备状态
systemTagsList系统标签
userTagsList用户标签
响应状态
请求地址
PUT/zstack/v1/mdev-devices/{uuid}/actions
/zstack/v1/mdev-devices/{uuid}/actions
请求示例
curl -X PUT 'http://{host}/zstack/v1/mdev-devices/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatemdevdevice":{"name":"<name>","description":"<description>","state":"<state>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
响应示例
200{ "inventory": { "uuid": "d026caddef774497aaf494d032fc8d61", "name": "GRID M60-2A", "parentUuid": "822875fb541440fb87ed31e3688c286e", "hostUuid": "80ab6fb85aa34745944d3772ab6a3e27", "mdevSpecUuid": "83a58b54e1fb449494876298b1a94148", "type": "GPU_Video_Controller", "state": "Enabled", "status": "Active", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }变更历史
此 API 暂无变更历史记录。
