Resource Center/Hardware/Host Operations
PUTHost OperationsSince 0.6SynchronousAuth Required
UpdateKVMHost
UpdateKVMHost
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
updatekvmhostObjectRequiredupdatekvmhost request body object.
usernameStringOptional. The username.
passwordStringOptional. The password.
sshPortIntegerOptional. The SSH port.
nameStringOptional. The resource name.
descriptionStringOptional. The detailed description of the resource.
managementIpStringOptional. The IP address of the management node.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/hosts/kvm/{uuid}/actions
/zstack/v1/hosts/kvm/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/hosts/kvm/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatekvmhost":{"username":"<username>","password":"<password>","sshPort":1,"name":"<name>","description":"<description>","managementIp":"<managementIp>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "zoneUuid": "d31e6ae8ef1e4d63be02c3be94093e90", "name": "example", "uuid": "3bfeb74997084a7fa53b7afaf709b6d1", "clusterUuid": "cec3beee49bb4697905c556e462b3dbe", "description": "example", "managementIp": "192.168.0.1", "hypervisorType": "KVM", "state": "Enabled", "status": "Connected", "totalCpuCapacity": 4.0, "availableCpuCapacity": 2.0, "totalMemoryCapacity": 4.0, "availableMemoryCapacity": 4.0 } }Change History
This API has no change history records yet.
