updateComputeFleet - Amazon ParallelCluster
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

updateComputeFleet

更新集群计算实例集的状态。

请求语法

PATCH /v3/clusters/{clusterName}/computefleet { "status": "string", "region": "string" }

请求正文

clusterName

集群的名称。

类型:字符串

必需:是

status

计算实例集状态。

类型:字符串

有效值:START_REQUESTED | STOP_REQUESTED | ENABLED | DISABLED

必需:是

region

集群所在的 Amazon Web Services 区域。

类型:字符串

必需:否

响应语法

{ "status": "START_REQUESTED", "lastStatusUpdatedTime": "2019-08-24T14:15:22Z" }

响应正文

status

计算实例集状态。

类型:字符串

有效值:START_REQUESTED | STARTING | RUNNING | PROTECTED | STOP_REQUESTED | STOPPING | STOPPED | UNKNOWN | ENABLED | DISABLED

lastStatusUpdatedTime

代表上次状态更新时间的时间戳。

类型:日期时间

示例

Python

请求

$ update_compute_fleet(cluster_name_3x, "START_REQUESTED")

200 响应

{ 'last_status_updated_time': datetime.datetime(2022, 3, 28, 22, 27, 14, tzinfo=tzlocal()), 'status': 'START_REQUESTED' }