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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesChangeResourceGroup

The operation that you want to perform. Set the value to ChangeResourceGroup.

RegionIdStringYescn-hangzhou

The region ID of the scaling group.

ResourceTypeStringNoscalinggroup

The type of the resource. Only scaling groups are supported. Set the value to scalinggroup.

ResourceIdStringYesasg-bp17xb4x1vr29lgt****

The ID of the scaling group for which you want to change the resource group.

NewResourceGroupIdStringYesrg-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

ParameterTypeExampleDescription
RequestIdString473469C7-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.