All Products
Search
Document Center

Auto Scaling:ChangeResourceGroup

Last Updated:Feb 06, 2023

Adds a scaling group to a resource group.

Operation 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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the scaling group.

cn-hangzhou
ResourceTypestringNo

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

scalinggroup
ResourceIdstringYes

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

asg-bp17xb4x1vr29lgt****
NewResourceGroupIdstringYes

The ID of the resource group that you want to use to replace the previous scaling group.

NoteYou 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?
rg-aek2ckjqe3*****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

6EF9BFEE-FE07-4627-B8FB-14326FB9****

Example

Normal return example

JSONFormat

{
  "RequestId": "6EF9BFEE-FE07-4627-B8FB-14326FB9****"
}

Error codes

For a list of error codes, visit the API error center.