Adds a PolarDB-X 2.0 instance to a resource group. A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a PolarDB-X 2.0 instance is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ChangeResourceGroup |
The operation that you want to perform. Set the value to ChangeResourceGroup. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the resource is deployed. |
ResourceType | String | Yes | PolarDBXInstance |
The type of the resource. Only PolarDB-X 2.0 instances are supported. |
ResourceId | String | Yes | pxc-szrwrbp693**** |
The ID of the resource. |
NewResourceGroupId | String | Yes | rg-acfmwolx3j4**** |
The ID of the resource group to which you want to add the PolarDB-X instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3WE34 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ChangeResourceGroup
&RegionId=cn-hangzhou
&ResourceType=PolarDBXInstance
&ResourceId=pxc-szrwrbp693****
&NewResourceGroupId=rg-acfmwolx3j4****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ChangeResourceGroupResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3WE34</RequestId>
</ChangeResourceGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3WE34"
}
Error codes
For a list of error codes, visit the API Error Center.