Home  >  Article  >  Operation and Maintenance  >  How to delete a security group after ensuring that no instances exist in the security group

How to delete a security group after ensuring that no instances exist in the security group

坏嘻嘻
坏嘻嘻Original
2018-09-25 14:08:101707browse

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

How to delete a security group after ensuring that no instances exist in the security group

##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.

How to delete a security group after ensuring that no instances exist in the security group

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn