alibaba-cloud-ops-mcp-server 0.9.7b1__py3-none-any.whl → 0.9.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alibaba_cloud_ops_mcp_server/tools/oos_tools.py +41 -1
- {alibaba_cloud_ops_mcp_server-0.9.7b1.dist-info → alibaba_cloud_ops_mcp_server-0.9.9.dist-info}/METADATA +1 -1
- {alibaba_cloud_ops_mcp_server-0.9.7b1.dist-info → alibaba_cloud_ops_mcp_server-0.9.9.dist-info}/RECORD +6 -6
- {alibaba_cloud_ops_mcp_server-0.9.7b1.dist-info → alibaba_cloud_ops_mcp_server-0.9.9.dist-info}/WHEEL +0 -0
- {alibaba_cloud_ops_mcp_server-0.9.7b1.dist-info → alibaba_cloud_ops_mcp_server-0.9.9.dist-info}/entry_points.txt +0 -0
- {alibaba_cloud_ops_mcp_server-0.9.7b1.dist-info → alibaba_cloud_ops_mcp_server-0.9.9.dist-info}/licenses/LICENSE +0 -0
|
@@ -140,19 +140,59 @@ def OOS_RunInstances(
|
|
|
140
140
|
SecurityGroupId: str = Field(description='SecurityGroup ID'),
|
|
141
141
|
VSwitchId: str = Field(description='VSwitch ID'),
|
|
142
142
|
RegionId: str = Field(description='AlibabaCloud region ID', default='cn-hangzhou'),
|
|
143
|
+
InternetMaxBandwidthOut: int = Field(description='The maximum outbound bandwidth of the instance. Unit: Mbit/s. Valid values: 0 to 100. If you want to open the public network for the ECS instance, you need to set a value > 0', default=0),
|
|
143
144
|
Amount: int = Field(description='Number of ECS instances', default=1),
|
|
144
|
-
InstanceName: str = Field(description='Instance Name', default='')
|
|
145
|
+
InstanceName: str = Field(description='Instance Name', default=''),
|
|
146
|
+
SystemDiskCategory: str = Field(description='The category of the system disk. Valid values: cloud_efficiency, cloud_ssd, cloud_essd, cloud_auto, cloud, cloud_essd_entry', default='cloud_essd'),
|
|
147
|
+
SystemDiskSize: str = Field(description='The size of the system disk. Unit: GiB. Valid values: 20 to 500. Default value: 40 or the image size, whichever is greater', default=''),
|
|
148
|
+
SystemDiskName: str = Field(description='The name of the system disk', default=''),
|
|
149
|
+
SystemDiskDescription: str = Field(description='The description of the system disk', default=''),
|
|
150
|
+
SystemDiskPerformanceLevel: str = Field(description='The performance level of the ESSD used as the system disk. Valid values: PL0, PL1, PL2, PL3', default='PL1'),
|
|
151
|
+
PrivateIpAddress: str = Field(description='The private IP address of the instance. For VPC type ECS instances, the private IP address must be selected from the available IP range of the VSwitch', default=''),
|
|
152
|
+
SystemDiskAutoSnapshotPolicyId: str = Field(description='The ID of the automatic snapshot policy to apply to the system disk', default=''),
|
|
153
|
+
DataDiskParameters: str = Field(description='Data disk configuration in JSON format. Example: [{"Size":"100","DiskName":"data-disk-1","Description":"","Category":"cloud_essd","PerformanceLevel":"PL1","AutoSnapshotPolicyId":""}]', default='')
|
|
145
154
|
):
|
|
146
155
|
"""批量创建ECS实例,适用于需要同时创建多台ECS实例的场景,例如应用部署和高可用性场景。"""
|
|
147
156
|
|
|
148
157
|
parameters = {
|
|
158
|
+
'regionId': RegionId,
|
|
149
159
|
'imageId': ImageId,
|
|
150
160
|
'instanceType': InstanceType,
|
|
151
161
|
'securityGroupId': SecurityGroupId,
|
|
152
162
|
'vSwitchId': VSwitchId,
|
|
163
|
+
'internetMaxBandwidthOut': InternetMaxBandwidthOut,
|
|
153
164
|
'amount': Amount,
|
|
154
165
|
'instanceName': InstanceName
|
|
155
166
|
}
|
|
167
|
+
|
|
168
|
+
# 添加系统盘相关参数
|
|
169
|
+
if SystemDiskCategory:
|
|
170
|
+
parameters['systemDiskCategory'] = SystemDiskCategory
|
|
171
|
+
if SystemDiskSize:
|
|
172
|
+
parameters['systemDiskSize'] = SystemDiskSize
|
|
173
|
+
if SystemDiskName:
|
|
174
|
+
parameters['systemDiskName'] = SystemDiskName
|
|
175
|
+
if SystemDiskDescription:
|
|
176
|
+
parameters['systemDiskDescription'] = SystemDiskDescription
|
|
177
|
+
if SystemDiskPerformanceLevel:
|
|
178
|
+
parameters['systemDiskPerformanceLevel'] = SystemDiskPerformanceLevel
|
|
179
|
+
if PrivateIpAddress:
|
|
180
|
+
parameters['privateIpAddress'] = PrivateIpAddress
|
|
181
|
+
if SystemDiskAutoSnapshotPolicyId:
|
|
182
|
+
parameters['systemDiskAutoSnapshotPolicyId'] = SystemDiskAutoSnapshotPolicyId
|
|
183
|
+
|
|
184
|
+
# 处理数据盘参数
|
|
185
|
+
if DataDiskParameters:
|
|
186
|
+
try:
|
|
187
|
+
# 解析 JSON 字符串为列表
|
|
188
|
+
data_disks = json.loads(DataDiskParameters) if isinstance(DataDiskParameters, str) else DataDiskParameters
|
|
189
|
+
if isinstance(data_disks, list) and len(data_disks) > 0:
|
|
190
|
+
# 将数据盘列表转换为 OOS 模板需要的格式
|
|
191
|
+
parameters['dataDiskParameters'] = data_disks
|
|
192
|
+
except (json.JSONDecodeError, TypeError) as e:
|
|
193
|
+
# 如果解析失败,忽略数据盘参数
|
|
194
|
+
pass
|
|
195
|
+
|
|
156
196
|
return _start_execution_sync(region_id=RegionId, template_name='ACS-ECS-RunInstances', parameters=parameters)
|
|
157
197
|
|
|
158
198
|
|
|
@@ -13,10 +13,10 @@ alibaba_cloud_ops_mcp_server/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
|
13
13
|
alibaba_cloud_ops_mcp_server/tools/api_tools.py,sha256=dqtbjonhuwpH6_gS_Yc3kYXaOzC0T-iJ2n9stzMbP1g,9568
|
|
14
14
|
alibaba_cloud_ops_mcp_server/tools/cms_tools.py,sha256=BmPTiP8wu9DsEHBQsvR7JH9nFkcKMTBuNuafFqSfVxU,4308
|
|
15
15
|
alibaba_cloud_ops_mcp_server/tools/common_api_tools.py,sha256=ccQAWqS1I9F-fdOdjLcXN-dIhNqSbZV8T5ODuGXlfXM,2711
|
|
16
|
-
alibaba_cloud_ops_mcp_server/tools/oos_tools.py,sha256=
|
|
16
|
+
alibaba_cloud_ops_mcp_server/tools/oos_tools.py,sha256=IAr9x1lHuDmW-BNX2-f2wFto0LGc27pAdm_BZ3WyrE4,13013
|
|
17
17
|
alibaba_cloud_ops_mcp_server/tools/oss_tools.py,sha256=MUAiYL4VlsYQPoR_JtHOLcF1i4VYK9KE6ff9BTqJr9E,5014
|
|
18
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
19
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
20
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
21
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
22
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
18
|
+
alibaba_cloud_ops_mcp_server-0.9.9.dist-info/METADATA,sha256=G8ibBtTXZ7C4qY-h488ClZvZJpajhwJpbDBoGZ_MTqw,6001
|
|
19
|
+
alibaba_cloud_ops_mcp_server-0.9.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
20
|
+
alibaba_cloud_ops_mcp_server-0.9.9.dist-info/entry_points.txt,sha256=ESGAWXKEp184forhs7VzTD4P1AUdZz6vCW6hRUKITGw,83
|
|
21
|
+
alibaba_cloud_ops_mcp_server-0.9.9.dist-info/licenses/LICENSE,sha256=gQgVkp2ttRCjodiPpXZZR-d7JnrYIYNiHk1YDUYgpa4,11331
|
|
22
|
+
alibaba_cloud_ops_mcp_server-0.9.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|