資源編排事件
本文介紹資源編排作為事件源發(fā)布到事件總線EventBridge的事件類型。
事件類型
資源編排支持發(fā)布到事件總線EventBridge的事件類型如下所示。
事件類型 | type參數(shù)值 |
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 | |
阿里云平臺對資源執(zhí)行的操作事件 | ros:ActionTrail:AliyunServiceEvent |
API調(diào)用 | ros:ActionTrail:ApiCall |
控制臺的操作事件 | ros:ActionTrail:ConsoleOperation |
資源棧組操作狀態(tài)變化 | ros:CloudMonitor:StackGroup[OperationStatusChange] |
資源棧資源狀態(tài)變化 | ros:CloudMonitor:StackResource[StatusChange] |
資源棧狀態(tài)變化 | ros:CloudMonitor:Stack[StatusChange] |
資源變更投遞 | ros:Config:ConfigurationItemChangeNotification |
資源評估不合規(guī)通知 | ros:Config:NonCompliantNotification |
CloudEvents規(guī)范中定義的參數(shù)解釋,請參見事件概述。
資源棧檢查完成
當(dāng)資源棧檢查完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | CHECK_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧檢查失敗
當(dāng)資源棧檢查失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | CHECK_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧創(chuàng)建完成
當(dāng)資源棧創(chuàng)建完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | CREATE_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧創(chuàng)建失敗
當(dāng)資源棧創(chuàng)建失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | CREATE_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧創(chuàng)建回滾完成
當(dāng)資源棧創(chuàng)建回滾完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | CREATE_ROLLBACK_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧創(chuàng)建回滾失敗
當(dāng)資源棧創(chuàng)建回滾失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | CREATE_ROLLBACK_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧刪除完成
當(dāng)資源棧刪除完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | DELETE_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧刪除失敗
當(dāng)資源棧刪除失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | DELETE_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入創(chuàng)建完成
當(dāng)資源棧導(dǎo)入創(chuàng)建完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_CREATE_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入創(chuàng)建失敗
當(dāng)資源棧導(dǎo)入創(chuàng)建失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_CREATE_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入創(chuàng)建回滾完成
當(dāng)資源棧導(dǎo)入創(chuàng)建回滾完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_CREATE_ROLLBACK_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入創(chuàng)建回滾失敗
當(dāng)資源棧導(dǎo)入創(chuàng)建回滾失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_CREATE_ROLLBACK_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入更新完成
當(dāng)資源棧導(dǎo)入更新完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_UPDATE_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入更新失敗
當(dāng)資源棧導(dǎo)入更新失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_UPDATE_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入更新回滾完成
當(dāng)資源棧導(dǎo)入更新回滾完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_UPDATE_ROLLBACK_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧導(dǎo)入更新回滾失敗
當(dāng)資源棧導(dǎo)入更新回滾失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | IMPORT_UPDATE_ROLLBACK_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | 47560378-1287-404d-bf2e-26b4b641**** | 資源棧ID。 |
資源棧回滾完成
當(dāng)資源棧回滾完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | ROLLBACK_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧回滾失敗
當(dāng)資源棧回滾失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | ROLLBACK_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 無 | 資源棧輸出。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b33a8fa5-0ba8-43cf-8036-0bd3339e**** | 資源棧ID。 |
資源棧更新完成
當(dāng)資源棧更新完成時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | ROLLBACK_COMPLETE | 資源棧狀態(tài)。 |
Outputs | Struct | 資源棧輸出。 | |
Description | String | No description given | 輸出參數(shù)描述。 |
OutputKey | String | VpcId | 輸出參數(shù)名稱。 |
OutputValue | String | vpc-bp1hbjc1vugq7ubod**** | 輸出參數(shù)值。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b0bb2844-da77-4ceb-afe9-7dd6a97d**** | 資源棧ID。 |
資源棧更新失敗
當(dāng)資源棧更新失敗時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | UPDATE_FAILED | 資源棧狀態(tài)。 |
Outputs | Struct | 資源棧輸出。 | |
Description | String | No description given | 輸出參數(shù)描述。 |
OutputKey | String | VpcId | 輸出參數(shù)名稱。 |
OutputValue | String | vpc-bp1hbjc1vugq7ubod**** | 輸出參數(shù)值。 |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b0bb2844-da77-4ceb-afe9-7dd6a97d**** | 資源棧ID。 |
資源棧狀態(tài)變化
當(dāng)資源棧狀態(tài)變化時,事件總線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字段包含的參數(shù)解釋如下表所示。
參數(shù) | 類型 | 示例值 | 描述 |
Status | String | UPDATE_FAILED | 資源棧狀態(tài)。 |
Tags | Object | {"key1": "value1"} | 資源棧標(biāo)簽。 |
Outputs | Array | 資源棧輸出。 | |
StackName | String | test-stack | 資源棧名稱。 |
StackId | String | b0bb2844-da77-4ceb-afe9-7dd6a97d**** | 資源棧ID。 |