Home >Operation and Maintenance >Linux Operation and Maintenance >How to delete a security group after ensuring that no instances exist in the security group
This article introduces how to delete a security group after ensuring that there are no instances in the security group, and focuses on the specific steps. The content of this article is compact, and I hope everyone can gain something.
DeleteSecurityGroup
Delete a security group. Before deleting a security group, make sure that no instances exist in the security group and that no other security groups have authorization behavior (DescribeSecurityGroupReferences) with this security group. Otherwise, the DeleteSecurityGroup request fails.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=DeleteSecurityGroup &RegionId=cn-hangzhou &SecurityGroupId=sg-F876FF7BA &<公共请求参数>
Return example
XML format
<DeleteSecurityGroupResponse> <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId> </DeleteSecurityGroupResponse>
JSON format
{ "RequestId":"CEF72CEB-54B6-4AE8 -B225-F876FF7BA984"}Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to delete a security group after ensuring that no instances exist in the security group. For more information, please follow other related articles on the PHP Chinese website!