Changes the resource group to which an ApsaraDB for Redis instance belongs.
Operation Description
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?
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | 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. | ETnLKlblzczshOTUbOCz**** |
InstanceId | string | Yes | The ID of the instance. | r-bp1zxszhcgatnx**** |
ResourceGroupId | string | Yes | The ID of the resource group. Note | rg-acfmyiu4ekp**** |
RegionId | string | Yes | The ID of the region where the instance is deployed. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | ResourceGroupId.InValid | The Specified resource group id is not found. |
403 | ServiceAccount.NoPermission | Service account has no auth to do this action。 |
404 | EntityNotExists.Resource | The resource does not EXIST. |
For a list of error codes, visit the Service error codes.