Transfers an instance to a new resource group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateResourceGroupAttribute

The operation that you want to perform. Set the value to UpdateResourceGroupAttribute.

DrdsInstanceId String Yes drds***********

The ID of the instance that you want to transfer.

Note You can call the DescribeDrdsInstances operation to view the details of the instances under the account, including the instance IDs.
NewResourceGroupId String Yes rg-***************

The ID of the resource group that you want to specify.

Note You can call the ListResourceGroups operation to view the details of the resource groups, including the resource group IDs.
RegionId String Yes cn-hangzhou

The ID of the region where the instance you want to transfer is located.

Note You can call the DescribeDrdsInstances operation to view the details of the instances under the account, including the region IDs.

Response parameters

Parameter Type Example Description
RequestId String 91C7CAB5-3B2E-4FB6-893C-0162C0******

The ID of the request.

Examples

Sample requests

http(s)://drds.cn-hangzhou.aliyuncs.com/? Action=UpdateResourceGroupAttribute
&DrdsInstanceId=drds***********
&NewResourceGroupId=rg-***************
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<UpdateResourceGroupAttributeResponse>
  <RequestId>91C7CAB5-3B2E-4FB6-893C-0162C0******</RequestId>
</UpdateResourceGroupAttributeResponse>

JSON format

{
    "RequestId": "91C7CAB5-3B2E-4FB6-893C-0162C0******"
}

Error codes

HttpCode Error code Error message Description
404 DRDSDB.NotExist The database does not exist. The database does not exist.

For a list of error codes, visit the API Error Center.