Problem description
The value of the x-oss-resource-group-id
request header is invalid. For example, the header in the ListBuckets(GetService) request is set to a value that does not start with rg-
.
Causes
The value of the x-oss-resource-group-id
request header is invalid.
Examples
x-oss-resource-group-id: r-aek27tc********
The x-oss-resource-group-id
request header in the example is set to a value that does start with rg-
.
Solutions
Make sure that the x-oss-resource-group-id
request header is set to a valid value.
x-oss-resource-group-id
is the ID of a resource group. Take ListBuckets(GetService) as an example:
If you include this header and specify the ID of a resource group in the request, Object Storage Service (OSS) returns all buckets that belong to the resource group.
If the resource group ID is set to rg-default-id, OSS returns all buckets that belong to the default resource group.
If you include this header in the request but you do not specify a resource group ID in the request, OSS returns all buckets that belong to the default resource group.
If this header is not included in the request, OSS returns all buckets owned by the requester.
To obtain the ID of a resource group, you can use the Resource Management console or call the ListResourceGroups operation. For more information, see View basic information of a resource group and ListResourceGroups.