All Products
Search
Document Center

Security Center:GetOssBucketScanStatistic

Last Updated:Feb 20, 2024

Queries the statistics about an Object Storage Service (OSS) bucket check.

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
BucketNameListarrayNo

The names of the buckets.

stringNo

The name of the bucket.

hz-new02****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

FAC50208-E56B-5CC8-8738-2B219D1A****
Dataobject

The response parameters.

RiskBucketinteger

The number of buckets in which at-risk objects exist.

1
HighRisklong

The number of high-risk objects.

0
MediumRisklong

The number of medium-risk objects.

0
LowRisklong

The number of low-risk objects.

0
NoScanBucketinteger

The number of buckets that are not checked.

1
TotalBucketinteger

The total number of buckets.

1
ScanObjectlong

The number of objects that are checked.

1
RemainAuthinteger

The remaining quota.

1
ExpireTimelong

The expiration time of the purchased quota.

1714442403000
TotalObjectlong

The total number of objects in the bucket.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "FAC50208-E56B-5CC8-8738-2B219D1A****",
  "Data": {
    "RiskBucket": 1,
    "HighRisk": 0,
    "MediumRisk": 0,
    "LowRisk": 0,
    "NoScanBucket": 1,
    "TotalBucket": 1,
    "ScanObject": 1,
    "RemainAuth": 1,
    "ExpireTime": 1714442403000,
    "TotalObject": 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.