Changes the server group to which one or more servers belong.
Operation description
You can call the ModifyAssetGroup operation to change the server group to which one or more servers belong. After you create a server group by calling the CreateOrUpdateAssetGroup operation, you can call the ModifyAssetGroup operation to change the server group to which your servers belong.
Limits
You can call this API operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 10.12.XX.XX |
GroupId | long | Yes | The ID of the new server group to which the servers belong. Note
You can call the DescribeAllGroups operation to query the IDs of server groups.
| 9586199 |
Uuids | string | Yes | The UUIDs of the servers for which you want to change the server group. Separate multiple UUIDs with commas (,). Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
| 076a446d-df7d-424c-bdc5-bb5dc7f1**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C2677612-7207-4AEB-BD48-8BA528F86777"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam | Illegal param | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-08-01 | The Error code has changed | View Change Details |