Changes a resource group. Resource groups are a means to categorize and manage cloud resources, such as scaling groups, based on specific objectives, permissions, or ownership. In large, multifaceted organizations that manage numerous projects and users, this feature adopts a tiered management approach, simplifying management tasks and improving the effectiveness and oversight of resource allocation. You can call the ChangeResourceGroup operation to move your scaling groups from one resource group to another resource group, which facilitates streamlined monitoring and management within the context of the new group. This operation eliminates the need for repetitive and time-consuming cross-service resource queries, thereby enhancing operational efficiency.
Usage notes
A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource.
A resource group serves as a powerful organizational tool within your Alibaba Cloud account, enabling you to manage and monitor multiple resources collectively. It effectively addresses complexities surrounding resource categorization and permission control under a single Alibaba Cloud account, thereby enhancing management efficiency and control. For more information, see What is resource management?
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 region ID of the scaling group. |
ResourceType | String | No | scalinggroup | The resource type. Set the value to scalinggroup. |
ResourceId | String | Yes | asg-bp17xb4x1vr29lgt**** | The ID of the scaling group that you want to move from the current resource group to another resource group. |
NewResourceGroupId | String | Yes | rg-aek2ckjqe3**** | The ID of the resource group to which you want to move the scaling group. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | The request ID. |
Examples
Sample requests
http(s)://ess.aliyuncs.com/?Action=ChangeResourceGroup
&RegionId=cn-hangzhou
&ResourceType=scalinggroup
&ResourceId=asg-bp17xb4x1vr29lgt****
&NewResourceGroupId=rg-aek2ckjqe3****
&<Common request parameters>Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ChangeResourceGroupResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
</ChangeResourceGroupResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}Error codes
For a list of error codes, see Service error codes.