選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

getClusterStackEvents

焦點模式
getClusterStackEvents - AWS ParallelCluster

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

擷取與叢集堆疊相關聯的事件。

注意

從 3.6.0 版開始, AWS ParallelCluster 會使用巢狀堆疊來建立與佇列和運算資源相關聯的資源。GetClusterStackEvents API 和 pcluster get-cluster-stack-events命令只會傳回叢集主要堆疊事件。您可以在 CloudFormation 主控台中檢視叢集堆疊事件,包括與佇列和運算資源相關的事件。

請求語法

GET /v3/clusters/{clusterName}/stackevents { "nextToken": "string", "region": "string" }

請求內文

clusterName

叢集的名稱。

類型:字串

必要:是

nextToken

用於分頁請求的字符。

類型:字串

必要:否

region

AWS 區域 叢集所在的 。

類型:字串

必要:否

回應語法

{ "nextToken": "string", "events": [ { "stackId": "string", "eventId": "string", "stackName": "string", "logicalResourceId": "string", "physicalResourceId": "string", "resourceType": "string", "timestamp": "2019-08-24T14:15:22Z", "resourceStatus": "CREATE_IN_PROGRESS", "resourceStatusReason": "string", "resourceProperties": "string", "clientRequestToken": "string" } ] }

回應內文

事件

篩選的事件清單。

clientRequestToken

權杖會傳遞至產生此事件的動作。

類型:字串

eventId

此事件的唯一 ID。

類型:字串

logicalResourceId

範本中指定資源的邏輯名稱。

類型:字串

physicalResourceId

與資源實體執行個體相關聯的名稱或唯一識別符。

類型:字串

resourceProperties

用來建立資源的屬性 BLOB。

類型:字串

resourceStatus

資源狀態。

類型:字串

有效值:CREATE_IN_PROGRESS | CREATE_FAILED | CREATE_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE | DELETE_SKIPPED | UPDATE_IN_PROGRESS | UPDATE_FAILED | UPDATE_COMPLETE | IMPORT_FAILED | IMPORT_COMPLETE | IMPORT_IN_PROGRESS | IMPORT_ROLLBACK_IN_PROGRESS | IMPORT_ROLLBACK_FAILED | IMPORT_ROLLBACK_COMPLETE

resourceStatusReason

與資源相關聯的成功或失敗訊息。

類型:字串

resourceType

資源的類型。

類型:字串

stackId

堆疊執行個體的唯一 ID 名稱。

類型:字串

stackName

與堆疊相關聯的名稱。

類型:字串

timestamp

狀態更新的時間。

類型:日期時間

nextToken

用於分頁請求的字符。

類型:字串

範例

Python

請求

$ get_cluster_stack_events(cluster_name_3x)

200 個回應

{ "events": [ { "event_id": "590b3820-b081-11ec-985e-0a7af5751497", "logical_resource_id": "cluster_name_3x", "physical_resource_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/11a59710-b080-11ec-b8bd-129def1380e9", "resource_status": "CREATE_COMPLETE", "resource_type": "AWS::CloudFormation::Stack", "stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/11a59710-b080-11ec-b8bd-129def1380e9", "stack_name": "cluster_name_3x", "timestamp": datetime.datetime(2022, 3, 30, 23, 30, 13, 268000, tzinfo=tzlocal()) }, ... ] }

請求

$ get_cluster_stack_events(cluster_name_3x)

200 個回應

{ "events": [ { "event_id": "590b3820-b081-11ec-985e-0a7af5751497", "logical_resource_id": "cluster_name_3x", "physical_resource_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/11a59710-b080-11ec-b8bd-129def1380e9", "resource_status": "CREATE_COMPLETE", "resource_type": "AWS::CloudFormation::Stack", "stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/11a59710-b080-11ec-b8bd-129def1380e9", "stack_name": "cluster_name_3x", "timestamp": datetime.datetime(2022, 3, 30, 23, 30, 13, 268000, tzinfo=tzlocal()) }, ... ] }
隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。