Modifies the resource group of an ApsaraDB for Redis instance.
You can use resource groups to sort resources that belong to your Alibaba Cloud account into groups. This simplifies how you manage resources that belong to your Alibaba Cloud account and control access to these resources. For more information, see What is resource management?
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyResourceGroup |
The operation that you want to perform. Set the value to ModifyResourceGroup. |
InstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the instance is deployed. |
ResourceGroupId | String | Yes | rg-acfmyiu4ekp**** |
The ID of the resource group. Note
|
ClientToken | String | No | ETnLKlblzczshOTUbOCz**** |
The client token that is used to ensure the idempotency of requests. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5D622714-AEDD-4609-9167-F5DDD3D1**** |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=ModifyResourceGroup
&InstanceId=r-bp1zxszhcgatnx****
&RegionId=cn-hangzhou
&ResourceGroupId=rg-acfmyiu4ekp****
&<Common request parameters>
Sample success responses
XML
format
<ModifyResourceGroupResponse>
<RequestId>5D622714-AEDD-4609-9167-F5DDD3D1****</RequestId>
</ModifyResourceGroupResponse>
JSON
format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
}
Error codes
For a list of error codes, visit the API Error Center.