Resource Center/Hardware/Host Operations/SR-IOV Operations
PUTSR-IOV OperationsSince 3.9.0SynchronousAuth Required
ChangeVmNicType
ChangeVmNicType
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
vmNicUuidStringRequiredThe VM NIC UUID.
Body Fields
changevmnictypeObjectRequiredchangevmnictype request body object.
vmNicTypeStringRequiredThe VM NIC type.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/vm-instances/nics/{vmNicUuid}/actions
/zstack/v1/vm-instances/nics/{vmNicUuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/vm-instances/nics/{vmNicUuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changevmnictype":{"vmNicType":"<vmNicType>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "bd44ea50e2573d5d9249c938dba0dad6", "vmInstanceUuid": "1311eba1f7e53c3aa816a140fd783068", "usedIpUuid": "464575b453d53e60941c7eeee08f3149", "l3NetworkUuid": "b62214c53fde3f6eb825bf2ce59e3d2e", "ip": "192.168.1.10", "mac": "00:0c:29:bd:99:fc", "hypervisorType": "KVM", "netmask": "255.255.255.0", "gateway": "192.168.1.1", "deviceId": 0.0, "type": "VF" } }Change History
This API has no change history records yet.
