Migrates an AsparaDB for MongoDB instance to a specified resource group.

Resource Management enables you to build an organizational structure for resources based on your business needs. You can use a resource directory, folders, accounts, and resource groups to hierarchically organize and manage resources. For more information, see What is Resource Management?

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 ModifyResourceGroup

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

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

DBInstanceId String Yes dds-bp1366caac83****

The ID of the instance.

ResourceGroupId String Yes rg-acfmyiu4ekp****

The ID of the resource group. For more information, see View basic information of a resource group.

Response parameters

Parameter Type Example Description
RequestId String 5DD0DEC3-24A1-5268-8E0B-5B264CA1****

The ID of the request.

Examples

Sample requests

http(s)://mongodb.aliyuncs.com/?Action=ModifyResourceGroup
&RegionId=cn-hangzhou
&DBInstanceId=dds-bp1366caac83****
&ResourceGroupId=rg-acfmyiu4ekp****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyResourceGroupResponse>
    <RequestId>5DD0DEC3-24A1-5268-8E0B-5B264CA1****</RequestId>
</ModifyResourceGroupResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "5DD0DEC3-24A1-5268-8E0B-5B264CA1****"
}

Error codes

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