Updates the OSS file scan policy configuration for the malicious file detection feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:UpdateOssScanConfig |
update |
*OssScanConfig
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Enable |
integer |
No |
Specifies whether to enable the policy. Valid values:
|
0 |
| ScanDayList |
array |
No |
The scan days. The number indicates the day of the week. |
|
|
integer |
No |
The scan days. The number indicates the day of the week. |
1 |
|
| BucketNameList |
array |
No |
The list of bucket names. |
|
|
string |
No |
The bucket name. |
hz-new02**** |
|
| KeySuffixList |
array |
No |
The list of file suffixes. |
|
|
string |
No |
Specifies that the key of the file to be scanned must end with the specified suffix. |
.asp |
|
| StartTime |
string |
No |
The scan start time in the HH:mm:ss format. |
00:00:00 |
| EndTime |
string |
No |
The scan stop time in the HH:mm:ss format. |
00:00:01 |
| Id |
string |
No |
The scan policy ID. |
1141**** |
| KeyPrefixList |
array |
No |
The prefix list of files. |
|
|
string |
No |
Specifies that the key of the file to be scanned must start with the specified KeyPrefix. The value cannot start with a forward slash (/). |
/root |
|
| Name |
string |
No |
The scan policy name. |
testStrategy |
| AllKeyPrefix |
boolean |
No |
Specifies whether to match all file prefixes. |
true |
| DecompressMaxLayer |
integer |
No |
The maximum number of decompression layers when multiple levels of nested compressed files exist. Minimum value: 1. Maximum value: 5. When the maximum number of decompression layers is exceeded, the decompression operation ends immediately. The detection of files that have already been decompressed is not affected. |
1 |
| DecompressMaxFileCount |
integer |
No |
The maximum number of files to decompress. Minimum value: 1. Maximum value: 1000. When the maximum number of decompressed files is exceeded, the decompression operation ends immediately. The detection of files that have already been decompressed is not affected. |
100 |
| DecryptionList |
array |
No |
The list of decryption types. |
|
|
string |
No |
The decryption type. Valid values:
|
KMS |
|
| LastModifiedStartTime |
integer |
No |
Specifies that only files whose last modification time is after the specified timestamp are scanned. Unit: milliseconds. |
1724301769834 |
| RealTimeIncr |
boolean |
No |
Specifies whether to enable real-time incremental detection. When this parameter is set to true, the ScanDayList, StartTime, and EndTime parameters do not take effect. |
true |
| AutoAdd |
integer |
No |
The business source. Valid values:
|
OSS |
|
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID generated by Alibaba Cloud for this request. You can use this ID to troubleshoot issues. |
FFA14F61-4E2F-54C7-9276-81C60BAC**** |
Examples
Success response
JSON format
{
"RequestId": "FFA14F61-4E2F-54C7-9276-81C60BAC****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.