GenerateOnceTask
Creates a one-time scan task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-aegis:GenerateOnceTask |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskType |
string |
Yes |
The type of the scan task. Valid values:
|
CLIENT_PROBLEM_CHECK |
| TaskName |
string |
Yes |
The name of the scan task. |
CLIENT_PROBLEM_CHECK |
| Param |
string |
Yes |
A JSON string that contains additional parameters for the task. |
{"mode":1,"problemType":"offline","uuids":"inet-795dcad1-360f-49d2-b01e-b7da7f1c****"} |
| Source |
string |
No |
The source that initiated the task. |
Manual |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. This unique identifier is generated by Alibaba Cloud and can be used for troubleshooting. |
8BB6B8FA-39E8-5654-A309-8EED13B1**** |
| CanCreate |
boolean |
Indicates whether you can create more scan tasks. Valid values:
Note
You can run up to 10 concurrent scan tasks. Requests to create a new task fail if this limit is exceeded. Wait for an existing task to complete before creating a new one. |
true |
| LastTask |
string |
The ID of the last task. |
38730bb078f4a1461d4ed283994c**** |
| CollectTime |
integer |
The collection time. |
1670307567000 |
| TotalCount |
integer |
The total number of tasks. |
100 |
| TaskId |
string |
The ID of the scan task. |
38730bb078f4a1461d4ed283994c**** |
| FinishCount |
integer |
The number of completed tasks. |
61 |
Examples
Success response
JSON format
{
"RequestId": "8BB6B8FA-39E8-5654-A309-8EED13B1****",
"CanCreate": true,
"LastTask": "38730bb078f4a1461d4ed283994c****\n",
"CollectTime": 1670307567000,
"TotalCount": 100,
"TaskId": "38730bb078f4a1461d4ed283994c****",
"FinishCount": 61
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AssetsCollectionFrequencyLimit | Collection task frequency limit. | Acquisition task frequency limit. |
| 400 | IllegalParameter | Illegal parameter, please check the param. | Parameter error, please check the input parameters. |
| 400 | UnsupportedOperation | This operation is not supported. | The operation is not supported. |
| 400 | TaskProcessing | The baseline repair task is in progress. | The baseline repair task is in progress. |
| 400 | -101 | Invalid parameter value. | Invalid parameter. |
| 400 | -120 | The maximum number of quota is exceeded. | Maximum quantity limit exceeded. |
| 400 | TaskRepeat | Please wait last task finish. | |
| 400 | BeyondQuata | Please check the scan quota | Check the quota of the assets that can be scanned. |
| 400 | TaskDependencyPending | The previous task is not completed. | The previous task did not complete. |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.