Resource Center/Hardware/Host Operations/PCI Device Operations
PUTPCI Device OperationsSince 3.5.0SynchronousAuth Required
UpdatePciDeviceSpec
UpdatePciDeviceSpec
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
updatepcidevicespecObjectRequiredupdatepcidevicespec request body object.
nameStringOptional. The resource name.
descriptionStringOptional. The detailed description of the resource.
romContentStringOptional. The ROM content encoded in Base64 format.
romVersionStringOptional. The ROM version.
abandonSpecRombooleanOptional. Whether to delete the existing ROM.
stateStringOptional. The state of the PCI device specification.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/pci-device-specs/{uuid}/actions
/zstack/v1/pci-device-specs/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/pci-device-specs/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatepcidevicespec":{"name":"<name>","description":"<description>","romContent":"<romContent>","romVersion":"<romVersion>","abandonSpecRom":true,"state":"<state>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "ff483f5d5bf14587ac2d46a565b0f28f", "name": "MSI_GTX1060", "description": "NVIDIA Corporation, GP106 [GeForce GTX 1060 6GB], a1, VGA compatible controller", "vendorId": "10de", "deviceId": "1c03", "subvendorId": "1462", "subdeviceId": "3283", "type": "GPU_Video_Controller", "state": "Enabled", "romVersion": "86.06.0E.00.28", "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.
