All Products
Search
Document Center

Auto Scaling:ChangeResourceGroup

Last Updated:Dec 11, 2024

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.

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ess:ChangeResourceGroupupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the scaling group.

cn-hangzhou
ResourceTypestringNo

The resource type. Set the value to scalinggroup.

scalinggroup
ResourceIdstringYes

The ID of the scaling group that you want to move from the current resource group to another resource group.

asg-bp17xb4x1vr29lgt****
NewResourceGroupIdstringYes

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

rg-aek2ckjqe3*****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history