All Products
Search
Document Center

Security Center:ListOssBucketScanInfo

Last Updated:Feb 20, 2024

Queries the risk information of an Object Storage Service (OSS) bucket.

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
CurrentPageintegerYes

The page number.

1
PageSizeintegerYes

The number of entries per page.

20
BucketNamestringNo

The name of the bucket.

iboxpublic****
StatusintegerNo

The check status of the bucket. Valid values:

  • 1: The bucket is not checked.
  • 2: All objects in the bucket are being checked.
  • 3: Only new objects in the bucket are being checked.
  • 4: The bucket is checked.
1
HasRiskintegerNo

Specifies whether at-risk objects are detected. Valid values:

  • 0: No at-risk objects are detected.
  • 1: At-risk objects are detected.
1
FuzzBucketNamestringNo

The name of the bucket that is used for fuzzy match.

test
LangstringNo

The language of the content in the request and response. Default value: zh. Valid values:

  • zh: Chinese.
  • en: English.
zh

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

6C578F36-92D2-552C-8AA0-86EB1AC2****
PageInfoobject

The page information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

20
TotalCountinteger

The total number of entries returned.

165
Dataobject []

The data returned.

BucketNamestring

The name of the bucket.

hz-new02****
RegionIdstring

The region ID.

cn-hangzhou
LastScanTimelong

The time when the bucket was last checked. Unit: milliseconds.

1698388233883
LastScanEndTimelong

The time when the most recent check ended. Unit: milliseconds.

1698388233883
Scannedboolean

Indicates whether the bucket is checked. Valid values:

  • true
  • false
false
ScanObjectlong

The number of objects that are checked.

100
TotalObjectlong

The total number of objects in the bucket.

100
HighRisklong

The number of high-risk objects.

0
MediumRisklong

The number of medium-risk objects.

0
LowRisklong

The number of low-risk objects.

0
Statusinteger

The check status of the bucket. Valid values:

  • 1: The bucket is not checked.
  • 2: All objects in the bucket are being checked.
  • 3: Only new objects are being checked.
  • 4: The bucket is checked.
1
Supportboolean

Indicates whether the bucket can be checked. Valid values:

  • true
  • false
true
Messagestring

The reason why the bucket cannot be checked.

Unsupported Region.
StorageClassstring

The storage class of the bucket. Valid values:

  • Standard
  • IA
  • Archive
  • ColdArchive
Archive
ConfigStatusinteger

Configuration status, valid values:

  • 0: No Configuration.
  • 1: Not Open.
  • 2: Open.
1

Examples

Sample success responses

JSONformat

{
  "RequestId": "6C578F36-92D2-552C-8AA0-86EB1AC2****",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 165
  },
  "Data": [
    {
      "BucketName": "hz-new02****",
      "RegionId": "cn-hangzhou",
      "LastScanTime": 1698388233883,
      "LastScanEndTime": 1698388233883,
      "Scanned": false,
      "ScanObject": 100,
      "TotalObject": 100,
      "HighRisk": 0,
      "MediumRisk": 0,
      "LowRisk": 0,
      "Status": 1,
      "Support": true,
      "Message": "Unsupported Region.",
      "StorageClass": "Archive",
      "ConfigStatus": 1
    }
  ]
}

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 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
Output ParametersThe response structure of the API has changed.