0010-00000108

更新时间:
复制 MD 格式

Problem description

The XML request body for setting bucket tags is missing the `Tag` node.

Causes

You sent a PutBucketTags request to set bucket tags, but the request body is missing the Tag node.

Examples

For example, you sent the following request:

PUT /?tagging
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2018 11:49:13 GMT
Authorization: OSS qn6q**************:77Dv****************
</Tagging>
  <TagSet>
  </TagSet>
</Tagging>

The `Tag` node is missing from the request body in the preceding example. This causes an error because the request does not meet API requirements.

Solutions

Ensure that the XML request body is correctly formatted and includes the required Tag node. For an example, see the following code:

PUT /?tagging
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2018 11:49:13 GMT
Authorization: OSS qn6q**************:77Dv****************
<Tagging>
  <TagSet>
    <Tag>
      <Key>testa</Key>
      <Value>testv1</Value>
    </Tag>
    <Tag>
      <Key>testb</Key>
      <Value>testv2</Value>
    </Tag>
  </TagSet>
</Tagging>

References