Resource Center/Hardware/Host Operations/SR-IOV Operations
PUTSR-IOV OperationsSince 5.1.0SynchronousAuth Required
ChangeVfNicHaState
ChangeVfNicHaState
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
vfNicUuidStringRequiredVfNic UUID
Body Fields
changevfnichastateObjectRequiredchangevfnichastate request body object.
haStateStringRequiredHa state.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/vm-instances/nics/{vfNicUuid}/actions
/zstack/v1/vm-instances/nics/{vfNicUuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/vm-instances/nics/{vfNicUuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changevfnichastate":{"haState":"<haState>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "pciDeviceUuid": "4935759d5e543ff7bb9901262d67e805", "haState": "Enabled", "uuid": "5a39466d15e9303d8cd091be8f8b98a0", "vmInstanceUuid": "0c9912e742793004bd585150a4e243d0", "usedIpUuid": "6c1404d271ce3da4a5a845563b65ab55", "l3NetworkUuid": "0d42b1c567da3721b04d1bc316b2e0cb", "ip": "192.168.1.2", "mac": "00:0c:29:bd:99:fc", "hypervisorType": "KVM", "netmask": "255.255.255.0", "gateway": "192.168.1.1", "deviceId": 0, "type": "VF", "state": "enable" } }Change History
This API has no change history records yet.
