You can call this operation to query high-risk tasks in the execution of a template.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListExecutionRiskyTasks

The operation that you want to perform. Set the value to ListExecutionRiskyTasks.

TemplateName String Yes myTemplate

The name of the template.

RegionId String No cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
RequestId String C04B668D-D2DD-4B40-B6E9-0E3C4F53D5B5

The ID of the request.

RiskyTasks

The information about high-risk tasks.

API String DeleteInstance

The name of the operation that the high-risk task calls.

Service String ECS

The cloud service where the high-risk task runs.

Task ["parenttask1"]

The name of the high-risk task.

Template ["deleteInstanceTask1"]

The template that contains the high-risk task.

Examples

Sample requests


http(s)://oos.cn-hangzhou.aliyuncs.com/? Action=ListExecutionRiskyTasks
&TemplateName=myTemplate
&<Common request parameters>

Sample success responses

XML format

<ListExecutionRiskyTasksResponse>
      <RequestId>C04B668D-D2DD-4B40-B6E9-0E3C4F53D5B5</RequestId>
      <RiskyTasks>
            <Task>parenttask1</Task>
            <Task>childtask2</Task>
            <Template>root template name</Template>
            <Service>ECS</Service>
            <API>DeleteInstance</API>
      </RiskyTasks>
      <RiskyTasks>
            <Task>task3</Task>
            <Template>root template name</Template>
            <Service>SLB</Service>
            <API>RemoveBackendServers</API>
      </RiskyTasks>
</ListExecutionRiskyTasksResponse>

JSON format

{
	"RiskyTasks":[
		{
			"API":"DeleteInstance",
			"Service":"ECS",
			"Template":[
				"root template name"
			],
			"Task":[
				"parenttask1",
				"childtask2"
			]
		},
		{
			"API":"RemoveBackendServers",
			"Service":"SLB",
			"Template":[
				"root template name"
			],
			"Task":[
				"task3"
			]
		}
	],
	"RequestId":"C04B668D-D2DD-4B40-B6E9-0E3C4F53D5B5"
}

Error codes

For a list of error codes, visit the API Error Center.