本文介绍资源编排作为事件源发布到事件总线EventBridge的事件类型。
事件类型
资源编排支持发布到事件总线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。 |