Adds a scaling group to a resource group.
Description
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 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 region ID of the scaling group. |
ResourceType | String | No | scalinggroup | The type of the resource. Only scaling groups are supported. Set the value to scalinggroup. |
ResourceId | String | Yes | asg-bp17xb4x1vr29lgt**** | The ID of the scaling group for which you want to change the resource group. |
NewResourceGroupId | String | Yes | rg-aek2ckjqe3***** | The ID of the resource group to which you want to add the scaling group. Note You can use resource groups to manage resources owned by your Alibaba Cloud account. Resource groups simplify the resource and permission management of your Alibaba Cloud account. For more information, see What is resource management? |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | The ID of the request. |
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.