Delete Security Group operation
The Delete Security Group operation enables you to delete a security group that you own.
The following figure shows a sample <items> XML element for the Delete Security Group operation.
Sample <items> XML element for the Delete Security Group operation
<item>
<parameters>
<group-name></group-name>
</parameters>
</item>
</items>
The following table describes the adapter request elements for this request.
Adapter request elements for the Delete Security Group operation
Element | Definition | Required |
---|---|---|
<wsdl-location> | Specifies the target Web Service Description Language (WSDL) URL for Amazon EC2 | Conditional:
|
<endpoint-address> | Specifies the web service endpoint for the adapter to use while performing operations on Amazon EC2 instances across different regions | No |
<signature-properties> | Specifies the mode for signing the adapter request | Conditional:
|
<operation-name> | Contains the name of the operation: delete-security-group | Yes |
<group-name> | Specifies the name of the security group that you want to delete | Yes |
The following figure shows the sample adapter request for the Delete Security Group operation.
Sample adapter request for the Delete Security Group operation
<wsdl-location>http://ec2.amazonaws.com/doc/2009-11-30/</wsdl-location>
<endpoint-address>http://us-east-1.ec2.amazonaws.com/</endpoint-address>
<signature-properties mode = "key-files">
<private-key-file>C:\Security\
pk-MJ5GIUNLM2XJ3VRJSYTKOFDWILELDQHB.PEM</private-key-file>
<certificate-file>C:\Security\
cert-MJ5GIUNLM2XJ3VRJSYTKOFDWILELDQHB.PEM</certificate-file>
</signature-properties>
<operation-name>delete-security-group</operation-name>
<parameters>
<group-name>TestAPISecurityGroup</group-name>
</parameters>
</amazon-ec2-request>
The following figure shows the sample adapter response for the Delete Security Group operation.
Sample adapter response for the Delete Security Group operation
<metadata>
<status>success</status>
</metadata>
<DeleteSecurityGroupResponse>
<requestId>f208af00-b50b-4c8f-ace7-c4d09c8299c8</requestId>
<return>true</return>
</DeleteSecurityGroupResponse>
</amazon-ec2-response>