DeleteSecurityGroup

GET /?Action=DeleteSecurityGroup
Description

Deletes a specified security group.
You can specify either the name of the security group or its ID.
This action fails if the specified group is associated with an instance or referenced by another security group.

Body parameter

Required: false
Name: DeleteSecurityGroupRequest

Name Description Required Schema Default Example

GroupId

The ID of the security group. In a Virtual Private Cloud (VPC), this parameter is required.

false

string

GroupName

(Public Cloud only) The name of the security group.

false

string

Responses
HTTP Code 200
HTTP Code Description Schema

200

DeleteSecurityGroupResult

Response 200

Response 200

Name Description Required Schema Default Example

requestId

The ID of the request.

false

string

return

If true, the request succeeds. Otherwise, an error is returned.

false

boolean