Resource Center/Hardware/Host Operations/PCI Device Operations
PUTPCI Device OperationsSince 3.5.0SynchronousAuth Required
UpdateMdevDevice
UpdateMdevDevice
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource UUID.
Body Fields
updatemdevdeviceObjectRequiredupdatemdevdevice request body object.
nameStringOptional. The resource name.
descriptionStringOptional. The detailed description of the resource.
stateStringOptional. The MDEV device state.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/mdev-devices/{uuid}/actions
/zstack/v1/mdev-devices/{uuid}/actions
Request Example
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>"]}'
Response Example
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" } }Change History
This API has no change history records yet.
