本文介紹Resource Orchestration Service作為事件來源發布到事件匯流排EventBridge的事件類型。
事件類型
Resource Orchestration Service支援發布到事件匯流排EventBridge的事件類型如下所示。
事件類型 | type參數值 |
ros:StackStateChange:CheckComplete | |
ros:StackStateChange:CheckFailed | |
ros:StackStateChange:CreateComplete | |
ros:StackStateChange:CreateFailed | |
ros:StackStateChange:CreateRollbackComplete | |
ros:StackStateChange:CreateRollbackFailed | |
ros:StackStateChange:DeleteComplete | |
ros:StackStateChange:DeleteFailed | |
ros:StackStateChange:ImportCreateComplete | |
ros:StackStateChange:ImportCreateFailed | |
ros:StackStateChange:ImportCreateRollbackComplete | |
ros:StackStateChange:ImportCreateRollbackFailed | |
ros:StackStateChange:ImportUpdateComplete | |
ros:StackStateChange:ImportUpdateFailed | |
ros:StackStateChange:ImportUpdateRollbackComplete | |
ros:StackStateChange:ImportUpdateRollbackFailed | |
ros:StackStateChange:RollbackComplete | |
ros:StackStateChange:RollbackFailed | |
ros:StackStateChange:UpdateComplete | |
ros:StackStateChange:UpdateFailed | |
ros:Stack:StatusChange | |
阿里雲平台對資源執行的操作事件 | ros:ActionTrail:AliyunServiceEvent |
API調用 | ros:ActionTrail:ApiCall |
控制台的操作事件 | ros:ActionTrail:ConsoleOperation |
資源棧組操作狀態變化 | ros:CloudMonitor:StackGroup[OperationStatusChange] |
資源棧資源狀態變化 | ros:CloudMonitor:StackResource[StatusChange] |
資源棧狀態變化 | ros:CloudMonitor:Stack[StatusChange] |
資源變更投遞 | ros:Config:ConfigurationItemChangeNotification |
資源評估不合規通知 | ros:Config:NonCompliantNotification |
CloudEvents規範中定義的參數解釋,請參見事件概述。
資源棧檢查完成
當資源棧檢查完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5f39a410-0477-4e9f-bba6-538d726d****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:CheckComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2020-12-31T09:46:10Z",
"data":{
"Status":"CHECK_COMPLETE",
"Outputs":[
],
"StackName":"test-stack",
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | CHECK_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧檢查失敗
當資源棧檢查失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5f39a410-0477-4e9f-bba6-538d726d****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:CheckFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2020-12-31T09:46:10Z",
"data":{
"Status":"CHECK_FAILED",
"Outputs":[
],
"StackName":"test-stack",
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | CHECK_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧建立完成
當資源棧建立完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5f39a410-0477-4e9f-bba6-538d726d****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:CreateComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2020-12-31T09:46:10Z",
"data":{
"Status":"CREATE_COMPLETE",
"Outputs":[
],
"StackName":"test-stack",
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | CREATE_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧建立失敗
當資源棧建立失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5f39a410-0477-4e9f-bba6-538d726d****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:CreateFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2020-12-31T09:46:10Z",
"data":{
"Status":"CREATE_FAILED",
"Outputs":[
],
"StackName":"test-stack",
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | CREATE_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧建立復原完成
當資源棧建立復原完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5f39a410-0477-4e9f-bba6-538d726d****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:CreateRollbackComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2020-12-31T09:46:10Z",
"data":{
"Status":"CREATE_ROLLBACK_COMPLETE",
"Outputs":[
],
"StackName":"test-stack",
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | CREATE_ROLLBACK_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧建立復原失敗
當資源棧建立復原失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5f39a410-0477-4e9f-bba6-538d726d****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:CreateRollbackFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2020-12-31T09:46:10Z",
"data":{
"Status":"CREATE_ROLLBACK_FAILED",
"Outputs":[
],
"StackName":"test-stack",
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | CREATE_ROLLBACK_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧刪除完成
當資源棧刪除完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:DeleteComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"DELETE_COMPLETE"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | DELETE_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧刪除失敗
當資源棧刪除失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:DeleteFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"DELETE_FAILED"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | DELETE_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入建立完成
當資源棧匯入建立完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportCreateComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_CREATE_COMPLETE"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_CREATE_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入建立失敗
當資源棧匯入建立失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportCreateFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_CREATE_FAILED"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_CREATE_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入建立復原完成
當資源棧匯入建立復原完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportCreateRollbackComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_CREATE_ROLLBACK_COMPLETE"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_CREATE_ROLLBACK_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入建立復原失敗
當資源棧匯入建立復原失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportCreateRollbackFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_CREATE_ROLLBACK_FAILED"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_CREATE_ROLLBACK_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入更新完成
當資源棧匯入更新完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportUpdateComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_UPDATE_COMPLETE"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_UPDATE_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入更新失敗
當資源棧匯入更新失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportUpdateFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_UPDATE_FAILED"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_UPDATE_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入更新復原完成
當資源棧匯入更新復原完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportUpdateRollbackComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_UPDATE_ROLLBACK_COMPLETE"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_UPDATE_ROLLBACK_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧匯入更新復原失敗
當資源棧匯入更新復原失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"5c6a640d-75d3-432d-8409-89b23763****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:ImportUpdateRollbackFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
"time":"2021-01-04T12:35:19Z",
"data":{
"StackId":"47560378-1287-404d-bf2e-26b4b641****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"IMPORT_UPDATE_ROLLBACK_FAILED"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | IMPORT_UPDATE_ROLLBACK_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧復原完成
當資源棧復原完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"e9bd42ea-5fb1-4be6-8168-60b8d3ef****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:RollbackComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2021-01-05T09:21:23Z",
"data":{
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"ROLLBACK_COMPLETE"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-05T17:21:23.632Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | ROLLBACK_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧復原失敗
當資源棧復原失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"e9bd42ea-5fb1-4be6-8168-60b8d3ef****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:RollbackFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"time":"2021-01-05T09:21:23Z",
"data":{
"StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****",
"StackName":"test-stack",
"Outputs":[
],
"Status":"ROLLBACK_FAILED"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-05T17:21:23.632Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | ROLLBACK_FAILED | 資源棧狀態。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧更新完成
當資源棧更新完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"238dbcdc-5b6b-450c-b95c-1142020e****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:UpdateComplete",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b0bb2844-da77-4ceb-afe9-7dd6a97d****",
"time":"2021-01-05T09:56:54Z",
"data":{
"Status":"UPDATE_COMPLETE",
"Outputs":[
{
"Description":"No description given",
"OutputKey":"VpcId",
"OutputValue":"vpc-bp1hbjc1vugq7ubod****"
}
],
"StackName":"test-stack",
"StackId":"b0bb2844-da77-4ceb-afe9-7dd6a97d****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-05T17:56:54.875Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | ROLLBACK_COMPLETE | 資源棧狀態。 |
Outputs | Struct | 資源棧輸出。 | |
Description | String | No description given | 輸出參數描述。 |
OutputKey | String | VpcId | 輸出參數名稱。 |
OutputValue | String | vpc-bp1hbjc1vugq7ubod**** | 輸出參數值。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b0bb2844-da77-4ceb-afe9-7dd6a97d**** | 資源棧ID。 |
資源棧更新失敗
當資源棧更新失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id":"238dbcdc-5b6b-450c-b95c-1142020e****",
"source":"acs.ros",
"specversion":"1.0",
"type":"ros:StackStateChange:UpdateFailed",
"datacontenttype":"application/json; charset=utf-8",
"subject":"acs:ros:cn-hangzhou:123456789098****:stack/b0bb2844-da77-4ceb-afe9-7dd6a97d****",
"time":"2021-01-05T09:56:54Z",
"data":{
"Status":"UPDATE_FAILED",
"Outputs":[
{
"Description":"No description given",
"OutputKey":"VpcId",
"OutputValue":"vpc-bp1hbjc1vugq7ubod****"
}
],
"StackName":"test-stack",
"StackId":"b0bb2844-da77-4ceb-afe9-7dd6a97d****"
},
"aliyunaccountid":"123456789098****",
"aliyuneventbusname":"default",
"aliyunpublishtime":"2021-01-05T17:56:54.875Asia/Shanghai",
"aliyunregionid":"cn-hangzhou",
"aliyunpublishaddr":"172.25.XX.XX"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | UPDATE_FAILED | 資源棧狀態。 |
Outputs | Struct | 資源棧輸出。 | |
Description | String | No description given | 輸出參數描述。 |
OutputKey | String | VpcId | 輸出參數名稱。 |
OutputValue | String | vpc-bp1hbjc1vugq7ubod**** | 輸出參數值。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b0bb2844-da77-4ceb-afe9-7dd6a97d**** | 資源棧ID。 |
資源棧狀態變化
當資源棧狀態變化時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ros",
"specversion": "1.0",
"subject": "acs.ros:cn-hangzhou:123456789098****:stack/cfafc3f6-032b-420a-aa74-91e2d311****",
"time": "2020-11-19T21:04:41+08:00",
"type": "ros:Stack:StatusChange",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"StackId": "cfafc3f6-032b-420a-aa74-91e2d311****",
"StackName": "test-stack-name",
"Tags": {"key1": "value1"},
"Outputs": [],
"Status": "CREATE_IN_PROGRESS"
}
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
Status | String | UPDATE_FAILED | 資源棧狀態。 |
Tags | Object | {"key1": "value1"} | 資源棧標籤。 |
Outputs | Array | 資源棧輸出。 | |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b0bb2844-da77-4ceb-afe9-7dd6a97d**** | 資源棧ID。 |