workspace__UpdateDesktopUsername
Updates the username associated with a Huawei Cloud Workspace desktop in an AD scenario, with an option to reboot the VM after the change.
Instructions
[WORKSPACE] AD场景支持桌面更换关联用户名。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"new_username": "<new_username>",
"old_username": "<old_username>",
"project_id": "<project_id>"
},
"name": "workspace__UpdateDesktopUsername"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_reboot | No | 桌面关联新用户名后是否重启虚拟机,默认不重启。 | |
| project_id | Yes | 项目ID。 | |
| new_username | Yes | 桌面关联新用户名,只传用户名,不带域信息。 | |
| old_username | Yes | 桌面关联原用户名,只传用户名,不带域信息。 |