Queries the details of a policy task in the task center, including the task execution status and the corresponding flowchart.
Operation description
Only the Enterprise and Ultimate editions of Security Center support this API call. Other editions are not supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeSoarStrategyTaskDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StrategyTaskId |
integer |
Yes |
The ID of the policy task. Note
Call the DescribeSoarStrategyTasks operation to obtain this parameter. |
10585 |
| Lang |
string |
No |
The language type for the request and response messages. Default value: zh. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. It is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
FBBEB173-1F43-505F-A876-C03ECDF6CE4C |
| TaskDetail |
object |
The task details. |
|
| LogInfo |
string |
The task execution log information. |
{ "resultContent": "{\"failedNum\":0,\"totalNum\":1,\"successNum\":1}", "resultStatus": 0, "status": 2 } |
| ProcessInfo |
string |
The flow information corresponding to the policy task. |
{ "edges": [ { "level": 0, "removeFlag": 0, "source": 1, "target": 8 } ], "nodes": [ { "actionId": "Action_014s73k", "iconUrl": "https://img.alicdn.com/tfs/TB1T*****jSZLeXXb9kVXa-12-14.svg", "id": 1, "label": "describeDisks", "nodeName": "DescribeDisks", "status": 0, "type": "openAPI" } ] } |
| Params |
string |
The task parameters. |
[ { "name": "vulList", "associationProperty": "sasAllVul", "value": [ { "regionId": "cn-hangzhou", "instanceId": "i-bp10i3dtyq7x4****5e", "instanceName": "xxx", "vulId": 1222, "vulName": "centos:7:cesa-2024:1249", "vulAliasName": "CESA-2024:1249", "vulTag": "oval", "vulUuid": "3c5eb76a-df89-****-85ef-67562cdc2344", "vulType": "cve", "vulModifyTs": 1721324258000 } ] }, { "name": "snapshotConfig", "associationProperty": "snapshotConfig", "value": { "ttl": 1 } }, { "name": "notifyConfig", "associationProperty": "notifyConfig", "value": { "ding": [ { "value": 2195, "label": "test" } ] } } ] |
| TaskName |
string |
The task name. |
task-1 |
Examples
Success response
JSON format
{
"RequestId": "FBBEB173-1F43-505F-A876-C03ECDF6CE4C",
"TaskDetail": {
"LogInfo": "{\n\"resultContent\": \"{\\\"failedNum\\\":0,\\\"totalNum\\\":1,\\\"successNum\\\":1}\",\n\"resultStatus\": 0,\n\"status\": 2\n}",
"ProcessInfo": "{\n \"edges\": [\n {\n \"level\": 0,\n \"removeFlag\": 0,\n \"source\": 1,\n \"target\": 8\n }\n ],\n \"nodes\": [\n {\n \"actionId\": \"Action_014s73k\",\n \"iconUrl\": \"https://img.alicdn.com/tfs/TB1T*****jSZLeXXb9kVXa-12-14.svg\",\n \"id\": 1,\n \"label\": \"describeDisks\",\n \"nodeName\": \"DescribeDisks\",\n \"status\": 0,\n \"type\": \"openAPI\"\n }\n ]\n}",
"Params": "[\n {\n \"name\": \"vulList\",\n \"associationProperty\": \"sasAllVul\",\n \"value\": [\n {\n \"regionId\": \"cn-hangzhou\",\n \"instanceId\": \"i-bp10i3dtyq7x4****5e\",\n \"instanceName\": \"xxx\",\n \"vulId\": 1222,\n \"vulName\": \"centos:7:cesa-2024:1249\",\n \"vulAliasName\": \"CESA-2024:1249\",\n \"vulTag\": \"oval\",\n \"vulUuid\": \"3c5eb76a-df89-****-85ef-67562cdc2344\",\n \"vulType\": \"cve\",\n \"vulModifyTs\": 1721324258000\n }\n ]\n },\n {\n \"name\": \"snapshotConfig\",\n \"associationProperty\": \"snapshotConfig\",\n \"value\": {\n \"ttl\": 1\n }\n },\n {\n \"name\": \"notifyConfig\",\n \"associationProperty\": \"notifyConfig\",\n \"value\": {\n \"ding\": [\n {\n \"value\": 2195,\n \"label\": \"test\"\n }\n ]\n }\n }\n]",
"TaskName": "task-1"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.