問題の説明
レプリケーション時間制御 (RTC) 機能が有効または無効の場合、ReplicationRuleノードのIDパラメーターがありません。
発生原因
PutBucketRTCリクエストを開始しましたが、ReplicationRuleノードのIDパラメーターがありません。
例
次のリクエストでは、ReplicationRuleノードのIDパラメーターがありません。
POST /?replication&comp=HTTP/1.1の追加
PUT /?rtc HTTP/1.1
ホスト: BucketName.oss-cn-hangzhou.aliyuncs.com
日付: GMT日付
Content-Length: ContentLength
Content-Type: application/xml
権限付与: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<ReplicationRule>
<RTC>
<Status> 有効または無効 </Status>
</RTC>
</ReplicationRule>
ソリューション
レプリケーションルールのIDを指定するには、ReplicationRuleノードにIDパラメーターを追加します。 ReplicationRuleノードにIDパラメーターを追加する方法の例を次に示します。
PUT /?rtc HTTP/1.1
ホスト: oss-example.oss-cn-hangzhou.aliyuncs.com
日付: 7月21日木曜日2022 15:39:18 GMT
コンテンツ-長さ: 46
Content-Type: application/xml
承認: OSS qn6qrrqxo2oawuk53otf ****:CTkuxpLAi4XZ + WwIfNm0Fmgb ****
<?xml version="1.0" encoding="UTF-8"?>
<ReplicationRule>
<RTC>
<Status>enabled</Status>
</RTC>
<ID>test_replication_rule_1</ID>
</ReplicationRule>