Deletes a server group.
The Default server group that is provided by Security Center cannot be deleted. After you delete a group, the assets in this group are moved to the Default group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteGroup |
The operation that you want to perform. Set the value to DeleteGroup. |
GroupId | Long | Yes | 9454789 |
The ID of the server group that you want to delete. Note To delete a server group, you must provide the ID of the server group. You can call
the DescribeAllGroups operation to query the ID.
|
SourceIp | String | No | 1.2.3.4 |
The source IP address of the request. |
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 | 7E0618A9-D5EF-4220-9471-C42B5E92719F |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteGroup
&GroupId=9454789
&<Common request parameters>
Sample success responses
XML
format
<DeleteGroupResponse>
<requestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</requestId>
</DeleteGroupResponse>
JSON
format
{
"RequestId": "0F253382-99ED-4EE5-839E-88843BFB320E"
}
Error codes
For a list of error codes, visit the API Error Center.