Creates a scan policy.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Enable | integer | No | Specifies whether to enable the policy. Valid values:
| 1 |
ScanDayList | array | No | The days on which the scan is executed in a week. | |
integer | No | The day on which the scan is executed in a week. | 1 | |
BucketNameList | array | No | The names of buckets. | |
string | No | The name of the bucket. | cccarvato-oss**** | |
KeySuffixList | array | No | The suffixes of the files to scan. | |
string | No | The suffix of the file to scan. | .asp | |
StartTime | string | No | The time when the scan starts. The time must be in the HH:mm:ss format. | 00:00:00 |
EndTime | string | No | The time when the scan ends. The time must be in the HH:mm:ss format. | 01:01:00 |
Name | string | No | The name of the policy. | runtime |
KeyPrefixList | array | No | The prefixes of the object that you want to check. | |
string | No | The prefix of the object that you want to check. | /root | |
AllKeyPrefix | boolean | No | Whether to match all prefixes. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5DFD6277-CC36-57F7-ACE6-F5952123****",
"Id": 0
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-12-07 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | see changesets | ||||||||||||||||
|