Moves an AnalyticDB for PostgreSQL instance to a 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 |
|
gpdb:ModifyDBInstanceResourceGroup |
update |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. For more information about how to obtain the ID of a resource group, see View basic information of a resource group. |
rg-bp67acfmxazb4p**** |
| DBInstanceId |
string |
Yes |
The ID of the instance. Note
You can call the DescribeDBInstances operation to query the instance IDs of all AnalyticDB for PostgreSQL instances in a specific region. |
gp-bp12ga6v69h86**** |
| NewResourceGroupId |
string |
Yes |
The ID of the resource group to which you want to move the instance. For more information about how to obtain the ID of a resource group, see View basic information of a resource group. |
rg-bp67acfmxazb4b**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
65BDA532-28AF-4122-AA39-B382721EEE64 |
Examples
Success response
JSON format
{
"RequestId": "65BDA532-28AF-4122-AA39-B382721EEE64"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Instance.FailedUpdateResourceGroup | Failed to update resource group. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.