All Products
Search
Document Center

Object Storage Service:0017-00000138

Last Updated:Mar 20, 2026

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):

ScenarioOSS returns
Header included with a valid resource group ID (for example, rg-abc123)All buckets in that resource group
Header included with rg-default-idAll buckets in the default resource group
Header included but value is blankAll buckets in the default resource group
Header not includedAll buckets owned by the requester

References

ListBuckets(GetService)