Problem description
The ID parameter of the ReplicationRule node is missing when the Replication Time Control (RTC) feature is enabled or disabled.
Causes
You initiated a PutBucketRTC request, but the ID parameter of the ReplicationRule node is missing.
Examples
In the following request, the ID parameter of the ReplicationRule node is missing.
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>
Solutions
Add the ID parameter to the ReplicationRule node to specify the ID of the replication rule. The following code provides an example on how to add the ID parameter to the ReplicationRule node:
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>