alibaba-cloud-ops-mcp-server 0.9.9__py3-none-any.whl → 0.9.10__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 +18 -8
- {alibaba_cloud_ops_mcp_server-0.9.9.dist-info → alibaba_cloud_ops_mcp_server-0.9.10.dist-info}/METADATA +1 -1
- {alibaba_cloud_ops_mcp_server-0.9.9.dist-info → alibaba_cloud_ops_mcp_server-0.9.10.dist-info}/RECORD +6 -6
- {alibaba_cloud_ops_mcp_server-0.9.9.dist-info → alibaba_cloud_ops_mcp_server-0.9.10.dist-info}/WHEEL +1 -1
- {alibaba_cloud_ops_mcp_server-0.9.9.dist-info → alibaba_cloud_ops_mcp_server-0.9.10.dist-info}/entry_points.txt +0 -0
- {alibaba_cloud_ops_mcp_server-0.9.9.dist-info → alibaba_cloud_ops_mcp_server-0.9.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -150,7 +150,12 @@ def OOS_RunInstances(
|
|
|
150
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
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
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='')
|
|
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=''),
|
|
154
|
+
Tags: list = Field(description='The tag of an ECS instance, for example: [{"Key":"oos","Value":"test"}]', default=[]),
|
|
155
|
+
ResourceGroupId: str = Field(description='Resource group ID', default=''),
|
|
156
|
+
Description: str = Field(description='The description of the ECS instances', default=''),
|
|
157
|
+
HostName: str = Field(description='The host name of the ECS instance', default=''),
|
|
158
|
+
ZoneId: str = Field(description='The ID of the zone where the ECS instances are deployed', default=''),
|
|
154
159
|
):
|
|
155
160
|
"""批量创建ECS实例,适用于需要同时创建多台ECS实例的场景,例如应用部署和高可用性场景。"""
|
|
156
161
|
|
|
@@ -164,8 +169,7 @@ def OOS_RunInstances(
|
|
|
164
169
|
'amount': Amount,
|
|
165
170
|
'instanceName': InstanceName
|
|
166
171
|
}
|
|
167
|
-
|
|
168
|
-
# 添加系统盘相关参数
|
|
172
|
+
|
|
169
173
|
if SystemDiskCategory:
|
|
170
174
|
parameters['systemDiskCategory'] = SystemDiskCategory
|
|
171
175
|
if SystemDiskSize:
|
|
@@ -180,17 +184,23 @@ def OOS_RunInstances(
|
|
|
180
184
|
parameters['privateIpAddress'] = PrivateIpAddress
|
|
181
185
|
if SystemDiskAutoSnapshotPolicyId:
|
|
182
186
|
parameters['systemDiskAutoSnapshotPolicyId'] = SystemDiskAutoSnapshotPolicyId
|
|
183
|
-
|
|
184
|
-
|
|
187
|
+
if Tags:
|
|
188
|
+
parameters['tags'] = Tags
|
|
189
|
+
if ResourceGroupId:
|
|
190
|
+
parameters['resourceGroupId'] = ResourceGroupId
|
|
191
|
+
if Description:
|
|
192
|
+
parameters['description'] = Description
|
|
193
|
+
if HostName:
|
|
194
|
+
parameters['hostName'] = HostName
|
|
195
|
+
if ZoneId:
|
|
196
|
+
parameters['zoneId'] = ZoneId
|
|
197
|
+
|
|
185
198
|
if DataDiskParameters:
|
|
186
199
|
try:
|
|
187
|
-
# 解析 JSON 字符串为列表
|
|
188
200
|
data_disks = json.loads(DataDiskParameters) if isinstance(DataDiskParameters, str) else DataDiskParameters
|
|
189
201
|
if isinstance(data_disks, list) and len(data_disks) > 0:
|
|
190
|
-
# 将数据盘列表转换为 OOS 模板需要的格式
|
|
191
202
|
parameters['dataDiskParameters'] = data_disks
|
|
192
203
|
except (json.JSONDecodeError, TypeError) as e:
|
|
193
|
-
# 如果解析失败,忽略数据盘参数
|
|
194
204
|
pass
|
|
195
205
|
|
|
196
206
|
return _start_execution_sync(region_id=RegionId, template_name='ACS-ECS-RunInstances', parameters=parameters)
|
|
@@ -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=cPEl05Y0rlNvCeO2SF46Y7Ewky4LXZ8__sD0_JCi8ek,13569
|
|
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.10.dist-info/METADATA,sha256=M4eK4Ldbx50xBJ2Qjsk47IiLpgcG0nXDUo4qWH4zaYk,6002
|
|
19
|
+
alibaba_cloud_ops_mcp_server-0.9.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
20
|
+
alibaba_cloud_ops_mcp_server-0.9.10.dist-info/entry_points.txt,sha256=ESGAWXKEp184forhs7VzTD4P1AUdZz6vCW6hRUKITGw,83
|
|
21
|
+
alibaba_cloud_ops_mcp_server-0.9.10.dist-info/licenses/LICENSE,sha256=gQgVkp2ttRCjodiPpXZZR-d7JnrYIYNiHk1YDUYgpa4,11331
|
|
22
|
+
alibaba_cloud_ops_mcp_server-0.9.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|