Amazon Elastic Compute Cloud
API Reference (API Version 2012-04-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

DeleteNetworkAclEntry

Description

Deletes an ingress or egress entry (i.e., rule) from a network ACL. For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.

Request Parameters

NameDescriptionRequired

NetworkAclId

ID of the network ACL.

Type: string

Default: none

Yes

RuleNumber

Rule number for the entry to delete.

Type: Number

Default: none

Yes

Egress

Whether the rule to delete is an egress rule (true) or ingress rule (false).

Type: Boolean

Default: false

Valid Values: true | false

No

Response Elements

The elements in the following table are wrapped in a ReplaceNetworkAclEntryResponse structure.

NameDescription

requestId

The ID of the request.

Type: String

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes the ingress entry with rule number 100 from the network ACL with ID acl-2cb85d45.

https://ec2.amazonaws.com/?Action=DeleteNetworkAclEntry
&NetworkAclId=acl-2cb85d45
&RuleNumber=100
&AUTHPARAMS

Example Response

<DeleteNetworkAclEntryResponse xmlns="http://ec2.amazonaws.com/doc/2012-04-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <return>true</return>
</DeleteNetworkAclEntryResponse>