Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did 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, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

Request Parameters

NetworkAclId

The ID of the network ACL.

Type: String

Default: None

Required: Yes

RuleNumber

The rule number for the entry to delete.

Type: Integer

Default: None

Required: Yes

Egress

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

Type: Boolean

Default: false

Valid values: true | false

Required: No

Response Elements

The following elements are returned in a DeleteNetworkAclEntryResponse element.

requestId

The ID of the request.

Type: xsd: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/2013-02-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <return>true</return>
</DeleteNetworkAclEntryResponse>