workspaceapp__CreateServerGroup
Creates a server group with specified image, VPC, subnet, disk, and product settings to organize cloud servers for application delivery.
Instructions
[WORKSPACEAPP] 创建服务器组。
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": {
"image_id": "<image_id>",
"image_type": "<image_type>",
"name": "<name>",
"os_type": "<os_type>",
"product_id": "<product_id>",
"project_id": "<project_id>",
"subnet_id": "<subnet_id>",
"system_disk_size": "<system_disk_size>",
"system_disk_type": "<system_disk_type>",
"vpc_id": "<vpc_id>"
},
"name": "workspaceapp__CreateServerGroup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 服务器组名称,名称需满足如下规则: | |
| tags | No | 标签信息,最多包含20个key,不允许重复 | |
| is_vdi | No | 是否为vdi单会话模式。 | |
| vpc_id | Yes | 虚拟私有云ID。 | |
| os_type | Yes | 系统类型,当前仅支持Windows。 | |
| ou_name | No | 默认组织名称。 | |
| app_type | No | 服务器组应用类型: | |
| image_id | Yes | 服务器组关联的镜像ID,用于创建对应组下的云服务器。 | |
| flavor_id | No | 规格ID。 | |
| subnet_id | Yes | 网卡对应的子网ID。 | |
| cluster_id | No | 云服务器系统盘对应的存储池的ID。 | |
| image_type | Yes | 镜像类型: | |
| ip_virtual | No | 虚拟IP功能选项。 | |
| product_id | Yes | 产品ID。 | |
| project_id | Yes | 项目唯一标识。 | |
| description | No | 服务器组描述。 | |
| route_policy | No | 路由策略 | |
| image_product_id | No | 服务器组的镜像产品ID,当镜像为云市场镜像时,该字段必填。 | |
| system_disk_size | Yes | 磁盘容量,单位GB。 | |
| system_disk_type | Yes | 磁盘类型,获取可用磁盘类型详见接口磁盘管理ListVolumeType。 | |
| availability_zone | No | 可用分区。 | |
| extra_session_size | No | 付费会话数,单位/个。 | |
| extra_session_type | No | 付费会话类型 | |
| server_group_status | No | 是否启用服务器组。 | |
| enterprise_project_id | No | 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) | |
| primary_server_group_id | No | 主服务器组id,绑定主服务器组,则创建的是备服务器。 |