All Products
Search
Document Center

Object Storage Service:0038-00000007

Last Updated:Jul 21, 2023

Problem description

The Anti-DDoS instance is associated with an excessive number of buckets.

Causes

You initiated an InitBucketAntiDDosInfo request to initialize bucket protection, but used the x-oss-defender-instance header to specify an Anti-DDoS instance that is associated with an excessive number of buckets.

Examples

For example, you initiate the following request:

PUT /?antiDDos HTTP/1.1
Date:  GMT Date
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue
x-oss-defender-instance: cbcac8d2-4f75-4d6d-9f2e-c3447f73****
x-oss-defender-type: UnkownType
<AntiDDOSConfiguration>
  <Cnames>
    <Domain>abc1.example.cn</Domain>
    <Domain>abc2.example.cn</Domain>
  </Cnames>
</AntiDDOSConfiguration>

An error is returned because the Anti-DDoS instance specified by the x-oss-defender-instance header is associated with an excessive number of buckets.

Solutions

Make sure that the number of buckets associated with the Anti-DDoS instance specified by the x-oss-defender-instance header in the request does not exceed the limit. You can obtain the maximum number of buckets that are allowed for an Anti-DDoS instance by checking the returned error message.

For more information about how to configure DDoS protection in the OSS console, see OSS DDoS protection.

References

InitBucketAntiDDosInfo