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
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the scaling group. | cn-hangzhou |
ResourceType | string | No | The type of the resource. Only scaling groups are supported. Set the value to scalinggroup. | scalinggroup |
ResourceId | string | Yes | The ID of the scaling group whose resource group you want to change. | asg-bp17xb4x1vr29lgt**** |
NewResourceGroupId | string | Yes | 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
Example
Normal return example
JSON
Format
{
"RequestId": "6EF9BFEE-FE07-4627-B8FB-14326FB9****"
}
Error codes
For a list of error codes, visit the API error center.