0039-00000002

Updated at: 2024-04-28 09:53

Problem description

The value of the ResourceGroupId parameter in the PutBucketResourceGroup request is invalid.

Causes

You initiated a PutBucketResourceGroup request, but the value of the ResourceGroupId parameter does not start with rg-. As a result, an error is reported.

Examples

In the following PutBucketResourceGroup request, the value of the ResourceGroupId parameter is rf-asdf. The value does not meet the operation requirements.

PUT /?resourceGroup
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue 
<?xml version="1.0" encoding="UTF-8"?>
<BucketResourceGroupConfiguration>
  <ResourceGroupId>rf-asdf</ResourceGroupId>
</BucketResourceGroupConfiguration>

Solutions

Make sure that the value of the ResourceGroupId parameter in the XML body of the PutBucketResourceGroup request is valid.

PUT /?resourceGroup
Content-Length: 0
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Sat, 8 May 2021 01:33:47 GMT
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<BucketResourceGroupConfiguration>
  <ResourceGroupId>rg-aek27tc****</ResourceGroupId>
</BucketResourceGroupConfiguration>

References

  • On this page (1, T)
  • Problem description
  • Causes
  • Examples
  • Solutions
  • References
Feedback