All Products
Search
Document Center

Object Storage Service:0038-00000009

Last Updated:Jul 21, 2023

Problem description

The bucket for which the Anti-DDoS instance is used is mapped to an excessive number of domain names for which CNAME records are configured.

Causes

You initiated an InitBucketAntiDDosInfo request to initialize bucket protection, and used the Cnames node in the request to specify the custom domain names that you want to protect. However, the number of domain names that are mapped to the bucket exceeds the limit.

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.cn</Domain>
    <Domain>abc2.cn</Domain>
    <Domain>abc3.cn</Domain>
    <Domain>abc4.cn</Domain>
    <Domain>abc5.cn</Domain>
    <Domain>abc6.cn</Domain>
  </Cnames>
</AntiDDOSConfiguration>

The Cnames node specifies the custom domain names that you want to protect. You can add up to five custom domain names for each bucket. An error is returned for the request because the number of custom domain names exceeds the limit.

Solutions

By default, you can add up to five custom domain names for each bucket to the protection list of an Anti-DDoS instance.

References