Lists the high-risk tasks in a template.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
oos:ListExecutionRiskyTasks | get | *template
|
| None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | No | The region ID. | cn-hangzhou |
TemplateName | string | Yes | The name of the template. | myTemplate |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | C04B668D-D2DD-4B40-B6E9-0E3C4F53D5B5 |
| RiskyTasks | array<object> | The high-risk tasks. | |
object | |||
Service | string | The cloud service to which the high-risk API operation belongs. | ECS |
API | string | The name of the high-risk API operation. | DeleteInstance |
| Task | array | The list of tasks that contain the high-risk API operation. | |
string | The task that contains the high-risk API operation. | parenttask1 | |
| Template | array | The list of templates that contain the high-risk task. | |
string | The template that contains the high-risk task. | deleteInstanceTask1 |
Examples
Success response
JSON format
{
"RequestId": "C04B668D-D2DD-4B40-B6E9-0E3C4F53D5B5",
"RiskyTasks": [
{
"Service": "ECS",
"API": "DeleteInstance",
"Task": [
"parenttask1"
],
"Template": [
"deleteInstanceTask1"
]
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.