Creates a one-time virus scan task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:CreateVirusScanOnceTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SelectionKey |
string |
No |
The key that stores asset information. Note
You can call the GetAssetSelectionConfig operation to obtain this parameter. |
845de1ec-4b08-42e1-b564-31321e48xxxx |
| ScanType |
string |
No |
The scan type of the virus scan. Valid values:
|
system |
| ScanPath |
array |
No |
The scan path information to be transmitted if the scan type is custom scan. |
|
|
string |
No |
The absolute path of the file. |
/var/spool/cron |
|
| Param |
string |
No |
The extended information field:
|
{\"additionType\":[\"SCAN_MEMORY\"]} |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Different requests should use different tokens. The token supports only ASCII characters and cannot exceed 64 characters in length. |
|
|
No |
Specifies whether to perform only a dry run of the request. Valid values:
Default value: false. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
CE500770-42D3-442E-9DDD-156E0F9F3B45 |
Examples
Success response
JSON format
{
"RequestId": "CE500770-42D3-442E-9DDD-156E0F9F3B45"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | 相同的 ClientToken 被用于不同的请求参数。 | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 409 | IdempotentRequestInProgress | 使用相同 ClientToken 的请求正在处理中。 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.