一个已启动的执行,包含事件触发器或告警触发器任务,该API可对该类执行发送一条消息体内容,消息体会使事件或告警任务产生一个新的子执行。可用于创建该类触发器执行后,进行调试。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String TriggerExecution

系统规定参数。取值:TriggerExecution

RegionId String cn-hangzhou

地域ID

ExecutionId String exec-sadw3f23rsad

目标EventTrigger或AlarmTrigger执行ID。

Type String Event

触发器类型,可选Event或Alarm。

Content String {"eventTime": "20181226T220114.058+0800", "id": "9435EAD6-3CF6-4494-8F7A-3A********77","level": "INFO","name": "Instance:StateChange","product": "ECS","regionId":"cn-hangzhou","resourceId": "acs:ecs:cn-hangzhou:169070********30:instance/i-bp1ecr********5go2go","userId": "169070********30","ver": "1.0","content": {"resourceId": "i-bp1ecr********5go2go", "resourceType": "ALIYUN::ECS::Instance","state": "Stopping"} }

发送给触发器任务的消息体。

ClientToken String dswe2-3i0-029

保证幂等性的一个Token。

返回数据

名称 类型 示例值 描述
RequestId String 14A07460-EBE7-47CA-9757-12CC4761D47A

请求ID

示例

请求示例

http(s)://[Endpoint]/?Action=TriggerExecution
&RegionId=cn-hangzhou
&ExecutionId=exec-sadw3f23rsad
&Type=Event
&Content={"eventTime": "20181226T220114.058+0800", "id": "9435EAD6-3CF6-4494-8F7A-3A********77","level": "INFO","name": "Instance:StateChange","product": "ECS","regionId":"cn-hangzhou","resourceId": "acs:ecs:cn-hangzhou:169070********30:instance/i-bp1ecr********5go2go","userId": "169070********30","ver": "1.0","content": {"resourceId": "i-bp1ecr********5go2go", "resourceType": "ALIYUN::ECS::Instance","state": "Stopping"} }
&ClientToken=dswe2-3i0-029
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<TriggerExecutionResponse>
    <RequestId>14A07460-EBE7-47CA-9757-12CC4761D47A</RequestId>
</TriggerExecutionResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "14A07460-EBE7-47CA-9757-12CC4761D47A"
}

错误码

访问错误中心查看更多错误码。