workspace__ApplyDesktopsInternet
Configures internet access for Workspace desktops by purchasing EIP bandwidth and applying it to specified desktop IDs, or standalone EIPs when no desktops are selected.
Instructions
[WORKSPACE] 开通桌面上网功能。
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": {
"bandwidth_size": "<bandwidth_size>",
"eip_charge_mode": "<eip_charge_mode>",
"eip_type": "<eip_type>",
"project_id": "<project_id>"
},
"name": "workspace__ApplyDesktopsInternet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | 需要购买EIP的数量,当desktop_ids为空时需要填,兼容单独购买EIP场景。 | |
| eip_type | Yes | 支持的类型请参考EIP服务支持的类型。可通过调用如下链接的接口查询,https://support.huaweicloud.com/api-eip/ShowPublicIpType.html。 | |
| project_id | Yes | 项目ID。 | |
| desktop_ids | No | 需要开通上网功能的桌面id列表。 | |
| bandwidth_size | Yes | 带宽大小,单位Mbit/s。默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 | |
| eip_charge_mode | Yes | eip带宽计费模式 | |
| enterprise_project_id | No | 企业项目ID,默认"0。" | 0 |