All Products
Search
Document Center

Security Center:UpdateOssScanConfig

Last Updated:Feb 20, 2024

Updates the configurations of a bucket check policy.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EnableintegerNo

Specifies whether to enable the bucket check policy. Valid values:

  • 1: enables the bucket check policy.
  • 0: disables the bucket check policy.
0
ScanDayListarrayNo

The time when the check is performed. The value specifies the days of the week.

integerNo

The time when the check is performed. The value specifies the day of the week.

1
BucketNameListarrayNo

The names of the buckets.

stringNo

The name of the bucket.

hz-new02****
KeySuffixListarrayNo

The suffixes of the objects that you want to check.

stringNo

The suffix of the object that you want to check.

.asp
StartTimestringNo

The start time of the check. Specify the time in the HH:mm:ss format.

00:00:00
EndTimestringNo

The end time of the check. Specify the time in the HH:mm:ss format.

00:00:01
IdstringNo

The ID of the policy.

65778
KeyPrefixListarrayNo

The prefixes of the object that you want to check.

stringNo

The prefix of the object that you want to check.

/root
NamestringNo

The name of the policy.

nacos****
AllKeyPrefixbooleanNo

Whether to match all file prefixes.

true

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

FFA14F61-4E2F-54C7-9276-81C60BAC****

Examples

Sample success responses

JSONformat

{
  "RequestId": "FFA14F61-4E2F-54C7-9276-81C60BAC****"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-07The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Id
    Added Input Parameters: KeyPrefixList
    Added Input Parameters: Name
    Added Input Parameters: AllKeyPrefix