文档

0031-00000015

更新时间:

问题描述

开启或者关闭数据复制时间控制(RTC)功能时,ReplicationRule节点下缺少ID参数。

问题原因

您发起了PutBucketRTC请求,但是请求中ReplicationRule节点下缺少ID参数。

问题示例

以下请求示例中ReplicationRule节点下缺少ID参数。

POST /?replication&comp=add HTTP/1.1
PUT /?rtc HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Content-Length:ContentLength
Content-Type: application/xml
Authorization: SignatureValue

<?xml version="1.0" encoding="UTF-8"?>
<ReplicationRule>
    <RTC>
        <Status>enabled or disabled</Status>
    </RTC>
</ReplicationRule>

解决方案

ReplicationRule节点下添加ID参数,用于指定规则ID。正确示例如下:

PUT /?rtc HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Thu, 21 Jul 2022 15:39:18 GMT
Content-Length:46
Content-Type: application/xml
Authorization: OSS qn6qrrqxo2oawuk53otf****:CTkuxpLAi4XZ+WwIfNm0Fmgb****


<?xml version="1.0" encoding="UTF-8"?>
<ReplicationRule>
    <RTC>
        <Status>enabled</Status>
    </RTC>
    <ID>test_replication_rule_1</ID>
</ReplicationRule>

相关文档

PutBucketRTC

  • 本页导读 (1)
文档反馈