All Products
Search
Document Center

Security Center:GetOssScanConfig

Last Updated:Feb 20, 2024

Queries the configurations of an Object Storage Service (OSS) 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
BucketNamestringNo

The name of the bucket.

iboxpublic****
IdstringNo

The ID of the policy.

1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

E10BAF1C-A6C5-51E2-866C-76D5922E****
Dataobject

The response parameters.

Enableinteger

Indicates whether the check policy is enabled. Valid values:

  • 1: enabled.
  • 0: disabled.
1
ScanDayListarray

The days when the check is performed. The value indicates the days of the week.

integer

The day when the check is performed. The value indicates the day of the week.

1
BucketNameListarray

The names of the buckets.

string

The name of the bucket.

bcdata-oss****
KeySuffixListarray

The suffixes of the objects that are checked.

string

The suffix of the object that is checked.

.asp
StartTimestring

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

00:00:00
EndTimestring

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

00:00:00
Namestring

The name of the policy.

test0104
KeyPrefixListarray

The prefixes of the object that you want to check.

string

The prefix of the object that you want to check.

/root
Idstring

The ID of the policy.

1274****
BucketNamestring

The name of the bucket.

hz-new01****
LastUpdateTimelong

The time when the policy last update.

1702025633079
BucketCountinteger

The number of the buckets.

1
AllKeyPrefixboolean

Whether to match all file prefixes.

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "E10BAF1C-A6C5-51E2-866C-76D5922E****",
  "Data": {
    "Enable": 1,
    "ScanDayList": [
      1
    ],
    "BucketNameList": [
      "bcdata-oss****"
    ],
    "KeySuffixList": [
      ".asp"
    ],
    "StartTime": "00:00:00",
    "EndTime": "00:00:00\n",
    "Name": "test0104",
    "KeyPrefixList": [
      "/root"
    ],
    "Id": "1274****",
    "BucketName": "hz-new01****",
    "LastUpdateTime": 1702025633079,
    "BucketCount": 1,
    "AllKeyPrefix": true
  }
}

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 changed. The response structure 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: BucketName
    Added Input Parameters: Id
Output ParametersThe response structure of the API has changed.