Moves an ApsaraDB for MongoDB instance to a specified resource group.
Operation description
Resource Management allows you to build an organizational structure for resources based on your business requirements. You can use resource directories, folders, accounts, and resource groups to hierarchically organize and manage resources. For more information, see What is Resource Management?
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyResourceGroup |
update |
*dbinstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the instance. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The ID of the instance. |
dds-bp1366caac83**** |
| ResourceGroupId |
string |
Yes |
The ID of the resource group. For more information, see View basic information of a resource group. |
rg-acfmyiu4ekp**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
5DD0DEC3-24A1-5268-8E0B-5B264CA1**** |
Examples
Success response
JSON format
{
"RequestId": "5DD0DEC3-24A1-5268-8E0B-5B264CA1****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceGroupId.InValid | The Specified ResourceGroupId is not valid. | The specified ResourceGroupId is invalid. |
| 404 | InvalidDbInstanceId.NotFound | Specified instance does not exist. | |
| 404 | InvalidStatus.NotFound | Instance status is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.