Updates the configurations of a bucket check policy.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Enable | integer | No | Specifies whether to enable the bucket check policy. Valid values:
| 0 |
ScanDayList | array | No | The time when the check is performed. The value specifies the days of the week. | |
integer | No | The time when the check is performed. The value specifies the day of the week. | 1 | |
BucketNameList | array | No | The names of the buckets. | |
string | No | The name of the bucket. | hz-new02**** | |
KeySuffixList | array | No | The suffixes of the objects that you want to check. | |
string | No | The suffix of the object that you want to check. | .asp | |
StartTime | string | No | The start time of the check. Specify the time in the HH:mm:ss format. | 00:00:00 |
EndTime | string | No | The end time of the check. Specify the time in the HH:mm:ss format. | 00:00:01 |
Id | string | No | The ID of the policy. | 65778 |
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 | |
Name | string | No | The name of the policy. | nacos**** |
AllKeyPrefix | boolean | No | Whether to match all file prefixes. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "FFA14F61-4E2F-54C7-9276-81C60BAC****"
}
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 | see changesets | ||||||||||||||||
|