Modifies the server group to which one or more servers belong.
Usage notes
You can call the ModifyAssetGroup operation to modify 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 modify the server group to which your servers belong.
Limits
You can call this 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
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyAssetGroup |
The operation that you want to perform. Set the value to ModifyAssetGroup. |
SourceIp | String | No | 10.12.XX.XX |
The source IP address of the request. |
GroupId | Long | Yes | 9586199 |
The ID of the server group to which the servers belong after the modification. Note You can call the DescribeAllGroups operation to query the IDs of server groups.
|
Uuids | String | Yes | 076a446d-df7d-424c-bdc5-bb5dc7f1**** |
The UUID of the server for which you want to modify the server group. Separate multiple UUIDs with commas (,). Note You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
|
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C2677612-7207-4AEB-BD48-8BA528F86777 |
The ID of the request, which is used to locate and troubleshoot issues. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyAssetGroup
&SourceIp=10.12.XX.XX
&GroupId=9586199
&Uuids=076a446d-df7d-424c-bdc5-bb5dc7f1****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyAssetGroupResponse>
<RequestId>C2677612-7207-4AEB-BD48-8BA528F86777</RequestId>
</ModifyAssetGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C2677612-7207-4AEB-BD48-8BA528F86777"
}
Error codes
For a list of error codes, visit the API Error Center.