Problem description
The value of the x-oss-resource-group-id request header is invalid. The header value must start with the rg- prefix.
Causes
The value of the x-oss-resource-group-id header does not start with rg-.
Examples
The following example shows an invalid header value that starts with r- instead of rg-:
x-oss-resource-group-id: r-aek27tc********Solutions
Set x-oss-resource-group-id to a valid resource group ID that starts with rg-.
To get a resource group ID, use the Resource Management console or call the ListResourceGroups operation. For more information, see View basic information of a resource group and ListResourceGroups.
The x-oss-resource-group-id header controls which buckets Object Storage Service (OSS) returns when you call ListBuckets(GetService):
| Scenario | OSS returns |
|---|---|
Header included with a valid resource group ID (for example, rg-abc123) | All buckets in that resource group |
Header included with rg-default-id | All buckets in the default resource group |
| Header included but value is blank | All buckets in the default resource group |
| Header not included | All buckets owned by the requester |