as__CreateScalingConfig
Creates an Auto Scaling configuration that defines the instance template (flavor, image, disks, security groups, key pair) used to launch instances in scaling groups, reusable across multiple groups.
Instructions
[AS] 创建弹性伸缩配置。伸缩配置是伸缩组内实例(弹性云服务器云主机)的模板,定义了伸缩组内待添加的实例的规格数据。伸缩配置与伸缩组是解耦的,同一伸缩配置可以被多个伸缩组使用。默认最多可以创建100个伸缩配置。
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": {
"project_id": "<project_id>"
},
"name": "as__CreateScalingConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 项目ID | |
| instance_config | No | 实例配置信息 | |
| scaling_configuration_name | No | 伸缩配置名称(1-64个字符),只能包含中文、字母、数字、下划线或中划线。 | |
| source_scaling_configuration_id | No | 源伸缩配置ID,通过该ID查询已有伸缩配置信息与instance_config中参数进行结合,创建新的伸缩配置。 |