All Products
Search
Document Center

Security Center:UpdateOssScanConfig

Last Updated:Nov 25, 2024

Modifies a policy of detecting Object Storage Service (OSS) objects by using the SDK for malicious file detection feature.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:UpdateOssScanConfigupdate
*OssScanConfig
acs:yundun-sas:*:{#accountId}:ossscanconfig/{#ConfigId}
    none
none

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 policy ID.

65778
KeyPrefixListarrayNo

The prefixes of the objects.

stringNo

The prefix of the object.

/root
NamestringNo

The policy name.

nacos****
AllKeyPrefixbooleanNo

Specifies whether to match the prefixes of all objects.

true
DecompressMaxLayerintegerNo

The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the value is reached, the decompression operation immediately finishes. The detection of extracted objects is not affected.

1
DecompressMaxFileCountintegerNo

The maximum number of objects that can be extracted from a package. Valid values: 1 to 1000. If the value is reached, the decompression operation immediately finishes. The detection of extracted objects is not affected.

100
DecryptionListarrayNo

The decryption methods.

stringNo

The decryption method. Valid values:

  • OSS: uses OSS-managed keys.
  • KMS: uses Key Management Service (KMS)-managed customer master keys (CMKs).
KMS
LastModifiedStartTimelongNo

The timestamp. The objects whose last modification time is later than the specified value are detected. Unit: milliseconds.

1724301769834

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
2024-07-23The Error code has changed. The request parameters of the API has changedView Change Details
2024-04-10The Error code has changed. The request parameters of the API has changedView Change Details
2023-12-07The Error code has changed. The request parameters of the API has changedView Change Details